• Home
  • Raw
  • Download

Lines Matching full:languages

20 languages.
33 application needs to switch languages on the fly, you probably want to use the
42 *languages* is searched for in the environment variables :envvar:`LANGUAGE`,
81 languages have more than two plural forms). If no translation is found, return
89 formulas for a variety of languages.
145 .. function:: find(domain, localedir=None, languages=None, all=False)
149 *localedir* is as in :func:`bindtextdomain` Optional *languages* is a list of
153 [#]_ If *languages* is not given, then the following environment variables are
156 *languages* variable. The environment variables should contain a colon separated
157 list of languages, which will be split on the colon to produce the expected list
160 :func:`find` then expands and normalizes the languages, and then iterates
167 of all file names, in the order in which they appear in the languages list or
171 .. function:: translation(domain, localedir=None, languages=None, class_=None, fallback=False, code…
174 and *languages*, which are first passed to :func:`find` to get a list of the
430 aware of multiple languages. Localization (L10N) refers to the adaptation of
459 in a number of languages, including Python, to find strings marked as
470 cannot handle other programming languages such as C or C++.
536 Changing languages on the fly
539 If your program needs to support many languages at the same time, you may want
545 lang1 = gettext.translation('myapplication', languages=['en'])
546 lang2 = gettext.translation('myapplication', languages=['fr'])
547 lang3 = gettext.translation('myapplication', languages=['de'])