mirror of
https://github.com/akuker/RASCSI.git
synced 2024-10-31 13:07:50 +00:00
Use Locale class methods to get the localized language name for display (#628)
This commit is contained in:
parent
fc615b5335
commit
83ad97e577
@ -1016,7 +1016,9 @@ def change_language():
|
||||
file_cmds.locale = session["language"]
|
||||
refresh()
|
||||
|
||||
flash(_("Changed Web Interface language to %(locale)s", locale=locale))
|
||||
language = Locale.parse(locale)
|
||||
language_name = language.get_language_name(locale)
|
||||
flash(_("Changed Web Interface language to %(locale)s", locale=language_name))
|
||||
return redirect(url_for("index"))
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user