diff app/view/window/ProbeEdit.js @ 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 d47ee7439f44
children ea2c35cd9c19
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';

http://lada.wald.intevation.org