diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2008-05-28 22:34:26 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2008-05-28 22:34:26 +0000 |
commit | b06638df6e776fc380687b06924a77b03055c00e (patch) | |
tree | 9474d20d6ea68d2bf3911e60b865c306462eac97 /applications/luci-statistics/luasrc/controller/luci_statistics | |
parent | aafa5b786d4692fe65bdc2ac8552976d0a3a3a51 (diff) |
* luci/statistics: implement initial i18n support, added first translations, removed hardcoded strings from models
Diffstat (limited to 'applications/luci-statistics/luasrc/controller/luci_statistics')
-rw-r--r-- | applications/luci-statistics/luasrc/controller/luci_statistics/luci_statistics.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/applications/luci-statistics/luasrc/controller/luci_statistics/luci_statistics.lua b/applications/luci-statistics/luasrc/controller/luci_statistics/luci_statistics.lua index 067428b46..871a3585e 100644 --- a/applications/luci-statistics/luasrc/controller/luci_statistics/luci_statistics.lua +++ b/applications/luci-statistics/luasrc/controller/luci_statistics/luci_statistics.lua @@ -44,7 +44,7 @@ function index() -- public views - entry({"freifunk", "statistics"}, call("statistics_index"), "Statistiken", 80) + entry({"freifunk", "statistics"}, call("statistics_index"), "Statistiken", 80).i18n = "statistics" for i, plugin in ipairs( data:plugins() ) do _entry({"freifunk", "statistics", plugin}, call("statistics_render"), plugin, i) @@ -99,7 +99,7 @@ function statistics_render() for i, inst in ipairs( data:plugin_instances( plugin ) ) do local graph = rrd.Graph() - for i, img in ipairs( graph:render( "OpenWrt", plugin, inst ) ) do + for i, img in ipairs( graph:render( plugin, inst ) ) do table.insert( images, img ) end end |