* Added DHCP page
[project/luci.git] / src / ffluci / i18n.lua
index 2a18c27..11f4afe 100644 (file)
@@ -26,12 +26,10 @@ limitations under the License.
 
 module("ffluci.i18n", package.seeall)
 
-require("ffluci.fs")
-require("ffluci.util")
 require("ffluci.config")
 
 table   = {}
-i18ndir = ffluci.fs.dirname(ffluci.util.__file__()) .. "i18n/"
+i18ndir = ffluci.config.path .. "/i18n/"
 
 -- Clears the translation table
 function clear()
@@ -52,7 +50,7 @@ end
 
 -- Same as load but autocompletes the filename with .LANG from config.lang
 function loadc(file)
-       return load(file .. "." .. ffluci.config.lang)
+       return load(file .. "." .. ffluci.config.main.lang)
 end
 
 -- Returns the i18n-value defined by "key" or if there is no such: "default"