Merge pull request #1160 from zx2c4/wg-psk-change
authorHannu Nyman <hannu.nyman@iki.fi>
Wed, 17 May 2017 19:36:31 +0000 (22:36 +0300)
committerGitHub <noreply@github.com>
Wed, 17 May 2017 19:36:31 +0000 (22:36 +0300)
wireguard: preshared-key is now an attribute of the peer

applications/luci-app-adblock/po/ja/adblock.po
applications/luci-app-mwan3/luasrc/controller/mwan3.lua
applications/luci-app-statistics/luasrc/statistics/datatree.lua
applications/luci-app-travelmate/luasrc/model/cbi/travelmate/overview_tab.lua
applications/luci-app-travelmate/po/ja/travelmate.po
modules/luci-base/root/etc/config/ucitrack

index 1a867fd..ac470fe 100644 (file)
@@ -101,6 +101,8 @@ msgid ""
 "For further information <a href=\"%s\" target=\"_blank\">see online "
 "documentation</a>"
 msgstr ""
+"詳細な情報は<a href=\"%s\" target=\"_blank\">オンライン ドキュメント</a>を確"
+"認してください。"
 
 msgid "Force Overall Sort"
 msgstr "全体ソートの強制"
@@ -146,7 +148,7 @@ msgstr ""
 "ん。"
 
 msgid "Please edit this file directly in a terminal session."
-msgstr ""
+msgstr "ターミナル セッションで直接このファイルを編集してください。"
 
 msgid "Query"
 msgstr "検索"
@@ -188,6 +190,8 @@ msgstr "Adblock の一時停止"
 
 msgid "The file size is too large for online editing in LuCI (&gt; 512 KB)."
 msgstr ""
+"ファイル サイズが大きすぎるため、 LuCI 上でオンライン編集できません(&gt; "
+"512 KB)。"
 
 msgid ""
 "This form allows you to modify the content of the adblock blacklist (%s)."
index d3fd150..ca39c9b 100644 (file)
@@ -3,7 +3,7 @@ module("luci.controller.mwan3", package.seeall)
 sys = require "luci.sys"
 ut = require "luci.util"
 
-ip = "/usr/bin/ip -4 "
+ip = "ip -4 "
 
 function index()
        if not nixio.fs.access("/etc/config/mwan3") then
index 806b054..5176a19 100644 (file)
@@ -13,9 +13,17 @@ local sections = uci:get_all("luci_statistics")
 Instance = util.class()
 
 function Instance.__init__( self, host )
-       self._host    = host or sections.collectd.Hostname or sys.hostname()
-       self._libdir  = sections.collectd.PluginDir        or "/usr/lib/collectd"
-       self._rrddir  = sections.collectd_rrdtool.DataDir  or "/tmp/rrd"
+       self._host    = host or sys.hostname()
+       self._libdir  = "/usr/lib/collectd"
+       self._rrddir  = "/tmp/rrd"
+
+       if sections and sections.collectd then
+               self._host    = host or sections.collectd.Hostname or sys.hostname()
+               self._libdir  = sections.collectd.PluginDir        or "/usr/lib/collectd"
+       end
+       if sections and sections.collectd_rrdtool then
+               self._rrddir  = sections.collectd_rrdtool.DataDir  or "/tmp/rrd"
+       end
 
        self._libdir  = self._libdir:gsub("/$","")
        self._rrddir  = self._rrddir:gsub("/$","")
index 6b07aab..236bbb0 100644 (file)
@@ -16,6 +16,11 @@ m = Map("travelmate", translate("Travelmate"),
        .. "<a href=\"%s\" target=\"_blank\">"
        .. "see online documentation</a>", "https://github.com/openwrt/packages/blob/master/net/travelmate/files/README.md"))
 
+function m.on_after_commit(self)
+       luci.sys.call("/etc/init.d/travelmate restart >/dev/null 2>&1")
+       luci.http.redirect(luci.dispatcher.build_url("admin", "services", "travelmate"))
+end
+
 -- Main travelmate options
 
 s = m:section(NamedSection, "global", "travelmate")
index 6667160..e4a8b8b 100644 (file)
@@ -14,9 +14,10 @@ msgstr ""
 
 msgid "<br />&nbsp;Network Interface 'trm_wwan' created successfully."
 msgstr ""
+"<br />&nbsp;ネットワーク インターフェース 'trm_wwan' の作成に成功しました。"
 
 msgid "Add Interface"
-msgstr ""
+msgstr "インターフェースの追加"
 
 msgid ""
 "Additional trigger delay in seconds before travelmate processing begins."
@@ -29,6 +30,8 @@ msgid ""
 "Automatically create a new wireless wan uplink interface 'trm_wwan', "
 "configure it to use dhcp and"
 msgstr ""
+"新しい無線 WAN インターフェース 'trm_wwan' を自動的に作成し、 DHCP を使用する"
+"よう構成して"
 
 msgid ""
 "Configuration of the travelmate package to to enable travel router "
@@ -40,7 +43,7 @@ msgid "Connection Limit"
 msgstr "接続制限"
 
 msgid "Create Uplink Interface"
-msgstr ""
+msgstr "アップリンク インターフェースの作成"
 
 msgid "Edit Firewall Configuration"
 msgstr "ファイアウォール設定の編集"
@@ -70,6 +73,8 @@ msgid ""
 "For further information <a href=\"%s\" target=\"_blank\">see online "
 "documentation</a>"
 msgstr ""
+"詳細な情報は <a href=\"%s\" target=\"_blank\">オンライン ドキュメント</a>を確"
+"認してください。"
 
 msgid "How long should travelmate wait for a successful wlan interface reload"
 msgstr ""
@@ -123,6 +128,8 @@ msgid ""
 "Scan &amp; Add new wireless stations via standard <a href=\"%s\">Wireless "
 "Setup</a>"
 msgstr ""
+"通常の<a href=\"%s\">無線設定</a>にて、新規の無線ステーションのスキャン及び追"
+"加を行います。"
 
 msgid ""
 "Space separated list of interfaces that trigger travelmate processing. To "
@@ -197,6 +204,8 @@ msgstr "ログファイルの確認"
 msgid ""
 "add it to the wan zone of the firewall. This step has only to be done once."
 msgstr ""
+"ファイアウォールの wan ゾーンに追加します。このステップは、一度だけ実行される"
+"必要があります。"
 
 msgid "connected"
 msgstr "接続済み"
index c3741ba..d083922 100644 (file)
@@ -37,6 +37,7 @@ config qos
 config system
        option init led
        list affects luci_statistics
+       list affects dhcp
 
 config luci_splash
        option init luci_splash