From ae05491d07bd0e738d563a7729d53c4da46ff31e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Beno=C3=AEt=20Knecht?= Date: Wed, 14 Apr 2010 08:58:08 +0000 Subject: [PATCH] hd-idle: clean-up translation strings --- .../luci-hd-idle/luasrc/model/cbi/hd_idle.lua | 14 +++-- po/templates/hd_idle.pot | 56 ++++++++++--------- 2 files changed, 38 insertions(+), 32 deletions(-) diff --git a/applications/luci-hd-idle/luasrc/model/cbi/hd_idle.lua b/applications/luci-hd-idle/luasrc/model/cbi/hd_idle.lua index 82b9eaa74..d1a88414e 100644 --- a/applications/luci-hd-idle/luasrc/model/cbi/hd_idle.lua +++ b/applications/luci-hd-idle/luasrc/model/cbi/hd_idle.lua @@ -15,12 +15,14 @@ $Id$ require("nixio.fs") -m = Map("hd-idle", translate("hd-idle"), translate("hd-idle is a utility program for spinning-down external disks after a period of idle time.")) +m = Map("hd-idle", "hd-idle", + translate("hd-idle is a utility program for spinning-down external " .. + "disks after a period of idle time.")) s = m:section(TypedSection, "hd-idle", translate("Settings")) s.anonymous = true -s:option(Flag, "enabled", translate("enable")) +s:option(Flag, "enabled", translate("Enable")) disk = s:option(Value, "disk", translate("Disk")) disk.rmempty = true @@ -28,12 +30,12 @@ for dev in nixio.fs.glob("/dev/[sh]d[a-z]") do disk:value(nixio.fs.basename(dev)) end -s:option(Value, "idle_time_interval", translate("Idle-Time")).default = 10 +s:option(Value, "idle_time_interval", translate("Idle-time")).default = 10 s.rmempty = true -unit = s:option(ListValue, "idle_time_unit", translate("Idle-Time unit")) +unit = s:option(ListValue, "idle_time_unit", translate("Idle-time unit")) unit.default = "minutes" -unit:value("minutes", "min") -unit:value("hours", "h") +unit:value("minutes", translate("min")) +unit:value("hours", translate("h")) unit.rmempty = true s:option(Flag, "enable_debug", translate("Enable debug")) diff --git a/po/templates/hd_idle.pot b/po/templates/hd_idle.pot index ceb436796..1544abfbd 100644 --- a/po/templates/hd_idle.pot +++ b/po/templates/hd_idle.pot @@ -1,41 +1,45 @@ -# hd_idle.pot -# generated from ./applications/luci-hd_idle/luasrc/i18n/hd_idle.en.lua +# Generated from applications/luci-hd-idle/luasrc/model/cbi/hd_idle.lua +# +#, fuzzy msgid "" -msgstr "Content-Type: text/plain; charset=UTF-8" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2010-04-14 10:33+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" -#. Disk -#: applications/luci-hd_idle/luasrc/i18n/hd_idle.en.lua:1 -msgid "Disk" +msgid "" +"hd-idle is a utility program for spinning-down external disks after a period " +"of idle time." msgstr "" -#. Enable debug -#: applications/luci-hd_idle/luasrc/i18n/hd_idle.en.lua:2 -msgid "Enable debug" +msgid "Settings" msgstr "" -#. hd-idle -#: applications/luci-hd_idle/luasrc/i18n/hd_idle.en.lua:3 -msgid "hd-idle" +msgid "Enable" msgstr "" -#. hd-idle is a utility program for spinning-down external disks after a period of idle time. -#: applications/luci-hd_idle/luasrc/i18n/hd_idle.en.lua:4 -msgid "" -"hd-idle is a utility program for spinning-down external disks after a period " -"of idle time." +msgid "Disk" msgstr "" -#. Idle-Time -#: applications/luci-hd_idle/luasrc/i18n/hd_idle.en.lua:5 -msgid "Idle-Time" +msgid "Idle-time" msgstr "" -#. Idle-Time unit -#: applications/luci-hd_idle/luasrc/i18n/hd_idle.en.lua:6 -msgid "Idle-Time unit" +msgid "Idle-time unit" msgstr "" -#. Settings -#: applications/luci-hd_idle/luasrc/i18n/hd_idle.en.lua:7 -msgid "Settings" +# Minutes (not minimum) +msgid "min" +msgstr "" + +# Hours +msgid "h" +msgstr "" + +msgid "Enable debug" msgstr "" -- 2.25.1