Skip to content

Commit

Permalink
Updated locales and locale tools
Browse files Browse the repository at this point in the history
  • Loading branch information
Branko Vukelic committed Apr 8, 2015
1 parent b1c03a5 commit dfa3755
Show file tree
Hide file tree
Showing 37 changed files with 33,990 additions and 30,294 deletions.
1,877 changes: 931 additions & 946 deletions librarian/locales/ar/LC_MESSAGES/librarian.po

Large diffs are not rendered by default.

918 changes: 918 additions & 0 deletions librarian/locales/az/LC_MESSAGES/librarian.po

Large diffs are not rendered by default.

1,973 changes: 1,041 additions & 932 deletions librarian/locales/bn/LC_MESSAGES/librarian.po

Large diffs are not rendered by default.

1,846 changes: 913 additions & 933 deletions librarian/locales/ca/LC_MESSAGES/librarian.po

Large diffs are not rendered by default.

1,847 changes: 914 additions & 933 deletions librarian/locales/da/LC_MESSAGES/librarian.po

Large diffs are not rendered by default.

1,847 changes: 910 additions & 937 deletions librarian/locales/de/LC_MESSAGES/librarian.po

Large diffs are not rendered by default.

2,039 changes: 1,074 additions & 965 deletions librarian/locales/en/LC_MESSAGES/librarian.po

Large diffs are not rendered by default.

1,856 changes: 921 additions & 935 deletions librarian/locales/es/LC_MESSAGES/librarian.po

Large diffs are not rendered by default.

2,087 changes: 1,098 additions & 989 deletions librarian/locales/fa/LC_MESSAGES/librarian.po

Large diffs are not rendered by default.

1,910 changes: 972 additions & 938 deletions librarian/locales/fr/LC_MESSAGES/librarian.po

Large diffs are not rendered by default.

1,857 changes: 921 additions & 936 deletions librarian/locales/hi/LC_MESSAGES/librarian.po

Large diffs are not rendered by default.

1,983 changes: 1,046 additions & 937 deletions librarian/locales/hr/LC_MESSAGES/librarian.po

Large diffs are not rendered by default.

653 changes: 340 additions & 313 deletions librarian/locales/ht/LC_MESSAGES/librarian.po

Large diffs are not rendered by default.

1,977 changes: 1,043 additions & 934 deletions librarian/locales/hu/LC_MESSAGES/librarian.po

Large diffs are not rendered by default.

905 changes: 905 additions & 0 deletions librarian/locales/id/LC_MESSAGES/librarian.po

Large diffs are not rendered by default.

1,979 changes: 1,044 additions & 935 deletions librarian/locales/it/LC_MESSAGES/librarian.po

Large diffs are not rendered by default.

1,967 changes: 1,038 additions & 929 deletions librarian/locales/ja/LC_MESSAGES/librarian.po

Large diffs are not rendered by default.

1,973 changes: 1,041 additions & 932 deletions librarian/locales/kn/LC_MESSAGES/librarian.po

Large diffs are not rendered by default.

2,005 changes: 1,057 additions & 948 deletions librarian/locales/ko/LC_MESSAGES/librarian.po

Large diffs are not rendered by default.

1,839 changes: 973 additions & 866 deletions librarian/locales/librarian.pot

Large diffs are not rendered by default.

1,852 changes: 915 additions & 937 deletions librarian/locales/lt/LC_MESSAGES/librarian.po

Large diffs are not rendered by default.

1,973 changes: 1,041 additions & 932 deletions librarian/locales/nb/LC_MESSAGES/librarian.po

Large diffs are not rendered by default.

1,973 changes: 1,041 additions & 932 deletions librarian/locales/ne/LC_MESSAGES/librarian.po

Large diffs are not rendered by default.

1,852 changes: 919 additions & 933 deletions librarian/locales/nl/LC_MESSAGES/librarian.po

Large diffs are not rendered by default.

1,981 changes: 1,045 additions & 936 deletions librarian/locales/pt/LC_MESSAGES/librarian.po

Large diffs are not rendered by default.

1,851 changes: 914 additions & 937 deletions librarian/locales/pt_BR/LC_MESSAGES/librarian.po

Large diffs are not rendered by default.

2,025 changes: 1,067 additions & 958 deletions librarian/locales/ro/LC_MESSAGES/librarian.po

Large diffs are not rendered by default.

1,983 changes: 1,046 additions & 937 deletions librarian/locales/ru/LC_MESSAGES/librarian.po

Large diffs are not rendered by default.

1,983 changes: 1,046 additions & 937 deletions librarian/locales/sr_Latn/LC_MESSAGES/librarian.po

Large diffs are not rendered by default.

1,979 changes: 1,044 additions & 935 deletions librarian/locales/sv/LC_MESSAGES/librarian.po

Large diffs are not rendered by default.

1,841 changes: 908 additions & 933 deletions librarian/locales/ta/LC_MESSAGES/librarian.po

Large diffs are not rendered by default.

1,967 changes: 1,038 additions & 929 deletions librarian/locales/th/LC_MESSAGES/librarian.po

Large diffs are not rendered by default.

1,846 changes: 913 additions & 933 deletions librarian/locales/tr/LC_MESSAGES/librarian.po

Large diffs are not rendered by default.

1,973 changes: 1,041 additions & 932 deletions librarian/locales/ur/LC_MESSAGES/librarian.po

Large diffs are not rendered by default.

1,837 changes: 908 additions & 929 deletions librarian/locales/zh/LC_MESSAGES/librarian.po

Large diffs are not rendered by default.

22 changes: 2 additions & 20 deletions librarian/utils/lang.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,37 +54,19 @@ def lang_name_getter(ltuple):
LOCALES.sort()

UI_LOCALES = (
'ar',
'bn',
'ca',
'da',
'de',
'en',
'es',
'fa',
'fr',
'hi',
'hr',
#'ht', # disabled due to bug in Python gettext
'hu',
'it',
'ja',
'kn',
'ko',
# 'ht', # disabled due to bug in Python gettext
'id',
'lt',
'nb',
'ne',
'nl',
'pt',
'pt_BR',
'ro',
'ru',
'sr_Latn',
'sv',
'ta',
'th',
'tr',
'ur',
'zh',
)

Expand Down
8 changes: 2 additions & 6 deletions scripts/xmsgs.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
from locale import getpreferredencoding

CHARSET_RE = re.compile(r'("Content-Type: text/plain; charset=).+(\\n")')
BLACKLIST = ['ht']


def make_args(localedir, domain, address=None, comment=None, name=None,
Expand Down Expand Up @@ -155,12 +156,6 @@ def process_dir(path, extension, args, template_path):
print('Error message was: %s' % err, file=sys.stderr)
sys.exit(1)

if not hasattr(mod, 'UI_LOCALES'):
print('Error: no UI_LOCALES defined in main module', file=sys.stderr)
sys.exit(1)

locales = mod.UI_LOCALES

if not hasattr(mod, '__version__'):
version = None
else:
Expand All @@ -173,6 +168,7 @@ def process_dir(path, extension, args, template_path):
print("Using localedir: %s" % localedir)

# Get list of locales
locales = [l for l in os.listdir(localedir) if not l.endswith('.pot')]
print("Using locales: %s" % ', '.join(locales))

# Get list of extensions
Expand Down

0 comments on commit dfa3755

Please sign in to comment.