Lines Matching full:languages
20 languages.
33 application needs to switch languages on the fly, you probably want to use the
83 languages have more than two plural forms). If no translation is found, return
91 formulas for a variety of languages.
158 .. function:: find(domain, localedir=None, languages=None, all=False)
162 *localedir* is as in :func:`bindtextdomain`. Optional *languages* is a list of
166 [#]_ If *languages* is not given, then the following environment variables are
169 *languages* variable. The environment variables should contain a colon separated
170 list of languages, which will be split on the colon to produce the expected list
173 :func:`find` then expands and normalizes the languages, and then iterates
180 of all file names, in the order in which they appear in the languages list or
184 .. function:: translation(domain, localedir=None, languages=None, class_=None, fallback=False, code…
187 and *languages*, which are first passed to :func:`find` to get a list of the
502 aware of multiple languages. Localization (L10N) refers to the adaptation of
530 in a number of languages, including Python, to find strings marked as
541 cannot handle other programming languages such as C or C++.
607 Changing languages on the fly
610 If your program needs to support many languages at the same time, you may want
616 lang1 = gettext.translation('myapplication', languages=['en'])
617 lang2 = gettext.translation('myapplication', languages=['fr'])
618 lang3 = gettext.translation('myapplication', languages=['de'])