Fix language selection broken after po file merges
This commit is contained in:
parent
7867017972
commit
2a9ffa6d28
2 changed files with 2 additions and 2 deletions
|
@ -28,7 +28,7 @@ c = m:section(NamedSection, "main", "core", translate("General"))
|
||||||
l = c:option(ListValue, "lang", translate("Language"))
|
l = c:option(ListValue, "lang", translate("Language"))
|
||||||
l:value("auto")
|
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
|
for k, v in luci.util.kspairs(luci.config.languages) do
|
||||||
local file = i18ndir .. k:gsub("_", "-")
|
local file = i18ndir .. k:gsub("_", "-")
|
||||||
if k:sub(1, 1) ~= "." and fs.access(file .. ".lmo") then
|
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 = c:option(ListValue, "lang", translate("Language"))
|
||||||
l:value("auto")
|
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
|
for k, v in luci.util.kspairs(luci.config.languages) do
|
||||||
local file = i18ndir .. k:gsub("_", "-")
|
local file = i18ndir .. k:gsub("_", "-")
|
||||||
if k:sub(1, 1) ~= "." and fs.access(file .. ".lmo") then
|
if k:sub(1, 1) ~= "." and fs.access(file .. ".lmo") then
|
||||||
|
|
Loading…
Reference in a new issue