summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-mod-network/htdocs/luci-static/resources/view
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2022-10-25 13:01:31 +0200
committerJo-Philipp Wich <jo@mein.io>2022-10-25 13:01:31 +0200
commit70e32f0cb1ecfdb565ee1d0497d45acdebf73b94 (patch)
treef91bdbb84f4dfcffbba943447420ba771f175376 /modules/luci-mod-network/htdocs/luci-static/resources/view
parentadc4ca65bccfa6265bdd5e1ae70aabae09bd617b (diff)
luci-base: dispatcher.uc: ensure usage of dashes in language tags
The LuCI uci configuration requires language tags with underscores due limitations of uci option names but the language catalogs themselves are designated with dash separated language tags. Make sure to substitute underscores with dashes when determining the desired request language in order to fix loading of languages such as `pt-br` or `zh-cn`. Ref: https://github.com/openwrt/luci/pull/5976#issuecomment-1290352951 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-mod-network/htdocs/luci-static/resources/view')
0 files changed, 0 insertions, 0 deletions