Changes

Jump to: navigation, search

Coding for translation

161 bytes added, 05:41, 4 May 2013
m
Addons
from gramps.gen.const import import GRAMPS_LOCALE as glocale
_ = glocale.get_addon_translator(__file__).gettext
or if you need more than one retrieval function:
_translation = glocale.get_addon_translator(__file__)
_ = _translation.gettext
S_ = _translation.sgettext
The addon translator is another instance of GrampsTranslation, so the rules for creating

Navigation menu