Module: check_mk
Branch: master
Commit: d837579c9024bd9ead0d6993b700a7d19d9dbebd
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=d837579c9024bd…
Author: Bastian Kuhn <bk(a)mathias-kettner.de>
Date: Fri Nov 16 18:04:08 2012 +0100
Fix localize #2
---
modules/localize.py | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/modules/localize.py b/modules/localize.py
index 43d6014..c79b185 100755
--- a/modules/localize.py
+++ b/modules/localize.py
@@ -49,7 +49,12 @@ if local_locale_dir:
else:
locale_base = locale_dir
-pot_file = locale_base + '/multisite.pot'
+
+if local_locale_dir and 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)