mirror of
https://github.com/Hopiu/django-rosetta.git
synced 2026-05-01 10:24:43 +00:00
fixed lang_sel view picking the wrong file.
This commit is contained in:
parent
840b3c51f9
commit
6e5e6ef28e
1 changed files with 1 additions and 1 deletions
|
|
@ -371,7 +371,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