summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-ntpc
diff options
context:
space:
mode:
Diffstat (limited to 'applications/luci-app-ntpc')
-rw-r--r--applications/luci-app-ntpc/luasrc/controller/ntpc.lua19
-rw-r--r--applications/luci-app-ntpc/po/mr/ntpc.po26
-rw-r--r--applications/luci-app-ntpc/root/usr/share/luci/menu.d/luci-app-ntpc.json14
3 files changed, 27 insertions, 32 deletions
diff --git a/applications/luci-app-ntpc/luasrc/controller/ntpc.lua b/applications/luci-app-ntpc/luasrc/controller/ntpc.lua
deleted file mode 100644
index c21d4eaa7c..0000000000
--- a/applications/luci-app-ntpc/luasrc/controller/ntpc.lua
+++ /dev/null
@@ -1,19 +0,0 @@
--- Copyright 2008 Steven Barth <steven@midlink.org>
--- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org>
--- Licensed to the public under the Apache License 2.0.
-
-module("luci.controller.ntpc", package.seeall)
-
-function index()
- if not nixio.fs.access("/etc/config/ntpclient") then
- return
- end
-
- local page
-
- page = entry({"admin", "system", "ntpc"}, cbi("ntpc/ntpc"), _("Time Synchronisation"), 50)
- page.dependent = true
-
- page = entry({"mini", "system", "ntpc"}, cbi("ntpc/ntpcmini", {autoapply=true}), _("Time Synchronisation"), 50)
- page.dependent = true
-end
diff --git a/applications/luci-app-ntpc/po/mr/ntpc.po b/applications/luci-app-ntpc/po/mr/ntpc.po
index 2721220762..300378fe4a 100644
--- a/applications/luci-app-ntpc/po/mr/ntpc.po
+++ b/applications/luci-app-ntpc/po/mr/ntpc.po
@@ -3,7 +3,7 @@ msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2010-04-14 13:24+0200\n"
-"PO-Revision-Date: 2019-12-28 03:17+0000\n"
+"PO-Revision-Date: 2020-02-07 09:18+0000\n"
"Last-Translator: Prachi Joshi <josprachi@yahoo.com>\n"
"Language-Team: Marathi <https://hosted.weblate.org/projects/openwrt/"
"luciapplicationsntpc/mr/>\n"
@@ -12,25 +12,25 @@ msgstr ""
"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.10\n"
+"X-Generator: Weblate 3.11-dev\n"
#: applications/luci-app-ntpc/luasrc/model/cbi/ntpc/ntpc.lua:21
msgid "Clock Adjustment"
-msgstr ""
+msgstr "घड्याळ समायोजन"
#: applications/luci-app-ntpc/luasrc/model/cbi/ntpc/ntpc.lua:17
msgid "Count of time measurements"
-msgstr ""
+msgstr "वेळ मोजमापांची संख्या"
#: applications/luci-app-ntpc/luasrc/model/cbi/ntpc/ntpc.lua:11
#: applications/luci-app-ntpc/luasrc/model/cbi/ntpc/ntpcmini.lua:12
msgid "Current system time"
-msgstr ""
+msgstr "सद्य प्रणाली वेळ"
#: applications/luci-app-ntpc/luasrc/model/cbi/ntpc/ntpc.lua:7
#: applications/luci-app-ntpc/luasrc/model/cbi/ntpc/ntpcmini.lua:8
msgid "General"
-msgstr ""
+msgstr "सामान्य"
#: applications/luci-app-ntpc/luasrc/model/cbi/ntpc/ntpc.lua:34
#: applications/luci-app-ntpc/luasrc/model/cbi/ntpc/ntpcmini.lua:23
@@ -39,7 +39,7 @@ msgstr "होस्टनाव"
#: applications/luci-app-ntpc/luasrc/model/cbi/ntpc/ntpc.lua:25
msgid "Offset frequency"
-msgstr ""
+msgstr "ऑफसेट वारंवारता"
#: applications/luci-app-ntpc/luasrc/model/cbi/ntpc/ntpc.lua:35
#: applications/luci-app-ntpc/luasrc/model/cbi/ntpc/ntpcmini.lua:24
@@ -49,28 +49,28 @@ msgstr "पोर्ट"
#: applications/luci-app-ntpc/luasrc/model/cbi/ntpc/ntpc.lua:5
#: applications/luci-app-ntpc/luasrc/model/cbi/ntpc/ntpcmini.lua:6
msgid "Synchronizes the system time"
-msgstr ""
+msgstr "सिस्टम वेळ समक्रमित करते"
#: applications/luci-app-ntpc/luasrc/model/cbi/ntpc/ntpcmini.lua:18
msgid "Time Server"
-msgstr ""
+msgstr "वेळ सर्व्हर"
#: applications/luci-app-ntpc/luasrc/model/cbi/ntpc/ntpc.lua:29
msgid "Time Servers"
-msgstr ""
+msgstr "वेळ सर्व्हर"
#: applications/luci-app-ntpc/luasrc/controller/ntpc.lua:14
#: applications/luci-app-ntpc/luasrc/controller/ntpc.lua:17
#: applications/luci-app-ntpc/luasrc/model/cbi/ntpc/ntpc.lua:5
#: applications/luci-app-ntpc/luasrc/model/cbi/ntpc/ntpcmini.lua:6
msgid "Time Synchronisation"
-msgstr ""
+msgstr "वेळ समक्रमण"
#: applications/luci-app-ntpc/luasrc/model/cbi/ntpc/ntpc.lua:13
#: applications/luci-app-ntpc/luasrc/model/cbi/ntpc/ntpcmini.lua:14
msgid "Update interval (in seconds)"
-msgstr ""
+msgstr "मध्यांतर अद्यतनित करा (सेकंदात)"
#: applications/luci-app-ntpc/luasrc/model/cbi/ntpc/ntpc.lua:17
msgid "empty = infinite"
-msgstr ""
+msgstr "रिक्त = असीम"
diff --git a/applications/luci-app-ntpc/root/usr/share/luci/menu.d/luci-app-ntpc.json b/applications/luci-app-ntpc/root/usr/share/luci/menu.d/luci-app-ntpc.json
new file mode 100644
index 0000000000..360d721598
--- /dev/null
+++ b/applications/luci-app-ntpc/root/usr/share/luci/menu.d/luci-app-ntpc.json
@@ -0,0 +1,14 @@
+{
+ "admin/system/ntpc": {
+ "title": "Time Synchronisation",
+ "order": 50,
+ "action": {
+ "type": "cbi",
+ "path": "ntpc/ntpc",
+ "post": { "cbi.submit": true }
+ },
+ "depends": {
+ "uci": { "ntpclient": true }
+ }
+ }
+}