mirror of
https://github.com/openwrt/luci.git
synced 2026-06-20 23:01:28 +04:00
Fix language selection broken after po file merges
This commit is contained in:
@@ -28,7 +28,7 @@ c = m:section(NamedSection, "main", "core", translate("General"))
|
||||
l = c:option(ListValue, "lang", translate("Language"))
|
||||
l:value("auto")
|
||||
|
||||
local i18ndir = luci.i18n.i18ndir .. "default."
|
||||
local i18ndir = luci.i18n.i18ndir .. "base."
|
||||
for k, v in luci.util.kspairs(luci.config.languages) do
|
||||
local file = i18ndir .. k:gsub("_", "-")
|
||||
if k:sub(1, 1) ~= "." and fs.access(file .. ".lmo") then
|
||||
|
||||
@@ -30,7 +30,7 @@ c = m:section(NamedSection, "main", "core", translate("General"))
|
||||
l = c:option(ListValue, "lang", translate("Language"))
|
||||
l:value("auto")
|
||||
|
||||
local i18ndir = luci.i18n.i18ndir .. "default."
|
||||
local i18ndir = luci.i18n.i18ndir .. "base."
|
||||
for k, v in luci.util.kspairs(luci.config.languages) do
|
||||
local file = i18ndir .. k:gsub("_", "-")
|
||||
if k:sub(1, 1) ~= "." and fs.access(file .. ".lmo") then
|
||||
|
||||
Reference in New Issue
Block a user