Add provisions for local mo files for Windows

svn: r6797
This commit is contained in:
Brian Matherly
2006-05-27 21:04:44 +00:00
parent ba3fc60e51
commit 58e213e22b
2 changed files with 5 additions and 0 deletions

View File

@@ -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"