* luci/statistics: replace load() with loadc() since german translation is now available
[project/luci.git] / applications / luci-statistics / luasrc / statistics / i18n.lua
index a31d126..9aa642c 100644 (file)
@@ -1,3 +1,18 @@
+--[[
+
+Luci statistics - diagram i18n helper
+(c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net>
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+        http://www.apache.org/licenses/LICENSE-2.0
+
+$Id$
+
+]]--
+
 module("luci.statistics.i18n", package.seeall)
 
 require("luci.util")
@@ -11,8 +26,7 @@ function Instance.__init__( self, graph )
        self.i18n  = luci.i18n
        self.graph = graph
 
-       -- XXX: compat hack
-       self.i18n.load("statistics.en")
+       self.i18n.loadc("statistics")
 end
 
 function Instance._subst( self, str, val )