root/luci/trunk/applications/luci-ffwizard/luasrc/controller/ffwizard.lua @ 6854

Revision 6854, 0.9 KB (checked in by soma, 2 years ago)

applications/ffwizard: Fixes for i18n

Line 
1--[[
2LuCI - Lua Configuration Interface
3
4Copyright 2008 Steven Barth <steven@midlink.org>
5Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>
6Copyright 2011 Patrick Grimm <patrick@pberg.freifunk.net>
7
8Licensed under the Apache License, Version 2.0 (the "License");
9you may not use this file except in compliance with the License.
10You may obtain a copy of the License at
11
12http://www.apache.org/licenses/LICENSE-2.0
13
14$Id$
15
16]]--
17
18module "luci.controller.ffwizard"
19
20function index()
21        require("luci.i18n").loadc("ffwizard")
22        local i18n = luci.i18n.translate
23
24    entry({"admin", "freifunk", "ffwizard"}, form("freifunk/ffwizard"), i18n("Wizard"), 40)
25    assign({"mini", "freifunk", "ffwizard"}, {"admin", "freifunk", "ffwizard"}, i18n("Wizard"), 40)
26   
27    entry({"admin", "freifunk", "ffwizard_error"}, template("freifunk/ffwizard_error"))
28    assign({"mini", "freifunk", "ffwizard_error"}, {"admin", "freifunk", "ffwizard_error"})
29end
30
Note: See TracBrowser for help on using the browser.