* luci/statistics: replace load() with loadc() since german translation is now available
This commit is contained in:
parent
3ba1a52c1f
commit
873b20cb19
3 changed files with 2 additions and 5 deletions
|
@ -22,7 +22,7 @@ function index()
|
||||||
require("luci.statistics.datatree")
|
require("luci.statistics.datatree")
|
||||||
|
|
||||||
-- load language file
|
-- load language file
|
||||||
luci.i18n.load("statistics.en") -- XXX: temporary / replace with loadc()
|
luci.i18n.loadc("statistics")
|
||||||
|
|
||||||
-- get rrd data tree
|
-- get rrd data tree
|
||||||
local tree = luci.statistics.datatree.Instance()
|
local tree = luci.statistics.datatree.Instance()
|
||||||
|
|
|
@ -16,8 +16,6 @@ $Id$
|
||||||
require("luci.sys")
|
require("luci.sys")
|
||||||
|
|
||||||
|
|
||||||
luci.i18n.load("statistics.en")
|
|
||||||
|
|
||||||
--[[
|
--[[
|
||||||
m = Map("luci_statistics", "Collector Daemon",
|
m = Map("luci_statistics", "Collector Daemon",
|
||||||
Collectd ist ein kleiner und flexibler Dienst zum Sammeln und Abfragen von Daten
|
Collectd ist ein kleiner und flexibler Dienst zum Sammeln und Abfragen von Daten
|
||||||
|
|
|
@ -26,8 +26,7 @@ function Instance.__init__( self, graph )
|
||||||
self.i18n = luci.i18n
|
self.i18n = luci.i18n
|
||||||
self.graph = graph
|
self.graph = graph
|
||||||
|
|
||||||
-- XXX: compat hack
|
self.i18n.loadc("statistics")
|
||||||
self.i18n.load("statistics.en")
|
|
||||||
end
|
end
|
||||||
|
|
||||||
function Instance._subst( self, str, val )
|
function Instance._subst( self, str, val )
|
||||||
|
|
Loading…
Reference in a new issue