[Lada-commits] [PATCH 2 of 2] Add translations for booleans and null
Wald Commits
scm-commit at wald.intevation.org
Wed Mar 22 16:21:14 CET 2017
# HG changeset patch
# User Tom Gottfried <tom at intevation.de>
# Date 1490196046 -3600
# Node ID 86c6b6c01246fde858d8dad2d4ff93c281c6fba2
# Parent 2195fd3946e4ef2a168955aeea66c0ba19d7489d
Add translations for booleans and null.
diff -r 2195fd3946e4 -r 86c6b6c01246 app/view/window/AuditTrail.js
--- 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>';
}
diff -r 2195fd3946e4 -r 86c6b6c01246 resources/i18n/Lada_de-DE.properties
--- 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
More information about the Lada-commits
mailing list