* luci/statistics: replace load() with loadc() since german translation is now available
authorJo-Philipp Wich <jow@openwrt.org>
Sun, 8 Jun 2008 14:19:26 +0000 (14:19 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Sun, 8 Jun 2008 14:19:26 +0000 (14:19 +0000)
applications/luci-statistics/luasrc/controller/luci_statistics/luci_statistics.lua
applications/luci-statistics/luasrc/model/cbi/luci_statistics/collectd.lua
applications/luci-statistics/luasrc/statistics/i18n.lua

index 2f68071532381ccbd1c950ccc53832196bf7f725..a8265a163df73bda7428839ce9dde6d8af5acb1c 100644 (file)
@@ -22,7 +22,7 @@ function index()
        require("luci.statistics.datatree")
 
        -- load language file
-       luci.i18n.load("statistics.en") -- XXX: temporary / replace with loadc()
+       luci.i18n.loadc("statistics")
 
        -- get rrd data tree
        local tree = luci.statistics.datatree.Instance()
index 47014f033ab7b211bcb898a53398a8dd0c2ea62e..ebd264154092f69038edac578f91503f4af58f19 100644 (file)
@@ -16,8 +16,6 @@ $Id$
 require("luci.sys")
 
 
-luci.i18n.load("statistics.en")
-
 --[[
 m = Map("luci_statistics", "Collector Daemon",
 Collectd ist ein kleiner und flexibler Dienst zum Sammeln und Abfragen von Daten
index 865839524cf756b471849c97bc1378435e0c4878..9aa642c3437f35d1cb26edfdee703c2f1bfa7a5c 100644 (file)
@@ -26,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 )