Skip to content

Commit

Permalink
Use Locale class methods to get the localized language name for displ…
Browse files Browse the repository at this point in the history
…ay (PiSCSI#628)
  • Loading branch information
rdmark authored Jan 29, 2022
1 parent fc615b5 commit 83ad97e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion python/web/src/web.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"))


Expand Down

0 comments on commit 83ad97e

Please sign in to comment.