X-Git-Url: http://git.openwrt.org/?p=project%2Fluci.git;a=blobdiff_plain;f=core%2Fsrc%2Fffluci%2Fi18n.lua;h=88381dde7f691cecb4afb44b648167956f884ae9;hp=489308cc9e9c95fd888fec496df62ed465c76a38;hb=a3a51464fd8cffa6d18fa3f18be9c699901abd0d;hpb=fc65325c174e13cc1a9329d154e74069257ebb12 diff --git a/core/src/ffluci/i18n.lua b/core/src/ffluci/i18n.lua index 489308cc9e..88381dde7f 100644 --- a/core/src/ffluci/i18n.lua +++ b/core/src/ffluci/i18n.lua @@ -25,7 +25,6 @@ limitations under the License. ]]-- module("ffluci.i18n", package.seeall) -require("ffluci.config") require("ffluci.sys") table = {} @@ -50,7 +49,7 @@ end -- Same as load but autocompletes the filename with .LANG from config.lang function loadc(file) - return load(file .. "." .. ffluci.config.main.lang) + return load(file .. "." .. require("ffluci.config").main.lang) end -- Returns the i18n-value defined by "key" or if there is no such: "default"