changeset 557:48ee1adee0a2

Added i18n string for 'orte' errors and warnings.
author Raimund Renkert <raimund.renkert@intevation.de>
date Fri, 06 Mar 2015 17:03:29 +0100
parents d5ad2f43658a
children 9d4e4f07e751
files app/view/window/ProbeEdit.js resources/i18n/Lada.properties resources/i18n/Lada_de-DE.properties
diffstat 3 files changed, 12 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/app/view/window/ProbeEdit.js	Fri Mar 06 17:02:48 2015 +0100
+++ b/app/view/window/ProbeEdit.js	Fri Mar 06 17:03:29 2015 +0100
@@ -123,7 +123,7 @@
             if (key && key.contains('Ort')) {
                 errorOrt = true;
                 content = errors[key];
-                keyText = key[0].toUpperCase();
+                keyText = i18n.getMsg(key);
                 for (i = 0; i < content.length; i++) {
                     errorOrtText += keyText + ': ' +
                         i18n.getMsg(content[i].toString()) + '\n';
@@ -134,7 +134,7 @@
             if (key && key.contains('Ort')) {
                 warningOrt = true;
                 content = warnings[key];
-                keyText = key[0].toUpperCase();
+                keyText = i18n.getMsg(key);
                 for (i = 0; i < content.length; i++) {
                     warningOrtText += keyText + ': ' +
                         i18n.getMsg(content[i].toString()) + '\n';
--- a/resources/i18n/Lada.properties	Fri Mar 06 17:02:48 2015 +0100
+++ b/resources/i18n/Lada.properties	Fri Mar 06 17:03:29 2015 +0100
@@ -24,3 +24,8 @@
 672: Doppelter Eintrag
 673: Fehlender Wert
 674: Fehler in Datum
+
+##
+# Field names
+##
+entnahmeOrt: Entnahmeort
--- a/resources/i18n/Lada_de-DE.properties	Fri Mar 06 17:02:48 2015 +0100
+++ b/resources/i18n/Lada_de-DE.properties	Fri Mar 06 17:03:29 2015 +0100
@@ -25,3 +25,8 @@
 672: Doppelter Eintrag
 673: Fehlender Wert
 674: Fehler in Datum
+
+##
+# Field names
+##
+entnahmeOrt: Entnahmeort

http://lada.wald.intevation.org