Commit 3d965d01 authored by Michal Čihař's avatar Michal Čihař

Split only once (issue #194)

parent 62d1e43c
......@@ -177,9 +177,9 @@ class LanguageManager(models.Manager):
# Parse the string
if '-' in code:
lang, country = code.split('-')
lang, country = code.split('-', 1)
elif '_' in code:
lang, country = code.split('_')
lang, country = code.split('_', 1)
else:
lang = code
country = None
......
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