[checkmk-commits] Check_MK Git: check_mk: Fix localize #2

git version control git at mathias-kettner.de
Sun Nov 18 20:11:54 CET 2012


Module: check_mk
Branch: master
Commit: d837579c9024bd9ead0d6993b700a7d19d9dbebd
URL:    http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=d837579c9024bd9ead0d6993b700a7d19d9dbebd

Author: Bastian Kuhn <bk at 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)



More information about the checkmk-commits mailing list