48
edits
Changes
From Gramps
→Information for Plugin writers: fixed translation hack
* Your translation function should then look like this:
mytranslation = {
'Name' : "Nom"
}
from gettext import gettext
import locale
lang = locale.getlocale()[0]
if lang:
def _(string):
Change here 'fr' by the language code of your language
* If the report becomes part of GRAMPS, it will suffice to delete this code and replace it by
from gettext import gettext as _