comparison app/view/window/AuditTrail.js @ 1408:86c6b6c01246

Add translations for booleans and null.
author Tom Gottfried <tom@intevation.de>
date Wed, 22 Mar 2017 16:20:46 +0100
parents 2195fd3946e4
children
comparison
equal deleted inserted replaced
1407:2195fd3946e4 1408:86c6b6c01246
157 'd.m.Y H:i'); 157 'd.m.Y H:i');
158 } 158 }
159 else { 159 else {
160 value = audit.changedFields[key]; 160 value = audit.changedFields[key];
161 } 161 }
162 if (value === null) {
163 value = i18n.getMsg('noValue');
164 }
165 else if (value === true) {
166 value = i18n.getMsg('true');
167 }
168 else if (value === false) {
169 value = i18n.getMsg('false');
170 }
162 html += '' + i18n.getMsg(key) + ': ' + 171 html += '' + i18n.getMsg(key) + ': ' +
163 value + '<br>'; 172 value + '<br>';
164 } 173 }
165 html += '</div>'; 174 html += '</div>';
166 html += '</p>'; 175 html += '</p>';

http://lada.wald.intevation.org