Open main menu

Gramps β

Changes

Third-party Addons

471 bytes added, 14:17, 14 November 2008
Information for Plugin writers
= Information for Plugin writers =
== Share it==
Have you written a plugin for GRAMPS you want to share with the world? Here's how you do it:
* Add a description of your plugin to this page.
== Internationalize it ==
There is a big possibility that you are not a native English speaker and want your report in your mother tongue. To enable others to use your report, and make it easy to include your report later in GRAMPS without large changes, do the following for text:
==== Translation function ====
* Suppose you have a string Name, which you want for your own use in French, so Nom. Then write a translation function with the name _.
* For every string, pass it through your translation function: _("Name")
* If the report becomes part of GRAMPS, it will suffice to delete this code and replace it by
from gettext import gettext as _
* Note that you only need to include strings that are not yet a part of GRAMPS, as those will be translated automatically by the gettext routine
 
==== Pitfalls ====
* We support right to left languages like Arabic, so never constructs text parts by concatination of pieces. Always use full sentences/paragraphs with variable substitution, so that a right to left language can translate it correctly.