summaryrefslogtreecommitdiffhomepage
path: root/modules/admin-mini/luasrc
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2009-05-27 08:59:02 +0000
committerJo-Philipp Wich <jow@openwrt.org>2009-05-27 08:59:02 +0000
commit632abafabf6a1f3011fffd9cff9f5b65258ec1d2 (patch)
tree6af58b8fe36af3bf7489adbf7cfac8d1b170566e /modules/admin-mini/luasrc
parentf8771c17dca6e9a357581595ade7dae0dc543cb9 (diff)
modules/admin-{mini,full}: sort by keys in language selection
Diffstat (limited to 'modules/admin-mini/luasrc')
-rw-r--r--modules/admin-mini/luasrc/model/cbi/mini/luci.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/admin-mini/luasrc/model/cbi/mini/luci.lua b/modules/admin-mini/luasrc/model/cbi/mini/luci.lua
index d3afd5537..0a57b3056 100644
--- a/modules/admin-mini/luasrc/model/cbi/mini/luci.lua
+++ b/modules/admin-mini/luasrc/model/cbi/mini/luci.lua
@@ -28,7 +28,7 @@ l = c:option(ListValue, "lang", translate("language"))
l:value("auto")
local i18ndir = luci.i18n.i18ndir .. "default."
-for k, v in pairs(luci.config.languages) do
+for k, v in luci.util.kspairs(luci.config.languages) do
local file = i18ndir .. k:gsub("_", "-")
if k:sub(1, 1) ~= "." and (
luci.fs.access(file .. ".lua") or