gluon-config-mode-core: add translations
This commit is contained in:
parent
76ccfeea25
commit
67b607d882
@ -28,10 +28,12 @@ define Build/Configure
|
|||||||
endef
|
endef
|
||||||
|
|
||||||
define Build/Compile
|
define Build/Compile
|
||||||
|
$(call GluonBuildI18N,gluon-config-mode-core)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/gluon-config-mode-core/install
|
define Package/gluon-config-mode-core/install
|
||||||
$(CP) ./files/* $(1)/
|
$(CP) ./files/* $(1)/
|
||||||
|
$(call GluonInstallI18N,gluon-config-mode-core,$(1))
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/gluon-config-mode-core/postinst
|
define Package/gluon-config-mode-core/postinst
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
local wizard_dir = "/lib/gluon/config-mode/wizard/"
|
local wizard_dir = "/lib/gluon/config-mode/wizard/"
|
||||||
|
local i18n = luci.i18n
|
||||||
local uci = luci.model.uci.cursor()
|
local uci = luci.model.uci.cursor()
|
||||||
local fs = require "luci.fs"
|
local fs = require "luci.fs"
|
||||||
local f, s
|
local f, s
|
||||||
@ -17,7 +18,6 @@ end
|
|||||||
f = SimpleForm("wizard")
|
f = SimpleForm("wizard")
|
||||||
f.reset = false
|
f.reset = false
|
||||||
f.template = "gluon-config-mode/cbi/wizard"
|
f.template = "gluon-config-mode/cbi/wizard"
|
||||||
f.submit = "Speichern & Neustarten"
|
|
||||||
|
|
||||||
for _, s in ipairs(wizard) do
|
for _, s in ipairs(wizard) do
|
||||||
s.section(f)
|
s.section(f)
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
local template = require 'luci.template'
|
local template = require 'luci.template'
|
||||||
-%>
|
-%>
|
||||||
|
|
||||||
<h2>Willkommen!</h2>
|
<h2><%:Welcome!%></h2>
|
||||||
<p>
|
<p>
|
||||||
<%= template.render_string(site.config_mode.msg_welcome, {hostname=hostname, sysconfig=sysconfig}) %>
|
<%= template.render_string(site.config_mode.msg_welcome, {hostname=hostname, sysconfig=sysconfig}) %>
|
||||||
</p>
|
</p>
|
||||||
@ -31,37 +31,15 @@
|
|||||||
<% if not self.embedded then %>
|
<% if not self.embedded then %>
|
||||||
<div class="cbi-page-actions">
|
<div class="cbi-page-actions">
|
||||||
<%-
|
<%-
|
||||||
if type(self.hidden) == "table" then
|
if type(self.hidden) == "table" then
|
||||||
for k, v in pairs(self.hidden) do
|
for k, v in pairs(self.hidden) do
|
||||||
-%>
|
-%>
|
||||||
<input type="hidden" id="<%=k%>" name="<%=k%>" value="<%=pcdata(v)%>" />
|
<input type="hidden" id="<%=k%>" name="<%=k%>" value="<%=pcdata(v)%>" />
|
||||||
<%-
|
<%-
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
|
||||||
%>
|
%>
|
||||||
<% if redirect then %>
|
<input class="cbi-button cbi-button-save" type="submit" value="<%:Save & restart%>" />
|
||||||
<div style="float:left">
|
|
||||||
<input class="cbi-button cbi-button-link" type="button" value="<%:Back to Overview%>" onclick="location.href='<%=pcdata(redirect)%>'" />
|
|
||||||
</div>
|
|
||||||
<% end %>
|
|
||||||
<%- if self.flow and self.flow.skip then %>
|
|
||||||
<input class="cbi-button cbi-button-skip" type="submit" name="cbi.skip" value="<%:Skip%>" />
|
|
||||||
<% end %>
|
|
||||||
<%- if self.submit ~= false then %>
|
|
||||||
<input class="cbi-button cbi-button-save" type="submit" value="
|
|
||||||
<%- if not self.submit then -%><%-:Submit-%><%-else-%><%=self.submit%><%end-%>
|
|
||||||
" />
|
|
||||||
<% end %>
|
|
||||||
<%- if self.reset ~= false then %>
|
|
||||||
<input class="cbi-button cbi-button-reset" type="reset" value="
|
|
||||||
<%- if not self.reset then -%><%-:Reset-%><%-else-%><%=self.reset%><%end-%>
|
|
||||||
" />
|
|
||||||
<% end %>
|
|
||||||
<%- if self.cancel ~= false and self.on_cancel then %>
|
|
||||||
<input class="cbi-button cbi-button-reset" type="submit" name="cbi.cancel" value="
|
|
||||||
<%- if not self.cancel then -%><%-:Cancel-%><%-else-%><%=self.cancel%><%end-%>
|
|
||||||
" />
|
|
||||||
<% end %>
|
|
||||||
<script type="text/javascript">cbi_d_update();</script>
|
<script type="text/javascript">cbi_d_update();</script>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
<body>
|
<body>
|
||||||
<div id="maincontainer">
|
<div id="maincontainer">
|
||||||
<div id="maincontent">
|
<div id="maincontent">
|
||||||
<h2>Dein Freifunkknoten ist nun fertig eingerichtet.</h2>
|
<h2><%:Your node's setup is now complete.%></h2>
|
||||||
<% for k, v in ipairs(parts) do v() end %>
|
<% for k, v in ipairs(parts) do v() end %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
24
package/gluon-config-mode-core/i18n/de.po
Normal file
24
package/gluon-config-mode-core/i18n/de.po
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
msgid ""
|
||||||
|
msgstr ""
|
||||||
|
"Project-Id-Version: PACKAGE VERSION\n"
|
||||||
|
"PO-Revision-Date: 2015-03-19 02:07+0100\n"
|
||||||
|
"Last-Translator: Matthias Schiffer <mschiffer@universe-factory.net>\n"
|
||||||
|
"Language-Team: German\n"
|
||||||
|
"Language: de\n"
|
||||||
|
"MIME-Version: 1.0\n"
|
||||||
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
|
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||||
|
|
||||||
|
#, fuzzy
|
||||||
|
msgid "Save & restart"
|
||||||
|
msgstr "Speichern & Neustarten"
|
||||||
|
|
||||||
|
msgid "Welcome!"
|
||||||
|
msgstr "Willkommen!"
|
||||||
|
|
||||||
|
msgid "Wizard"
|
||||||
|
msgstr "Wizard"
|
||||||
|
|
||||||
|
msgid "Your node's setup is now complete."
|
||||||
|
msgstr "Dein Freifunkknoten ist nun fertig eingerichtet."
|
24
package/gluon-config-mode-core/i18n/en.po
Normal file
24
package/gluon-config-mode-core/i18n/en.po
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
msgid ""
|
||||||
|
msgstr ""
|
||||||
|
"Project-Id-Version: PACKAGE VERSION\n"
|
||||||
|
"PO-Revision-Date: 2015-03-19 02:07+0100\n"
|
||||||
|
"Last-Translator: Matthias Schiffer <mschiffer@universe-factory.net>\n"
|
||||||
|
"Language-Team: English\n"
|
||||||
|
"Language: en\n"
|
||||||
|
"MIME-Version: 1.0\n"
|
||||||
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
|
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||||
|
|
||||||
|
#, fuzzy
|
||||||
|
msgid "Save & restart"
|
||||||
|
msgstr "Save & restart"
|
||||||
|
|
||||||
|
msgid "Welcome!"
|
||||||
|
msgstr "Welcome!"
|
||||||
|
|
||||||
|
msgid "Wizard"
|
||||||
|
msgstr "Wizard"
|
||||||
|
|
||||||
|
msgid "Your node's setup is now complete."
|
||||||
|
msgstr "Your node's setup is now complete."
|
@ -0,0 +1,14 @@
|
|||||||
|
msgid ""
|
||||||
|
msgstr "Content-Type: text/plain; charset=UTF-8"
|
||||||
|
|
||||||
|
msgid "Save & restart"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
msgid "Welcome!"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
msgid "Wizard"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
msgid "Your node's setup is now complete."
|
||||||
|
msgstr ""
|
Loading…
Reference in New Issue
Block a user