mirror of
https://github.com/Hopiu/django-rosetta.git
synced 2026-04-26 16:04:43 +00:00
list apps by alphabetical order
This commit is contained in:
parent
d9b0355825
commit
b42f729b73
1 changed files with 1 additions and 2 deletions
|
|
@ -329,14 +329,13 @@ def list_languages(request, do_session_warn=False):
|
|||
languages.append(
|
||||
(language[0],
|
||||
_(language[1]),
|
||||
[(get_app_name(l), os.path.realpath(l), pofile(l)) for l in pos],
|
||||
sorted([(get_app_name(l), os.path.realpath(l), pofile(l)) for l in pos], key=lambda app: app[0]),
|
||||
)
|
||||
)
|
||||
try:
|
||||
ADMIN_MEDIA_PREFIX = settings.ADMIN_MEDIA_PREFIX
|
||||
except AttributeError:
|
||||
ADMIN_MEDIA_PREFIX = settings.STATIC_URL + 'admin/'
|
||||
|
||||
do_session_warn = do_session_warn and 'SessionRosettaStorage' in rosetta_settings.STORAGE_CLASS and 'signed_cookies' in settings.SESSION_ENGINE
|
||||
return render_to_response('rosetta/languages.html', dict(
|
||||
version=rosetta.get_version(True),
|
||||
|
|
|
|||
Loading…
Reference in a new issue