Skip to content
This repository has been archived by the owner on Jul 11, 2019. It is now read-only.

Commit

Permalink
Merge pull request #918 from xi/feature-i18n-zh_TW
Browse files Browse the repository at this point in the history
translation: traditional chinese (taiwan)
  • Loading branch information
Nicolas Dietrich committed Jun 17, 2014
2 parents e0ad729 + f63d297 commit b22c01e
Show file tree
Hide file tree
Showing 13 changed files with 5,243 additions and 173 deletions.
7 changes: 6 additions & 1 deletion src/adhocracy/i18n/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
babel.Locale('pl', 'PL'),
babel.Locale('pt', 'BR'),
babel.Locale('ro', 'RO'),
babel.Locale('ru', 'RU')]
babel.Locale('ru', 'RU'),
babel.Locale.parse('zh_TW')]

LOCALE_STRINGS = map(str, LOCALES)

Expand All @@ -39,8 +40,12 @@
LOCALE_STRINGS)

# We have only Brazilian Portuguese, so we show that when pt is requested.
# We have only Traditional Chinese (Taiwan), so we show that when zh is
# requested.
A2_LOCALE_ALIASES = LOCALE_ALIASES.copy()
A2_LOCALE_ALIASES['pt'] = 'pt_BR'
A2_LOCALE_ALIASES['zh'] = 'zh_Hant_TW'
A2_LOCALE_ALIASES['zh-tw'] = 'zh_Hant_TW'

FALLBACK_TZ = 'Europe/Berlin'

Expand Down
1 change: 1 addition & 0 deletions src/adhocracy/i18n/zh_Hant_TW
Loading

0 comments on commit b22c01e

Please sign in to comment.