Small fix for systems (i.e. my 12.04 LTS) that don't set LANGUAGE for whatever reason. This breaks the manual lookup
This commit is contained in:
parent
10529c899a
commit
5fe91b66b1
|
@ -87,6 +87,7 @@ def has_ancestor(widget, wtype):
|
||||||
def manual_lookup():
|
def manual_lookup():
|
||||||
'''Choose the manual to open based on LANGUAGE'''
|
'''Choose the manual to open based on LANGUAGE'''
|
||||||
prefix = os.path.join(os.sep, 'usr', 'share', 'doc', 'terminator')
|
prefix = os.path.join(os.sep, 'usr', 'share', 'doc', 'terminator')
|
||||||
|
if 'LANGUAGE' in os.environ:
|
||||||
languages = os.environ['LANGUAGE'].split(':')
|
languages = os.environ['LANGUAGE'].split(':')
|
||||||
for language in languages:
|
for language in languages:
|
||||||
full_path = os.path.join(prefix, 'html_%s' % (language), 'index.html')
|
full_path = os.path.join(prefix, 'html_%s' % (language), 'index.html')
|
||||||
|
|
Loading…
Reference in New Issue