Warning:
Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.
| File setup_i18n.diff,
1.0 KB
(added by TimurIzhbulatov, 3 years ago) |
|
Patch for tg/i18n.py
|
-
|
|
|
|
| 27 | 27 | log.info("Language %s found in session", |
| 28 | 28 | pylons.session[lang_session_key]) |
| 29 | 29 | |
| 30 | | try: |
| 31 | | pylons.i18n.set_lang(pylons.session[lang_session_key]) |
| 32 | | except LanguageError: |
| 33 | | log.info("Language %s: not supported", |
| 34 | | pylons.session[lang_session_key]) |
| 35 | | else: |
| 36 | | # if there is a resource bundle for this language |
| 37 | | # stop the best match search |
| 38 | | use_session_lang = True |
| 39 | | log.info("Set request language to %s", |
| 40 | | pylons.session[lang_session_key]) |
| | 30 | set_temporary_lang([pylons.session[lang_session_key], ]) |
| | 31 | # if there is a resource bundle for this language |
| | 32 | # stop the best match search |
| | 33 | use_session_lang = True |
| 41 | 34 | |
| 42 | 35 | |
| 43 | 36 | if languages: |
Download in other formats: