Do not display missing locale dir if in english

svn: r15818
This commit is contained in:
Doug Blank 2010-08-26 13:15:09 +00:00
parent 5ed53f5e9c
commit 1d5bcbf423

View File

@ -54,8 +54,12 @@ elif os.path.exists( os.path.join(const.ROOT_DIR, "lang") ):
elif os.path.exists(os.path.join(const.PREFIXDIR, "share/locale")):
LOCALEDIR = os.path.join(const.PREFIXDIR, "share/locale")
else:
print 'Locale dir does not exist at' + os.path.join(const.PREFIXDIR, "share/locale")
print 'Running ./configure --prefix=YourPrefixDir might fix the problem'
lang = os.environ.get('LANG', 'en')
if lang and lang[:2] == 'en':
pass # No need to display warning, we're in English
else:
print 'Locale dir does not exist at ' + os.path.join(const.PREFIXDIR, "share/locale")
print 'Running ./configure --prefix=YourPrefixDir might fix the problem'
LOCALEDIR = None
LOCALEDOMAIN = 'gramps'