comparison 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
comparison
equal deleted inserted replaced
556:d5ad2f43658a 557:48ee1adee0a2
121 var i18n = Lada.getApplication().bundle; 121 var i18n = Lada.getApplication().bundle;
122 for (key in errors) { 122 for (key in errors) {
123 if (key && key.contains('Ort')) { 123 if (key && key.contains('Ort')) {
124 errorOrt = true; 124 errorOrt = true;
125 content = errors[key]; 125 content = errors[key];
126 keyText = key[0].toUpperCase(); 126 keyText = i18n.getMsg(key);
127 for (i = 0; i < content.length; i++) { 127 for (i = 0; i < content.length; i++) {
128 errorOrtText += keyText + ': ' + 128 errorOrtText += keyText + ': ' +
129 i18n.getMsg(content[i].toString()) + '\n'; 129 i18n.getMsg(content[i].toString()) + '\n';
130 } 130 }
131 } 131 }
132 } 132 }
133 for (key in warnings) { 133 for (key in warnings) {
134 if (key && key.contains('Ort')) { 134 if (key && key.contains('Ort')) {
135 warningOrt = true; 135 warningOrt = true;
136 content = warnings[key]; 136 content = warnings[key];
137 keyText = key[0].toUpperCase(); 137 keyText = i18n.getMsg(key);
138 for (i = 0; i < content.length; i++) { 138 for (i = 0; i < content.length; i++) {
139 warningOrtText += keyText + ': ' + 139 warningOrtText += keyText + ': ' +
140 i18n.getMsg(content[i].toString()) + '\n'; 140 i18n.getMsg(content[i].toString()) + '\n';
141 } 141 }
142 } 142 }

http://lada.wald.intevation.org