6 |
6 |
7 __all__ = ['gettext', 'gettext_noop', 'gettext_lazy', 'ngettext', |
7 __all__ = ['gettext', 'gettext_noop', 'gettext_lazy', 'ngettext', |
8 'ngettext_lazy', 'string_concat', 'activate', 'deactivate', |
8 'ngettext_lazy', 'string_concat', 'activate', 'deactivate', |
9 'get_language', 'get_language_bidi', 'get_date_formats', |
9 'get_language', 'get_language_bidi', 'get_date_formats', |
10 'get_partial_date_formats', 'check_for_language', 'to_locale', |
10 'get_partial_date_formats', 'check_for_language', 'to_locale', |
11 'get_language_from_request', 'templatize', 'ugettext', |
11 'get_language_from_request', 'templatize', 'ugettext', 'ugettext_lazy', |
12 'ungettext', 'deactivate_all'] |
12 'ungettext', 'deactivate_all'] |
13 |
13 |
14 # Here be dragons, so a short explanation of the logic won't hurt: |
14 # Here be dragons, so a short explanation of the logic won't hurt: |
15 # We are trying to solve two problems: (1) access settings, in particular |
15 # We are trying to solve two problems: (1) access settings, in particular |
16 # settings.USE_I18N, as late as possible, so that modules can be imported |
16 # settings.USE_I18N, as late as possible, so that modules can be imported |