Mercurial > lada > lada-client
comparison app/view/window/ImportResponse.js @ 1427:c22581d48040
In case a value is shown, separate it with a space.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Thu, 06 Apr 2017 16:17:20 +0200 |
parents | 4de04242f7ce |
children |
comparison
equal
deleted
inserted
replaced
1426:4de04242f7ce | 1427:c22581d48040 |
---|---|
165 for (var i = msgs.length - 1; i >= 0; i--) { | 165 for (var i = msgs.length - 1; i >= 0; i--) { |
166 if (msgs[i].key === 'validation') { | 166 if (msgs[i].key === 'validation') { |
167 validation.push('<ol>'); | 167 validation.push('<ol>'); |
168 var parts = msgs[i].value.split('#'); | 168 var parts = msgs[i].value.split('#'); |
169 var str = i18n.getMsg(parts[0]) + | 169 var str = i18n.getMsg(parts[0]) + |
170 (parts[1] === undefined ? '' : parts[1]); | 170 (parts[1] === undefined ? '' : ' ' + parts[1]); |
171 validation.push(str + ' (' | 171 validation.push(str + ' (' |
172 + i18n.getMsg(msgs[i].code.toString()) + ')'); | 172 + i18n.getMsg(msgs[i].code.toString()) + ')'); |
173 validation.push('</ol>'); | 173 validation.push('</ol>'); |
174 } | 174 } |
175 else { | 175 else { |
205 for (var i = msgs.length - 1; i >= 0; i--) { | 205 for (var i = msgs.length - 1; i >= 0; i--) { |
206 if (msgs[i].key === 'validation') { | 206 if (msgs[i].key === 'validation') { |
207 validation.push('<ol>'); | 207 validation.push('<ol>'); |
208 var parts = msgs[i].value.split('#'); | 208 var parts = msgs[i].value.split('#'); |
209 var str = i18n.getMsg(parts[0]) + | 209 var str = i18n.getMsg(parts[0]) + |
210 (parts[1] === undefined ? '' : parts[1]); | 210 (parts[1] === undefined ? '' : ' ' + parts[1]); |
211 validation.push(str + ' (' | 211 validation.push(str + ' (' |
212 + i18n.getMsg(msgs[i].code.toString()) + ')'); | 212 + i18n.getMsg(msgs[i].code.toString()) + ')'); |
213 validation.push('</ol>'); | 213 validation.push('</ol>'); |
214 } | 214 } |
215 else { | 215 else { |