mirror of
https://github.com/Hopiu/django-rosetta.git
synced 2026-05-20 10:21:55 +00:00
Merge branch 'develop' of https://github.com/kanu/django-rosetta into pull-request-73
This commit is contained in:
commit
1d96772b04
1 changed files with 1 additions and 1 deletions
|
|
@ -372,7 +372,7 @@ def lang_sel(request, langid, idx):
|
|||
third_party_apps = rosetta_i18n_catalog_filter in ('all', 'third-party')
|
||||
django_apps = rosetta_i18n_catalog_filter in ('all', 'django')
|
||||
project_apps = rosetta_i18n_catalog_filter in ('all', 'project')
|
||||
file_ = find_pos(langid, project_apps=project_apps, django_apps=django_apps, third_party_apps=third_party_apps)[int(idx)]
|
||||
file_ = sorted(find_pos(langid, project_apps=project_apps, django_apps=django_apps, third_party_apps=third_party_apps), key=get_app_name)[int(idx)]
|
||||
|
||||
storage.set('rosetta_i18n_lang_code', langid)
|
||||
storage.set('rosetta_i18n_lang_name', six.text_type([l[1] for l in settings.LANGUAGES if l[0] == langid][0]))
|
||||
|
|
|
|||
Loading…
Reference in a new issue