From d3494a94293d0366403c8d0107a8a363adf8aa35 Mon Sep 17 00:00:00 2001 From: Raphael Ackermann Date: Sun, 4 Apr 2010 09:24:15 +0000 Subject: [PATCH] added checks so that missing LOCALEDIR won't prevent gramps from starting svn: r15020 --- src/TransUtils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/TransUtils.py b/src/TransUtils.py index e817b6a97..dfa81f0a2 100644 --- a/src/TransUtils.py +++ b/src/TransUtils.py @@ -143,7 +143,7 @@ def setup_windows_gettext(): # 1. See if there is a intl.dll in Windows/system os_path = os.environ['PATH'] intl_path = 'c:\\WINDOWS\\system\\intl.dll' - if os.path.isfile(intl_path): + if os.path.isfile(intl_path) and not LOCALEDIR is None: libintl = init_windows_gettext(intl_path) # Now check for translation. translated = test_trans(str2translate,libintl) @@ -153,7 +153,7 @@ def setup_windows_gettext(): #2. See if there is a libintl-8.dll in the current path intl_path = find_intl('\\libintl-8.dll') - if intl_path: + if intl_path and not LOCALEDIR is None: libintl = init_windows_gettext(intl_path) # Now check for translation. translated = test_trans(str2translate,libintl) @@ -163,7 +163,7 @@ def setup_windows_gettext(): #3. See if there is another intl.dll in current path intl_path = find_intl('\\intl.dll') - if intl_path: + if intl_path and not LOCALEDIR is None: libintl = init_windows_gettext(intl_path) # Now check for translation. translated = test_trans(str2translate,libintl)