luci/modules/luci-base
Jo-Philipp Wich 70e32f0cb1 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>
2022-10-25 13:01:31 +02:00
..
htdocs treewide: separate Lua runtime resources 2022-10-25 01:03:37 +02:00
po luci-base: rebase translations 2022-10-25 01:03:37 +02:00
root luci-base: don't fail getInitList if no indexes can be determined 2022-10-25 01:03:37 +02:00
src treewide: separate Lua runtime resources 2022-10-25 01:03:37 +02:00
ucode luci-base: dispatcher.uc: ensure usage of dashes in language tags 2022-10-25 13:01:31 +02:00
Makefile treewide: separate Lua runtime resources 2022-10-25 01:03:37 +02:00