diff 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
line wrap: on
line diff
--- a/app/view/window/AuditTrail.js	Wed Mar 22 16:12:11 2017 +0100
+++ b/app/view/window/AuditTrail.js	Wed Mar 22 16:20:46 2017 +0100
@@ -159,6 +159,15 @@
             else {
                 value = audit.changedFields[key];
             }
+            if (value === null) {
+                value = i18n.getMsg('noValue');
+            }
+            else if (value === true) {
+                value = i18n.getMsg('true');
+            }
+            else if (value === false) {
+                value = i18n.getMsg('false');
+            }
             html += '' + i18n.getMsg(key) + ': ' +
                 value + '<br>';
         }

http://lada.wald.intevation.org