summaryrefslogtreecommitdiffhomepage
path: root/modules/freifunk/luasrc/model/cbi
diff options
context:
space:
mode:
authorManuel Munz <freifunk@somakoma.de>2011-09-08 12:51:00 +0000
committerManuel Munz <freifunk@somakoma.de>2011-09-08 12:51:00 +0000
commit1a511de0be0ebd21bd076c9d84074a7e3958b489 (patch)
treee34a175d28241a00b9e8c0bdb2843b3008188ec2 /modules/freifunk/luasrc/model/cbi
parent8bfa762e0cd5fcb4bb8159db578fd0b3fb23964a (diff)
Fix i18n problems with freifunk module and meshwizard
Diffstat (limited to 'modules/freifunk/luasrc/model/cbi')
-rw-r--r--modules/freifunk/luasrc/model/cbi/freifunk/basics.lua2
-rw-r--r--modules/freifunk/luasrc/model/cbi/freifunk/profile.lua1
-rw-r--r--modules/freifunk/luasrc/model/cbi/freifunk/profile_expert.lua1
-rw-r--r--modules/freifunk/luasrc/model/cbi/freifunk/user_index.lua1
4 files changed, 4 insertions, 1 deletions
diff --git a/modules/freifunk/luasrc/model/cbi/freifunk/basics.lua b/modules/freifunk/luasrc/model/cbi/freifunk/basics.lua
index 247e8816c3..fa7cfecd1e 100644
--- a/modules/freifunk/luasrc/model/cbi/freifunk/basics.lua
+++ b/modules/freifunk/luasrc/model/cbi/freifunk/basics.lua
@@ -15,7 +15,7 @@ local fs = require "luci.fs"
local util = require "luci.util"
local uci = require "luci.model.uci".cursor()
local profiles = "/etc/config/profile_"
-
+luci.i18n.loadc("freifunk")
m = Map("freifunk", translate ("Community"))
c = m:section(NamedSection, "community", "public", nil, translate("These are the basic settings for your local wireless community. These settings define the default values for the wizard and DO NOT affect the actual configuration of the router."))
diff --git a/modules/freifunk/luasrc/model/cbi/freifunk/profile.lua b/modules/freifunk/luasrc/model/cbi/freifunk/profile.lua
index 5e5cc21daf..fab7072ff2 100644
--- a/modules/freifunk/luasrc/model/cbi/freifunk/profile.lua
+++ b/modules/freifunk/luasrc/model/cbi/freifunk/profile.lua
@@ -12,6 +12,7 @@ You may obtain a copy of the License at
local uci = require "luci.model.uci".cursor()
local community = uci:get("freifunk", "community", "name")
+luci.i18n.loadc("freifunk")
if community == nil then
luci.http.redirect(luci.dispatcher.build_url("admin", "freifunk", "profile_error"))
diff --git a/modules/freifunk/luasrc/model/cbi/freifunk/profile_expert.lua b/modules/freifunk/luasrc/model/cbi/freifunk/profile_expert.lua
index a0b8f34bc9..b08c0f0249 100644
--- a/modules/freifunk/luasrc/model/cbi/freifunk/profile_expert.lua
+++ b/modules/freifunk/luasrc/model/cbi/freifunk/profile_expert.lua
@@ -13,6 +13,7 @@ You may obtain a copy of the License at
local fs = require "nixio.fs"
local uci = require "luci.model.uci".cursor()
local community = uci:get("freifunk", "community", "name")
+luci.i18n.loadc("freifunk")
if community == nil then
luci.http.redirect(luci.dispatcher.build_url("admin", "freifunk", "profile_error"))
diff --git a/modules/freifunk/luasrc/model/cbi/freifunk/user_index.lua b/modules/freifunk/luasrc/model/cbi/freifunk/user_index.lua
index fe1d8fe7ed..e23ea901ab 100644
--- a/modules/freifunk/luasrc/model/cbi/freifunk/user_index.lua
+++ b/modules/freifunk/luasrc/model/cbi/freifunk/user_index.lua
@@ -1,5 +1,6 @@
local fs = require "nixio.fs"
local file = "/www/luci-static/index_user.html"
+luci.i18n.loadc("freifunk")
m = Map("freifunk", translate("Edit index page"), translate("You can display additional content on the public index page by inserting valid XHTML in the form below.<br />Headlines should be enclosed between &lt;h2&gt; and &lt;/h2&gt;."))