diff --git a/app.module.ts b/app.module.ts index 4035f38..66e57f4 100644 --- a/app.module.ts +++ b/app.module.ts @@ -9,6 +9,7 @@ import { DataCaptureWidgetModule } from './widget/widget-datacapture.module'; // Translations import './locales/de.po'; // <- adding additional strings to the german translation. +import './locales/nl.po'; @NgModule({ imports: [ diff --git a/locales/de.po b/locales/de.po index a6b5625..27cb72f 100644 --- a/locales/de.po +++ b/locales/de.po @@ -7,4 +7,40 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n != 1);\n" msgid "Data capture widget" -msgstr "Data capture widget" +msgstr "Manuelle Messwert eingabe" + +msgid "Select datapoint to enter value:" +msgstr "Datenpunkt für Werteingabe auswählen:" + +msgid "Add audit information to measurements" +msgstr "Audit Log für eingaben führen" + +msgid "Select data points" +msgstr "Datenpunkte auswählen" + +msgid "Create Measurement" +msgstr "Messwert erstellen" + +msgid "Action" +msgstr "Aktion" + +msgid "Value" +msgstr "Wert" + +msgid "Date" +msgstr "Datum" + +msgid "Datapoint" +msgstr "Datenpunkt" + +msgid "Name Device" +msgstr "Gerätename" + +msgid "Enter values for datapoints" +msgstr "Messwerte für Datenpunkte eingeben" + +msgid "ID" +msgstr "ID" + +msgid "measurement value, e.g.10.25" +msgstr "Messwert, z.B. 10.25" \ No newline at end of file diff --git a/locales/nl.po b/locales/nl.po new file mode 100644 index 0000000..ec03bf4 --- /dev/null +++ b/locales/nl.po @@ -0,0 +1,48 @@ +# Translation by Chat GPT 3.5 +# +msgid "" +msgstr "" +"Project-Id-Version: c8y.plugin\n" +"Language: nl\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgid "Data capture widget" +msgstr "Gegevensinvoegwidget" + +msgid "Select datapoint to enter value:" +msgstr "Selecteer gegevenspunt om waarde in te voeren:" + +msgid "Add audit information to measurements" +msgstr "Auditinformatie toevoegen aan metingen" + +msgid "Select data points" +msgstr "Selecteer gegevenspunten" + +msgid "Create Measurement" +msgstr "Meting maken" + +msgid "Action" +msgstr "Actie" + +msgid "Value" +msgstr "Waarde" + +msgid "Date" +msgstr "Datum" + +msgid "Datapoint" +msgstr "Gegevenspunt" + +msgid "Name Device" +msgstr "Apparaatnaam" + +msgid "Enter values for datapoints" +msgstr "Voer waarden in voor gegevenspunten" + +msgid "ID" +msgstr "ID" + +msgid "measurement value, e.g.10.25" +msgstr "Meetwaarde, bijv.10.25" \ No newline at end of file diff --git a/widget/widget-datacapture-config.html b/widget/widget-datacapture-config.html index 74a1a33..4d1a2c8 100644 --- a/widget/widget-datacapture-config.html +++ b/widget/widget-datacapture-config.html @@ -1,9 +1,9 @@
ID | -Name Device | -Datapoint | -Date | -Value | -Action | +{{ "ID" | translate }} | +{{ "Name Device" | translate }} | +{{ "Datapoint" | translate }} | +{{ "Date" | translate }} | +{{ "Value" | translate }} | +{{ "Action" | translate }} | Enter values for datapoints type="button" (click)="onSubmit(i)" > - Create Measurement + {{ "Create Measurement" | translate }} | diff --git a/widget/widget-datacapture.module.ts b/widget/widget-datacapture.module.ts index 129bf00..9532fda 100644 --- a/widget/widget-datacapture.module.ts +++ b/widget/widget-datacapture.module.ts @@ -9,6 +9,7 @@ import { ContextWidgetConfig } from "@c8y/ngx-components/context-dashboard"; import { BsDatepickerConfig } from "ngx-bootstrap/datepicker"; import { BsDatepickerModule } from "ngx-bootstrap/datepicker"; import { TimepickerModule } from "ngx-bootstrap/timepicker"; +import { TranslateModule } from "@ngx-translate/core"; @NgModule({ declarations: [DataCaptureWidgetComponent, DataCaptureWidgetConfig], @@ -18,6 +19,7 @@ import { TimepickerModule } from "ngx-bootstrap/timepicker"; FormsModule, BsDatepickerModule.forRoot(), TimepickerModule.forRoot(), + TranslateModule ], exports: [], providers: [
---|