diff --git a/ffho/ffho-config-mode-mesh-vpn/Makefile b/ffho/ffho-config-mode-mesh-vpn/Makefile index a4fe622cc710cbd2d67c97f38f4aa233054c0645..14a9cd236f65bea56ed472607de6133777adf0e9 100644 --- a/ffho/ffho-config-mode-mesh-vpn/Makefile +++ b/ffho/ffho-config-mode-mesh-vpn/Makefile @@ -14,7 +14,7 @@ define Package/ffho-config-mode-mesh-vpn SECTION:=gluon CATEGORY:=Gluon TITLE:=Toggle mesh-vpn and bandwidth limit - DEPENDS:=gluon-config-mode-core-virtual +gluon-mesh-vpn-fastd +gluon-simple-tc + DEPENDS:=gluon-config-mode-core-virtual +gluon-mesh-vpn-fastd endef define Build/Prepare @@ -33,4 +33,4 @@ define Package/ffho-config-mode-mesh-vpn/install $(call GluonInstallI18N,ffho-config-mode-mesh-vpn,$(1)) endef -$(eval $(call BuildPackage,ffho-config-mode-mesh-vpn)) +$(eval $(call BuildPackage,ffho-config-mode-mesh-vpn)) \ No newline at end of file diff --git a/ffho/ffho-config-mode-mesh-vpn/files/lib/gluon/config-mode/reboot/0100-mesh-vpn.lua b/ffho/ffho-config-mode-mesh-vpn/files/lib/gluon/config-mode/reboot/0100-mesh-vpn.lua index d5c9e14f78b1694f843154ac07b106af716ce862..c6e0697522f4c7bf273c03a30769a6912573ece2 100644 --- a/ffho/ffho-config-mode-mesh-vpn/files/lib/gluon/config-mode/reboot/0100-mesh-vpn.lua +++ b/ffho/ffho-config-mode-mesh-vpn/files/lib/gluon/config-mode/reboot/0100-mesh-vpn.lua @@ -13,12 +13,7 @@ else local hostname = uci:get_first("system", "system", "hostname") local contact = uci:get_first("gluon-node-info", "owner", "contact") - local msg = [[<p>]] .. i18n.translate('gluon-config-mode:pubkey') .. [[</p> - <div class="the-key"> - # <%= hostname %> - <br/> - <%= pubkey %> - </div>]] + local msg = i18n.translate('gluon-config-mode:pubkey') return function () luci.template.render_string(msg, { pubkey=pubkey diff --git a/ffho/ffho-config-mode-mesh-vpn/files/lib/gluon/config-mode/wizard/0300-mesh-vpn.lua b/ffho/ffho-config-mode-mesh-vpn/files/lib/gluon/config-mode/wizard/0300-mesh-vpn.lua index 669a7bc34fe9f2724d7953a4214771cb82f6a0d3..9e2f4008d5d54b88ad6e9712c4d9e3c4378b6618 100644 --- a/ffho/ffho-config-mode-mesh-vpn/files/lib/gluon/config-mode/wizard/0300-mesh-vpn.lua +++ b/ffho/ffho-config-mode-mesh-vpn/files/lib/gluon/config-mode/wizard/0300-mesh-vpn.lua @@ -21,18 +21,18 @@ function M.section(form) o = s:option(cbi.Flag, "_limit_enabled", i18n.translate("Limit bandwidth")) o:depends("_meshvpn", "1") - o.default = uci:get_bool("gluon-simple-tc", "mesh_vpn", "enabled") and o.enabled or o.disabled + o.default = uci:get_bool("simple-tc", "mesh_vpn", "enabled") and o.enabled or o.disabled o.rmempty = false o = s:option(cbi.Value, "_limit_ingress", i18n.translate("Downstream (kbit/s)")) o:depends("_limit_enabled", "1") - o.value = uci:get("gluon-simple-tc", "mesh_vpn", "limit_ingress") + o.value = uci:get("simple-tc", "mesh_vpn", "limit_ingress") o.rmempty = false o.datatype = "integer" o = s:option(cbi.Value, "_limit_egress", i18n.translate("Upstream (kbit/s)")) o:depends("_limit_enabled", "1") - o.value = uci:get("gluon-simple-tc", "mesh_vpn", "limit_egress") + o.value = uci:get("simple-tc", "mesh_vpn", "limit_egress") o.rmempty = false o.datatype = "integer" end @@ -44,20 +44,20 @@ function M.handle(data) -- checks for nil needed due to o:depends(...) if data._limit_enabled ~= nil then - uci:set("gluon-simple-tc", "mesh_vpn", "interface") - uci:set("gluon-simple-tc", "mesh_vpn", "enabled", data._limit_enabled) - uci:set("gluon-simple-tc", "mesh_vpn", "ifname", "mesh-vpn") + uci:set("simple-tc", "mesh_vpn", "interface") + uci:set("simple-tc", "mesh_vpn", "enabled", data._limit_enabled) + uci:set("simple-tc", "mesh_vpn", "ifname", "mesh-vpn") if data._limit_ingress ~= nil then - uci:set("gluon-simple-tc", "mesh_vpn", "limit_ingress", data._limit_ingress) + uci:set("simple-tc", "mesh_vpn", "limit_ingress", data._limit_ingress) end if data._limit_egress ~= nil then - uci:set("gluon-simple-tc", "mesh_vpn", "limit_egress", data._limit_egress) + uci:set("simple-tc", "mesh_vpn", "limit_egress", data._limit_egress) end - uci:commit("gluon-simple-tc") - uci:commit("gluon-simple-tc") + uci:commit("simple-tc") + uci:commit("simple-tc") end end diff --git a/ffho/ffho-config-mode-mesh-vpn/i18n/fr.po b/ffho/ffho-config-mode-mesh-vpn/i18n/fr.po new file mode 100644 index 0000000000000000000000000000000000000000..fc85461323f5310a0b5af6cdfdf54694c801771f --- /dev/null +++ b/ffho/ffho-config-mode-mesh-vpn/i18n/fr.po @@ -0,0 +1,36 @@ +msgid "" +msgstr "" +"Content-Type: text/plain; charset=UTF-8\n" +"Project-Id-Version: PACKAGE VERSION\n" +"PO-Revision-Date: 2015-08-12 23:30+0100\n" +"Last-Translator:Tobias Bernot <tqbs@airmail.cc>\n" +"Language-Team: French\n" +"Language: fr\n" +"MIME-Version: 1.0\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgid "Downstream (kbit/s)" +msgstr "Débit déscendant (kbit/s)" + +msgid "Limit bandwidth" +msgstr "Limiter la bande passante" + +msgid "Upstream (kbit/s)" +msgstr "Débit ascendant (kbit/s)" + +msgid "Use internet connection (mesh VPN)" +msgstr "Utiliser la connection internet (Mesh-VPN)" + +msgid "" +"Your internet connection can be used to establish an encrypted connection " +"with other nodes. Enable this option if there are no other nodes reachable " +"over WLAN in your vicinity or you want to make a part of your connection's " +"bandwidth available for the network. You can limit how much bandwidth the " +"node will use at most." +msgstr "" +"Votre nœud peut partager votre accès internet grâce une communication encryptée " +"avec d'autres nœuds. Vous pouvez limiter la bande passante utilisée par ceci. " +"Active cette option, si vous n'avez pas d'autres nœuds atteignables par WLAN " +"ou si vous voulez partager votre bande passante pour le réseau MESH." +