Module: check_mk
Branch: master
Commit: 44a760e588200fab6b0a47537fd24e17424ebf70
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=44a760e588200f…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Jan 31 09:07:08 2012 +0100
Localization: Fixed detection of gettext template file when using the
local/ hierarchy in OMD
---
ChangeLog | 2 ++
modules/localize.py | 5 ++++-
2 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 9f88f2d..b7ec9c5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -63,6 +63,8 @@
it exists after login when it is first needed
* Dashboard: link problem views to *unhandled* views (this was
inconsistent)
+ * Localization: Fixed detection of gettext template file when using the
+ local/ hierarchy in OMD
Mobile:
* Improved sorting of views in main page
diff --git a/modules/localize.py b/modules/localize.py
index 43d6014..f5d4d9c 100755
--- a/modules/localize.py
+++ b/modules/localize.py
@@ -49,7 +49,10 @@ if local_locale_dir:
else:
locale_base = locale_dir
-pot_file = locale_base + '/multisite.pot'
+if os.path.exists(local_locale_dir + '/multisite.pot'):
+ pot_file = local_locale_dir + '/multisite.pot'
+else:
+ pot_file = locale_base + '/multisite.pot'
try:
os.makedirs(locale_base)