changeset 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 50b04a7bee16
files app/view/window/AuditTrail.js resources/i18n/Lada_de-DE.properties
diffstat 2 files changed, 12 insertions(+), 0 deletions(-) [+]
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>';
         }
--- a/resources/i18n/Lada_de-DE.properties	Wed Mar 22 16:12:11 2017 +0100
+++ b/resources/i18n/Lada_de-DE.properties	Wed Mar 22 16:20:46 2017 +0100
@@ -413,5 +413,8 @@
 datenbasis_id: Datenbasis
 probeentnahme_beginn:Probenentnahme(Beginn)
 probeentnahme_ende:Probenentnahme(Ende)
+noValue:(kein Wert)
+true:ja
+false:nein
 I:angelegt
 U:geƤndert in

http://lada.wald.intevation.org