luci-app-wifischedule: Add more translation

Signed-off-by: Hsing-Wang Liao <kuoruan@gmail.com>
This commit is contained in:
Hsing-Wang Liao 2017-01-02 12:53:47 +08:00
parent df0d765deb
commit 2f42138ef4
4 changed files with 57 additions and 15 deletions

View file

@ -15,10 +15,10 @@
module("luci.controller.wifischedule.wifi_schedule", package.seeall) module("luci.controller.wifischedule.wifi_schedule", package.seeall)
function index() function index()
entry({"admin", "wifi_schedule"}, firstchild(), "Wifi Schedule", 60).dependent=false entry({"admin", "wifi_schedule"}, firstchild(), _("Wifi Schedule"), 60).dependent=false
entry({"admin", "wifi_schedule", "tab_from_cbi"}, cbi("wifischedule/wifi_schedule"), "Schedule", 1) entry({"admin", "wifi_schedule", "tab_from_cbi"}, cbi("wifischedule/wifi_schedule"), _("Schedule"), 1)
entry({"admin", "wifi_schedule", "wifi_schedule"}, call("wifi_schedule_log"), "View Logfile", 2) entry({"admin", "wifi_schedule", "wifi_schedule"}, call("wifi_schedule_log"), _("View Logfile"), 2)
entry({"admin", "wifi_schedule", "cronjob"}, call("view_crontab"), "View Cron Jobs", 3) entry({"admin", "wifi_schedule", "cronjob"}, call("view_crontab"), _("View Cron Jobs"), 3)
end end
function wifi_schedule_log() function wifi_schedule_log()

View file

@ -46,7 +46,7 @@ end
-- END Map -- END Map
-- BEGIN Global Section -- BEGIN Global Section
global_section = m:section(TypedSection, "global", "Global Settings") global_section = m:section(TypedSection, "global", translate("Global Settings"))
global_section.optional = false global_section.optional = false
global_section.rmempty = false global_section.rmempty = false
global_section.anonymous = true global_section.anonymous = true
@ -142,7 +142,7 @@ end
-- BEGIN Section -- BEGIN Section
d = m:section(TypedSection, "entry", "Schedule events") d = m:section(TypedSection, "entry", translate("Schedule events"))
d.addremove = true d.addremove = true
--d.anonymous = true --d.anonymous = true
-- END Section -- END Section
@ -157,13 +157,13 @@ c.optional=false; c.rmempty = false;
dow = d:option(MultiValue, "daysofweek", translate("Day(s) of Week")) dow = d:option(MultiValue, "daysofweek", translate("Day(s) of Week"))
dow.optional = false dow.optional = false
dow.rmempty = false dow.rmempty = false
dow:value("Monday") dow:value("Monday", translate("Monday"))
dow:value("Tuesday") dow:value("Tuesday", translate("Tuesday"))
dow:value("Wednesday") dow:value("Wednesday", translate("Wednesday"))
dow:value("Thursday") dow:value("Thursday", translate("Thursday"))
dow:value("Friday") dow:value("Friday", translate("Friday"))
dow:value("Saturday") dow:value("Saturday", translate("Saturday"))
dow:value("Sunday") dow:value("Sunday", translate("Sunday"))
-- END Day(s) of Weel -- END Day(s) of Weel
-- BEGIN Start Wifi Dropdown -- BEGIN Start Wifi Dropdown

View file

@ -15,7 +15,7 @@ Author: Nils Koenig <openwrt@newk.it>
-%> -%>
<%+header%> <%+header%>
<h2 name="title"><%=title%></h2> <h2 name="title"><%=translate(title)%></h2>
<div id="content_fileviewer"> <div id="content_fileviewer">
<textarea style="width: 100%" readonly="readonly" wrap="off" rows="<%=content:cmatch("\n")+1%>" id="content_id"><%=content:pcdata()%></textarea> <textarea style="width: 100%" readonly="readonly" wrap="off" rows="<%=content:cmatch("\n")+1%>" id="content_id"><%=content:pcdata()%></textarea>
</div> </div>

View file

@ -10,6 +10,9 @@ msgstr ""
msgid "Could not find required programm /usr/bin/iwinfo" msgid "Could not find required programm /usr/bin/iwinfo"
msgstr "" msgstr ""
msgid "Cron Jobs"
msgstr ""
msgid "Day(s) of Week" msgid "Day(s) of Week"
msgstr "" msgstr ""
@ -37,7 +40,22 @@ msgstr ""
msgid "Force disabling wifi even if stations associated" msgid "Force disabling wifi even if stations associated"
msgstr "" msgstr ""
msgid "Unload Modules (experimental; saves more power)" msgid "Friday"
msgstr ""
msgid "Global Settings"
msgstr ""
msgid "Monday"
msgstr ""
msgid "Saturday"
msgstr ""
msgid "Schedule"
msgstr ""
msgid "Schedule events"
msgstr "" msgstr ""
msgid "Start Time" msgid "Start Time"
@ -52,5 +70,29 @@ msgstr ""
msgid "Stop WiFi" msgid "Stop WiFi"
msgstr "" msgstr ""
msgid "Sunday"
msgstr ""
msgid "Thursday"
msgstr ""
msgid "Tuesday"
msgstr ""
msgid "Unload Modules (experimental; saves more power)"
msgstr ""
msgid "View Cron Jobs"
msgstr ""
msgid "View Logfile"
msgstr ""
msgid "Wednesday"
msgstr ""
msgid "Wifi Schedule" msgid "Wifi Schedule"
msgstr "" msgstr ""
msgid "Wifi Schedule Logfile"
msgstr ""