Commit fd0bb8d2 authored by Michal Čihař's avatar Michal Čihař

Use lower case language codes

Otherewise the Django autodetection doesn't work as expected.

Fixes #929
Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent e55cb3b4
......@@ -34,7 +34,7 @@ def main():
languages = []
for lang in data:
if lang['translated_percent'] > THRESHOLD:
code = lang['code'].replace('_', '-')
code = lang['code'].replace('_', '-').lower()
languages.append(code)
languages.sort()
print 'Expected setup:'
......
......@@ -105,7 +105,7 @@ LANGUAGES = (
('nl', u'Nederlands'),
('pl', u'Polski'),
('pt', u'Português'),
('pt-BR', u'Português brasileiro'),
('pt-br', u'Português brasileiro'),
('ru', u'Русский'),
('sk', u'Slovenčina'),
('sl', u'Slovenščina'),
......@@ -113,8 +113,8 @@ LANGUAGES = (
('sv', u'Svenska'),
('tr', u'Türkçe'),
('uk', u'Українська'),
('zh-Hans', u'简体字'),
('zh-Hant', u'正體字'),
('zh-hans', u'简体字'),
('zh-hant', u'正體字'),
)
SITE_ID = 1
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment