summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-watchcat
diff options
context:
space:
mode:
Diffstat (limited to 'applications/luci-app-watchcat')
-rw-r--r--applications/luci-app-watchcat/luasrc/controller/watchcat.lua11
-rw-r--r--applications/luci-app-watchcat/po/cs/watchcat.po8
-rw-r--r--applications/luci-app-watchcat/po/mr/watchcat.po11
-rw-r--r--applications/luci-app-watchcat/root/usr/share/luci/menu.d/luci-app-watchcat.json14
4 files changed, 25 insertions, 19 deletions
diff --git a/applications/luci-app-watchcat/luasrc/controller/watchcat.lua b/applications/luci-app-watchcat/luasrc/controller/watchcat.lua
deleted file mode 100644
index 27d5b74b20..0000000000
--- a/applications/luci-app-watchcat/luasrc/controller/watchcat.lua
+++ /dev/null
@@ -1,11 +0,0 @@
--- Copyright 2012 Christian Gagneraud <chris@techworks.ie>
--- Licensed to the public under the Apache License 2.0.
-
-module("luci.controller.watchcat", package.seeall)
-
-function index()
- if not nixio.fs.access("/etc/config/system") then
- return
- end
- entry({"admin", "services", "watchcat"}, cbi("watchcat/watchcat"), _("Watchcat"), 90)
-end
diff --git a/applications/luci-app-watchcat/po/cs/watchcat.po b/applications/luci-app-watchcat/po/cs/watchcat.po
index f80e5c232e..8f4a2cc3f5 100644
--- a/applications/luci-app-watchcat/po/cs/watchcat.po
+++ b/applications/luci-app-watchcat/po/cs/watchcat.po
@@ -1,8 +1,8 @@
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
-"PO-Revision-Date: 2019-12-05 17:06+0000\n"
-"Last-Translator: Jiri Tersel <jiri.tersel@seznam.cz>\n"
+"PO-Revision-Date: 2020-02-02 09:02+0000\n"
+"Last-Translator: Pavel Borecki <pavel.borecki@gmail.com>\n"
"Language-Team: Czech <https://hosted.weblate.org/projects/openwrt/"
"luciapplicationswatchcat/cs/>\n"
"Language: cs\n"
@@ -10,7 +10,7 @@ msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n"
-"X-Generator: Weblate 3.10-dev\n"
+"X-Generator: Weblate 3.11-dev\n"
#: applications/luci-app-watchcat/luasrc/model/cbi/watchcat/watchcat.lua:21
msgid "Forced reboot delay"
@@ -44,7 +44,7 @@ msgstr ""
#: applications/luci-app-watchcat/luasrc/model/cbi/watchcat/watchcat.lua:15
msgid "Operating mode"
-msgstr "Pracovní režim"
+msgstr "Režim fungování"
#: applications/luci-app-watchcat/luasrc/model/cbi/watchcat/watchcat.lua:30
msgid "Period"
diff --git a/applications/luci-app-watchcat/po/mr/watchcat.po b/applications/luci-app-watchcat/po/mr/watchcat.po
index 688f60512e..8509f40b8b 100644
--- a/applications/luci-app-watchcat/po/mr/watchcat.po
+++ b/applications/luci-app-watchcat/po/mr/watchcat.po
@@ -1,21 +1,24 @@
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
-"Last-Translator: Automatically generated\n"
-"Language-Team: none\n"
+"PO-Revision-Date: 2020-02-01 06:56+0000\n"
+"Last-Translator: Prachi Joshi <josprachi@yahoo.com>\n"
+"Language-Team: Marathi <https://hosted.weblate.org/projects/openwrt/"
+"luciapplicationswatchcat/mr/>\n"
"Language: mr\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"
+"X-Generator: Weblate 3.11-dev\n"
#: applications/luci-app-watchcat/luasrc/model/cbi/watchcat/watchcat.lua:21
msgid "Forced reboot delay"
-msgstr ""
+msgstr "सक्तीने रीबूट विलंब"
#: applications/luci-app-watchcat/luasrc/model/cbi/watchcat/watchcat.lua:40
msgid "Host address to ping"
-msgstr ""
+msgstr "पिंग होस्ट पत्ता"
#: applications/luci-app-watchcat/luasrc/model/cbi/watchcat/watchcat.lua:47
msgid ""
diff --git a/applications/luci-app-watchcat/root/usr/share/luci/menu.d/luci-app-watchcat.json b/applications/luci-app-watchcat/root/usr/share/luci/menu.d/luci-app-watchcat.json
new file mode 100644
index 0000000000..d1eba7b438
--- /dev/null
+++ b/applications/luci-app-watchcat/root/usr/share/luci/menu.d/luci-app-watchcat.json
@@ -0,0 +1,14 @@
+{
+ "admin/services/watchcat": {
+ "title": "Watchcat",
+ "order": 90,
+ "action": {
+ "type": "cbi",
+ "path": "watchcat/watchcat",
+ "post": { "cbi.submit": true }
+ },
+ "depends": {
+ "uci": { "system": true }
+ }
+ }
+}