Mago uses gettext module to internationalize the application wrappers. If you want your application wrapper to be easy to localize, you will need to import gettext and select which strings are candidates for translations.
You can read more about python gettext in this blog post, or you can just simply follow the example below:
1 PACKAGE = "mago"
2 import gettext
3
4 gettext.install (True)
5 gettext.bindtextdomain (PACKAGE, globals.LOCALE_SHARE)
6 gettext.textdomain (PACKAGE)
7 t = gettext.translation(PACKAGE, globals.LOCALE_SHARE, fallback = False)
8 _ = t.gettext
9
10 class GEdit(Application):
11 """
12 GEdit manages the Gedit application.
13 """
14 WINDOW = _("frm*gedit")
15 TXT_FIELD = "txt*"
16 LAUNCHER = "gedit"
17 SAVE_DLG = _("dlgSave*")
18
19 # [...]
20
Once you have added a new application, you should regenerate the mago.pot file under the /po directory to catch your latest changes. In the mago root folder:
$ python setup.py build_i18n
That will regenerate mago.pot will your translatable strings.