160
edits
Changes
m
→Additional Message Catalogs
_ = glocale.get_addon_translator(__file__).gettext
will look for a message catalog called 'addon.mo' in the locale directory for glocale's language packaged with the addon. (<tt>__file__</tt> is python magic for the path to this python code file; get_addon_translator() looks for a locale subdirectory in the same directory as <tt>__file__</tt>.)
Again, more details are in [[Coding_for_translation| Coding For Translation]]
=== Formatters ===