-
Notifications
You must be signed in to change notification settings - Fork 1.7k
i18n module
TingPing edited this page Oct 17, 2016
·
10 revisions
This module provides internationalisation and localisation functionality. It has the following methods.
Sets up gettext localisation so that translations are built and placed into their proper locations during install. Takes one positional argument which is the name of the gettext module.
-
languages
: list of languages that are to be generated -
data_dirs
: (Added 0.36.0) list of directories to be set forGETTEXTDATADIRS
env var, used for local its files -
args
: list of extra arguments to pass toxgettext
when generating the pot file
This function also defines targets for maintainers to use:
Note: These output to the source directory
-
<project_id>-pot
: runsxgettext
to regenerate the pot file
All documentation is now on the main web site.
This page should be at this address.