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")):
|
elif os.path.exists(os.path.join(const.PREFIXDIR, "share/locale")):
|
||||||
LOCALEDIR = os.path.join(const.PREFIXDIR, "share/locale")
|
LOCALEDIR = os.path.join(const.PREFIXDIR, "share/locale")
|
||||||
else:
|
else:
|
||||||
print 'Locale dir does not exist at' + os.path.join(const.PREFIXDIR, "share/locale")
|
lang = os.environ.get('LANG', 'en')
|
||||||
print 'Running ./configure --prefix=YourPrefixDir might fix the problem'
|
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
|
LOCALEDIR = None
|
||||||
|
|
||||||
LOCALEDOMAIN = 'gramps'
|
LOCALEDOMAIN = 'gramps'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user