160
edits
Changes
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