Module: check_mk
Branch: master
Commit: 98a3608cf1271601e492e78a0d79e5ce1a097777
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=98a3608cf12716…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Aug 29 10:21:00 2018 +0200
6510 FIX Global Settings: Custom localizations recognizes new languages now immediately
Change-Id: I9d9bc37a56313cf5c5a9b7c55a7250f820b86218
---
.werks/6510 | 11 +++++++++++
cmk/gui/plugins/wato/check_mk_configuration.py | 2 +-
2 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/.werks/6510 b/.werks/6510
new file mode 100644
index 0000000..45dcd0d
--- /dev/null
+++ b/.werks/6510
@@ -0,0 +1,11 @@
+Title: Global Settings: Custom localizations recognizes new languages now immediately
+Level: 1
+Component: wato
+Class: fix
+Compatible: compat
+Edition: cre
+State: unknown
+Version: 1.6.0i1
+Date: 1535530852
+
+
diff --git a/cmk/gui/plugins/wato/check_mk_configuration.py
b/cmk/gui/plugins/wato/check_mk_configuration.py
index 49a988f..6ae87ae 100644
--- a/cmk/gui/plugins/wato/check_mk_configuration.py
+++ b/cmk/gui/plugins/wato/check_mk_configuration.py
@@ -682,7 +682,7 @@ register_configvar(group,
TextUnicode(title = _("Original Text"), size = 40),
Dictionary(
title = _("Translations"),
- elements = [
+ elements = lambda: [
( l or "en", TextUnicode(title = a, size = 32) )
for (l,a) in cmk.gui.i18n.get_languages()
],