diff options
author | Manuel Munz <freifunk@somakoma.de> | 2011-09-08 12:51:00 +0000 |
---|---|---|
committer | Manuel Munz <freifunk@somakoma.de> | 2011-09-08 12:51:00 +0000 |
commit | 1a511de0be0ebd21bd076c9d84074a7e3958b489 (patch) | |
tree | e34a175d28241a00b9e8c0bdb2843b3008188ec2 /modules/freifunk/luasrc/model | |
parent | 8bfa762e0cd5fcb4bb8159db578fd0b3fb23964a (diff) |
Fix i18n problems with freifunk module and meshwizard
Diffstat (limited to 'modules/freifunk/luasrc/model')
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 247e8816c..fa7cfecd1 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 5e5cc21da..fab7072ff 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 a0b8f34bc..b08c0f024 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 fe1d8fe7e..e23ea901a 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 <h2> and </h2>.")) |