Do not display missing locale dir if in english
svn: r15818
This commit is contained in:
parent
5ed53f5e9c
commit
1d5bcbf423
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user