From 2a9ffa6d28432aaf58d620adfa891c8ff403d131 Mon Sep 17 00:00:00 2001 From: Vasilis Tsiligiannis Date: Sat, 13 Mar 2010 20:13:41 +0000 Subject: [PATCH] Fix language selection broken after po file merges --- modules/admin-full/luasrc/model/cbi/admin_index/luci.lua | 2 +- modules/admin-mini/luasrc/model/cbi/mini/luci.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/admin-full/luasrc/model/cbi/admin_index/luci.lua b/modules/admin-full/luasrc/model/cbi/admin_index/luci.lua index 75c42c090..e3d7d412a 100644 --- a/modules/admin-full/luasrc/model/cbi/admin_index/luci.lua +++ b/modules/admin-full/luasrc/model/cbi/admin_index/luci.lua @@ -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 diff --git a/modules/admin-mini/luasrc/model/cbi/mini/luci.lua b/modules/admin-mini/luasrc/model/cbi/mini/luci.lua index 58755fde7..78255c1d9 100644 --- a/modules/admin-mini/luasrc/model/cbi/mini/luci.lua +++ b/modules/admin-mini/luasrc/model/cbi/mini/luci.lua @@ -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 -- 2.25.1