Lines Matching full:languages
20 languages.
33 application needs to switch languages on the fly, you probably want to use the
73 languages have more than two plural forms). If no translation is found, return
81 formulas for a variety of languages.
125 .. function:: find(domain, localedir=None, languages=None, all=False)
129 *localedir* is as in :func:`bindtextdomain`. Optional *languages* is a list of
133 [#]_ If *languages* is not given, then the following environment variables are
136 *languages* variable. The environment variables should contain a colon separated
137 list of languages, which will be split on the colon to produce the expected list
140 :func:`find` then expands and normalizes the languages, and then iterates
147 of all file names, in the order in which they appear in the languages list or
151 .. function:: translation(domain, localedir=None, languages=None, class_=None, fallback=False)
154 and *languages*, which are first passed to :func:`find` to get a list of the
419 aware of multiple languages. Localization (L10N) refers to the adaptation of
447 in a number of languages, including Python, to find strings marked as
458 cannot handle other programming languages such as C or C++.
524 Changing languages on the fly
527 If your program needs to support many languages at the same time, you may want
533 lang1 = gettext.translation('myapplication', languages=['en'])
534 lang2 = gettext.translation('myapplication', languages=['fr'])
535 lang3 = gettext.translation('myapplication', languages=['de'])