From c7ca6baf3e3ae93b89191f189ab388dc951824fa Mon Sep 17 00:00:00 2001 From: Brian Matherly Date: Sat, 27 May 2006 21:04:44 +0000 Subject: [PATCH] Add provisions for local mo files for Windows svn: r6797 --- gramps2/ChangeLog | 3 +++ gramps2/src/gramps.py | 2 ++ 2 files changed, 5 insertions(+) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index 90e6d0fd7..1bef5a618 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,3 +1,6 @@ +2006-05-27 Brian Matherly + * src/gramps.py: Add provisions for local mo files for Windows + 2006-05-26 Brian Matherly * src/plugins/IndivComplete.py: Add event notes. diff --git a/gramps2/src/gramps.py b/gramps2/src/gramps.py index 2b2f31c83..0ce7e387d 100644 --- a/gramps2/src/gramps.py +++ b/gramps2/src/gramps.py @@ -63,6 +63,8 @@ sys.path.append(os.path.abspath(os.path.basename(__file__))) #------------------------------------------------------------------------- if os.environ.has_key("GRAMPSI18N"): loc = os.environ["GRAMPSI18N"] +elif os.path.exists( os.path.join(const.root_dir,"lang") ): + loc = os.path.join(const.root_dir,"lang") else: loc = "/usr/share/locale"