1.. _api.webapp2_extras.i18n: 2 3i18n 4==== 5.. module:: webapp2_extras.i18n 6 7This module provides internationalization and localization support for webapp2. 8 9To use it, you must add the ``babel`` and ``pytz`` packages to your 10application directory (for App Engine) or install it in your virtual 11environment (for other servers). 12 13You can download ``babel`` and ``pytz`` from the following locations: 14 15 http://babel.edgewall.org/ 16 http://pypi.python.org/pypi/gaepytz 17 18.. autodata:: default_config 19 20.. autoclass:: I18nStore 21 :members: translations, translations_path, domains, 22 default_locale, default_timezone, date_formats, locale_selector, 23 timezone_selector, 24 __init__, set_locale_selector, set_timezone_selector, 25 get_translations, load_translations 26 27.. autoclass:: I18n 28 :members: store, locale, translations, timezone, tzinfo, 29 __init__, set_locale, set_timezone, gettext, ngettext, 30 to_local_timezone, to_utc, format_date, format_datetime, 31 format_time, format_timedelta, format_number, format_decimal, 32 format_currency, format_percent, format_scientific, parse_date, 33 parse_datetime, parse_time, parse_number, parse_decimal, 34 get_timezone_location 35 36.. autofunction:: get_store 37.. autofunction:: set_store 38.. autofunction:: get_i18n 39.. autofunction:: set_i18n 40.. autofunction:: lazy_gettext 41.. autofunction:: gettext 42.. autofunction:: ngettext 43.. autofunction:: to_local_timezone 44.. autofunction:: to_utc 45.. autofunction:: format_date 46.. autofunction:: format_datetime 47.. autofunction:: format_time 48.. autofunction:: format_timedelta 49.. autofunction:: format_number 50.. autofunction:: format_decimal 51.. autofunction:: format_currency 52.. autofunction:: format_percent 53.. autofunction:: format_scientific 54.. autofunction:: parse_date 55.. autofunction:: parse_datetime 56.. autofunction:: parse_time 57.. autofunction:: parse_number 58.. autofunction:: parse_decimal 59.. autofunction:: get_timezone_location 60