gluon-luci-private-wifi: i18n
This commit is contained in:
parent
56c8fe5145
commit
a02d7ad800
@ -1,12 +1,14 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=gluon-luci-private-wifi
|
PKG_NAME:=gluon-luci-private-wifi
|
||||||
PKG_VERSION:=0.1
|
PKG_VERSION:=1
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
|
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(GLUONDIR)/include/package.mk
|
||||||
|
|
||||||
|
PKG_CONFIG_DEPENDS += $(GLUON_I18N_CONFIG)
|
||||||
|
|
||||||
define Package/gluon-luci-private-wifi
|
define Package/gluon-luci-private-wifi
|
||||||
SECTION:=gluon
|
SECTION:=gluon
|
||||||
@ -23,10 +25,12 @@ define Build/Configure
|
|||||||
endef
|
endef
|
||||||
|
|
||||||
define Build/Compile
|
define Build/Compile
|
||||||
|
$(call GluonBuildI18N,gluon-luci-private-wifi,i18n)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/gluon-luci-private-wifi/install
|
define Package/gluon-luci-private-wifi/install
|
||||||
$(CP) ./files/* $(1)/
|
$(CP) ./files/* $(1)/
|
||||||
|
$(call GluonInstallI18N,gluon-luci-private-wifi,$(1))
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(eval $(call BuildPackage,gluon-luci-private-wifi))
|
$(eval $(call BuildPackage,gluon-luci-private-wifi))
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
module("luci.controller.admin.privatewifi", package.seeall)
|
module("luci.controller.admin.privatewifi", package.seeall)
|
||||||
|
|
||||||
function index()
|
function index()
|
||||||
entry({"admin", "privatewifi"}, cbi("admin/privatewifi"), "Privates WLAN", 10)
|
entry({"admin", "privatewifi"}, cbi("admin/privatewifi"), _("Private WLAN"), 10)
|
||||||
end
|
end
|
||||||
|
@ -6,26 +6,24 @@ local config = 'wireless'
|
|||||||
local primary_iface = 'wan_radio0'
|
local primary_iface = 'wan_radio0'
|
||||||
local ssid = uci:get(config, primary_iface, "ssid")
|
local ssid = uci:get(config, primary_iface, "ssid")
|
||||||
|
|
||||||
f = SimpleForm("wifi", "Privates WLAN")
|
f = SimpleForm("wifi", translate("Private WLAN"))
|
||||||
f.reset = false
|
|
||||||
f.template = "admin/expertmode"
|
f.template = "admin/expertmode"
|
||||||
f.submit = "Fertig"
|
|
||||||
|
|
||||||
s = f:section(SimpleSection, nil, [[
|
s = f:section(SimpleSection, nil, translate(
|
||||||
Dein Freifunk-Router kann ebenfalls die Reichweite deines privaten Netzes erweitern.
|
'Your node can additionally extend your private network by bridging the WAN interface '
|
||||||
Hierfür wird der WAN-Port mit einem seperaten WLAN gebridged.
|
.. 'with a seperate WLAN. This feature is completely independent of the mesh functionality. '
|
||||||
Diese Funktionalität ist völlig unabhängig von Freifunk.
|
.. 'Please note that the private WLAN and meshing on the WAN interface should not be enabled '
|
||||||
Beachte, dass du nicht gleichzeitig das Meshen über den WAN Port aktiviert haben solltest.
|
.. 'at the same time.'
|
||||||
]])
|
))
|
||||||
|
|
||||||
o = s:option(Flag, "enabled", "Aktiviert")
|
o = s:option(Flag, "enabled", translate("Enabled"))
|
||||||
o.default = (ssid and not uci:get_bool(config, primary_iface, "disabled")) and o.enabled or o.disabled
|
o.default = (ssid and not uci:get_bool(config, primary_iface, "disabled")) and o.enabled or o.disabled
|
||||||
o.rmempty = false
|
o.rmempty = false
|
||||||
|
|
||||||
o = s:option(Value, "ssid", "Name (SSID)")
|
o = s:option(Value, "ssid", translate("Name (SSID)"))
|
||||||
o.default = ssid
|
o.default = ssid
|
||||||
|
|
||||||
o = s:option(Value, "key", "Schlüssel", "8-63 Zeichen")
|
o = s:option(Value, "key", translate("Key"), translate("8-63 characters"))
|
||||||
o.datatype = "wpakey"
|
o.datatype = "wpakey"
|
||||||
o.default = uci:get(config, primary_iface, "key")
|
o.default = uci:get(config, primary_iface, "key")
|
||||||
|
|
||||||
|
32
package/gluon-luci-private-wifi/i18n/de.po
Normal file
32
package/gluon-luci-private-wifi/i18n/de.po
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
msgid ""
|
||||||
|
msgstr ""
|
||||||
|
"Project-Id-Version: PACKAGE VERSION\n"
|
||||||
|
"PO-Revision-Date: 2015-05-04 02:25+0200\n"
|
||||||
|
"Last-Translator: <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"
|
||||||
|
|
||||||
|
msgid "8-63 characters"
|
||||||
|
msgstr "8-63 Zeichen"
|
||||||
|
|
||||||
|
msgid "Name (SSID)"
|
||||||
|
msgstr "Name (SSID)"
|
||||||
|
|
||||||
|
msgid "Private WLAN"
|
||||||
|
msgstr "Privates WLAN"
|
||||||
|
|
||||||
|
msgid ""
|
||||||
|
"Your node can additionally extend your private network by bridging the WAN "
|
||||||
|
"interface with a seperate WLAN. This feature is completely independent of "
|
||||||
|
"the mesh functionality. Please note that the private WLAN and meshing on the "
|
||||||
|
"WAN interface should not be enabled at the same time."
|
||||||
|
msgstr ""
|
||||||
|
"Dein Knoten kann zusätzlich die Reichweite deines privaten Netzes erweitern. "
|
||||||
|
"Hierfür wird der WAN-Port mit einem seperaten WLAN gebridged. Diese "
|
||||||
|
"Funktionalität ist völlig unabhängig von den Mesh-Funktionen des Knotens. "
|
||||||
|
"Beachte, dass du nicht gleichzeitig das Meshen über den WAN-Port aktiviert "
|
||||||
|
"haben solltest."
|
@ -0,0 +1,18 @@
|
|||||||
|
msgid ""
|
||||||
|
msgstr "Content-Type: text/plain; charset=UTF-8"
|
||||||
|
|
||||||
|
msgid "8-63 characters"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
msgid "Name (SSID)"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
msgid "Private WLAN"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
msgid ""
|
||||||
|
"Your node can additionally extend your private network by bridging the WAN "
|
||||||
|
"interface with a seperate WLAN. This feature is completely independent of "
|
||||||
|
"the mesh functionality. Please note that the private WLAN and meshing on the "
|
||||||
|
"WAN interface should not be enabled at the same time."
|
||||||
|
msgstr ""
|
Loading…
Reference in New Issue
Block a user