Changeset 6041

Show
Ignore:
Timestamp:
04/12/10 14:38:14 (3 years ago)
Author:
ben
Message:

ddns: add translations and clean-up POT template

Some strings were hardcoded in English; make them translatable and add
them to the translation template.

Location:
luci/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • luci/trunk/applications/luci-ddns/luasrc/model/cbi/ddns/ddns.lua

    r6040 r6041  
    1717 
    1818 
    19 m = Map("ddns", translate("Dynamic DNS"), translate("Dynamic DNS allows that your router can be reached with a fixed hostname while having a dynamically changing IP-Address.")) 
     19m = Map("ddns", translate("Dynamic DNS"), 
     20    translate("Dynamic DNS allows that your router can be reached with " .. 
     21        "a fixed hostname while having a dynamically changing " .. 
     22        "IP address.")) 
    2023 
    2124s = m:section(TypedSection, "service", "") 
     
    2326s.anonymous = false 
    2427 
    25 s:option(Flag, "enabled", translate("enable")) 
     28s:option(Flag, "enabled", translate("Enable")) 
    2629 
    2730svc = s:option(ListValue, "service_name", translate("Service")) 
     
    6467    require("luci.tools.webadmin") 
    6568 
    66     src = s:option(ListValue, "ip_source", translate("Source of IP-Address")) 
     69    src = s:option(ListValue, "ip_source", 
     70        translate("Source of IP address")) 
    6771    src:value("network", translate("Network")) 
    6872    src:value("interface", translate("Interface")) 
    69     src:value("web", "URL") 
     73    src:value("web", translate("URL")) 
    7074 
    7175    iface = s:option(ListValue, "ip_network", translate("Network")) 
     
    8185    end 
    8286 
    83     web = s:option(Value, "ip_url", "URL") 
     87    web = s:option(Value, "ip_url", translate("URL")) 
    8488    web:depends("ip_source", "web") 
    8589    web.rmempty = true 
    8690end 
    8791 
    88 s:option(Value, "check_interval", translate("Check for changed IP every")).default = 10 
    89 unit = s:option(ListValue, "check_unit", translate("Check-Time unit")) 
     92 
     93s:option(Value, "check_interval", 
     94    translate("Check for changed IP every")).default = 10 
     95unit = s:option(ListValue, "check_unit", translate("Check-time unit")) 
    9096unit.default = "minutes" 
    91 unit:value("minutes", "min") 
    92 unit:value("hours", "h") 
     97unit:value("minutes", translate("min")) 
     98unit:value("hours", translate("h")) 
    9399 
    94100s:option(Value, "force_interval", translate("Force update every")).default = 72 
    95 unit = s:option(ListValue, "force_unit", translate("Force-Time unit")) 
     101unit = s:option(ListValue, "force_unit", translate("Force-time unit")) 
    96102unit.default = "hours" 
    97 unit:value("minutes", "min") 
    98 unit:value("hours", "h") 
     103unit:value("minutes", translate("min")) 
     104unit:value("hours", translate("h")) 
    99105 
    100106 
  • luci/trunk/po/templates/ddns.pot

    r5468 r6041  
    1 #  ddns.pot 
    2 #  generated from ./applications/luci-ddns/luasrc/i18n/ddns.en.lua 
     1# Generated from applications/luci-ddns/luasrc/model/cbi/ddns/ddns.lua 
     2# 
     3#, fuzzy 
    34msgid "" 
    4 msgstr "Content-Type: text/plain; charset=UTF-8" 
     5msgstr "" 
     6"Project-Id-Version: PACKAGE VERSION\n" 
     7"Report-Msgid-Bugs-To: \n" 
     8"POT-Creation-Date: 2010-04-02 13:44+0100\n" 
     9"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 
     10"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" 
     11"Language-Team: LANGUAGE <LL@li.org>\n" 
     12"MIME-Version: 1.0\n" 
     13"Content-Type: text/plain; charset=UTF-8\n" 
     14"Content-Transfer-Encoding: 8bit\n" 
    515 
    6 #. Dynamic DNS 
    7 #: applications/luci-ddns/luasrc/i18n/ddns.en.lua:1 
    816msgid "Dynamic DNS" 
    917msgstr "" 
    1018 
    11 #. Dynamic DNS allows that your router can be reached with a fixed hostname while having a dynamically changing IP-Address. 
    12 #: applications/luci-ddns/luasrc/i18n/ddns.en.lua:2 
    1319msgid "" 
    1420"Dynamic DNS allows that your router can be reached with a fixed hostname " 
     
    1622msgstr "" 
    1723 
    18 #. Source of IP-Address 
    19 #: applications/luci-ddns/luasrc/i18n/ddns.en.lua:3 
    20 msgid "Source of IP-Address" 
     24msgid "Enable" 
    2125msgstr "" 
    2226 
    23 #. Check for changed IP every 
    24 #: applications/luci-ddns/luasrc/i18n/ddns.en.lua:4 
     27msgid "Service" 
     28msgstr "" 
     29 
     30msgid "custom" 
     31msgstr "" 
     32 
     33msgid "Custom update-URL" 
     34msgstr "" 
     35 
     36msgid "Hostname" 
     37msgstr "" 
     38 
     39msgid "Username" 
     40msgstr "" 
     41 
     42msgid "Password" 
     43msgstr "" 
     44 
     45msgid "Source of IP address" 
     46msgstr "" 
     47 
     48msgid "Network" 
     49msgstr "" 
     50 
     51msgid "Interface" 
     52msgstr "" 
     53 
     54msgid "URL" 
     55msgstr "" 
     56 
    2557msgid "Check for changed IP every" 
    2658msgstr "" 
    2759 
    28 #. Check-Time unit 
    29 #: applications/luci-ddns/luasrc/i18n/ddns.en.lua:5 
    30 msgid "Check-Time unit" 
     60msgid "Check-time unit" 
    3161msgstr "" 
    3262 
    33 #. Force update every 
    34 #: applications/luci-ddns/luasrc/i18n/ddns.en.lua:6 
     63# Minutes (not minimum) 
     64msgid "min" 
     65msgstr "" 
     66 
     67# Hours 
     68msgid "h" 
     69msgstr "" 
     70 
    3571msgid "Force update every" 
    3672msgstr "" 
    3773 
    38 #. Force-Time unit 
    39 #: applications/luci-ddns/luasrc/i18n/ddns.en.lua:7 
    40 msgid "Force-Time unit" 
     74msgid "Force-time unit" 
    4175msgstr "" 
    42  
    43 #. Custom Update-URL 
    44 #: applications/luci-ddns/luasrc/i18n/ddns.en.lua:8 
    45 msgid "Custom Update-URL" 
    46 msgstr ""