From 5bc89657263448e290786b1e46a75cd1b1fb9dc7 Mon Sep 17 00:00:00 2001 From: Sunnyka <71286632+Sunnyka98@users.noreply.github.com> Date: Fri, 1 Dec 2023 14:53:50 +0100 Subject: [PATCH] Add English Translation --- {ZaehlerUeberlauf => MeterOverflow}/README.md | 0 {ZaehlerUeberlauf => MeterOverflow}/form.json | 0 MeterOverflow/locale.json | 12 ++++++++++++ {ZaehlerUeberlauf => MeterOverflow}/module.json | 6 +++--- {ZaehlerUeberlauf => MeterOverflow}/module.php | 2 +- ZaehlerUeberlauf/locale.json | 9 --------- library.json | 2 +- tests/ZaehlerUeberlaufValidationTest.php | 6 +++--- tests/phpunit.xml | 2 +- 9 files changed, 21 insertions(+), 18 deletions(-) rename {ZaehlerUeberlauf => MeterOverflow}/README.md (100%) rename {ZaehlerUeberlauf => MeterOverflow}/form.json (100%) create mode 100644 MeterOverflow/locale.json rename {ZaehlerUeberlauf => MeterOverflow}/module.json (59%) rename {ZaehlerUeberlauf => MeterOverflow}/module.php (97%) delete mode 100644 ZaehlerUeberlauf/locale.json diff --git a/ZaehlerUeberlauf/README.md b/MeterOverflow/README.md similarity index 100% rename from ZaehlerUeberlauf/README.md rename to MeterOverflow/README.md diff --git a/ZaehlerUeberlauf/form.json b/MeterOverflow/form.json similarity index 100% rename from ZaehlerUeberlauf/form.json rename to MeterOverflow/form.json diff --git a/MeterOverflow/locale.json b/MeterOverflow/locale.json new file mode 100644 index 0000000..d310b10 --- /dev/null +++ b/MeterOverflow/locale.json @@ -0,0 +1,12 @@ +{ + "translations": { + "de": { + "Source": "Quelle", + "Maximum value": "Maximalwert", + "Counter": "Zähler", + "Meter Overflow": "Zählerüberlauf", + "https://www.symcon.de/en/service/documentation/module-reference/meter-overflow/": "https://www.symcon.de/de/service/dokumentation/modulreferenz/zaehlerueberlauf/", + "MeterOverflow": "ZaehlerUeberlauf" + } + } +} \ No newline at end of file diff --git a/ZaehlerUeberlauf/module.json b/MeterOverflow/module.json similarity index 59% rename from ZaehlerUeberlauf/module.json rename to MeterOverflow/module.json index bf60da0..77158f8 100644 --- a/ZaehlerUeberlauf/module.json +++ b/MeterOverflow/module.json @@ -1,14 +1,14 @@ { "id": "{57A84449-AA15-4423-80B0-3F98C54EAC03}", - "name": "ZaehlerUeberlauf", + "name": "MeterOverflow", "type": 3, "vendor": "", "aliases": [ - "Zählerüberlauf" + "Meter Overflow" ], "parentRequirements": [], "childRequirements": [], "implemented": [], "prefix": "ZUL", - "url": "https://github.com/symcon/ZaehlerUeberlauf/tree/master/ZaehlerUeberlauf" + "url": "https://www.symcon.de/en/service/documentation/module-reference/meter-overflow/" } \ No newline at end of file diff --git a/ZaehlerUeberlauf/module.php b/MeterOverflow/module.php similarity index 97% rename from ZaehlerUeberlauf/module.php rename to MeterOverflow/module.php index 155a50a..8542810 100644 --- a/ZaehlerUeberlauf/module.php +++ b/MeterOverflow/module.php @@ -2,7 +2,7 @@ declare(strict_types=1); -class ZaehlerUeberlauf extends IPSModule +class MeterOverflow extends IPSModule { public function Create() { diff --git a/ZaehlerUeberlauf/locale.json b/ZaehlerUeberlauf/locale.json deleted file mode 100644 index fb273f3..0000000 --- a/ZaehlerUeberlauf/locale.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "translations": { - "de": { - "Source": "Quelle", - "Maximum value": "Maximalwert", - "Counter": "Zähler" - } - } -} \ No newline at end of file diff --git a/library.json b/library.json index dad90f7..8983b2e 100644 --- a/library.json +++ b/library.json @@ -1,7 +1,7 @@ { "id": "{173B5799-B5BF-4AB1-BD2D-19C1DD309B9C}", "author": "Symcon GmbH", - "name": "ZaehlerUeberlauf", + "name": "MeterOverflow", "url": "https://www.symcon.de/", "compatibility": { "version": "4.2" diff --git a/tests/ZaehlerUeberlaufValidationTest.php b/tests/ZaehlerUeberlaufValidationTest.php index 414d632..3b39ff7 100644 --- a/tests/ZaehlerUeberlaufValidationTest.php +++ b/tests/ZaehlerUeberlaufValidationTest.php @@ -8,8 +8,8 @@ public function testValidateZaehlerUeberlauf(): void { $this->validateLibrary(__DIR__ . '/..'); } - public function testValidateZaehlerUebrlaufModule(): void + public function testValidateMeterOverflowModule(): void { - $this->validateModule(__DIR__ . '/../ZaehlerUeberlauf'); + $this->validateModule(__DIR__ . '/../MeterOverflow'); } -} \ No newline at end of file +} diff --git a/tests/phpunit.xml b/tests/phpunit.xml index e31ab66..a24cb31 100644 --- a/tests/phpunit.xml +++ b/tests/phpunit.xml @@ -6,7 +6,7 @@ - ../ZaeherUeberlauf + ../MeterOverflow