Commit 69803e00 authored by Weblate's avatar Weblate

Merge remote-tracking branch 'origin/master'

parents ed459b00 8dbb5b36
...@@ -115,6 +115,8 @@ class LanguageManager(models.Manager): ...@@ -115,6 +115,8 @@ class LanguageManager(models.Manager):
It also handles Android special naming of regional locales like pt-rBR It also handles Android special naming of regional locales like pt-rBR
''' '''
code = code.replace(' ', '_')
# First try getting langauge as is # First try getting langauge as is
ret = self.try_get(code=code) ret = self.try_get(code=code)
if ret is not None: if ret is not None:
......
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import unicode_literals from __future__ import unicode_literals
from django.db import models, migrations from django.db import migrations
class Migration(migrations.Migration): class Migration(migrations.Migration):
......
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