mercurial/i18n.py
changeset 30639 d524c88511a7
parent 30301 8321b083a83d
child 30669 10b17ed9b591
equal deleted inserted replaced
30638:1c5cbf28f007 30639:d524c88511a7
    27     unicode
    27     unicode
    28 except NameError:
    28 except NameError:
    29     unicode = str
    29     unicode = str
    30 
    30 
    31 _languages = None
    31 _languages = None
    32 if (os.name == 'nt'
    32 if (pycompat.osname == 'nt'
    33     and 'LANGUAGE' not in encoding.environ
    33     and 'LANGUAGE' not in encoding.environ
    34     and 'LC_ALL' not in encoding.environ
    34     and 'LC_ALL' not in encoding.environ
    35     and 'LC_MESSAGES' not in encoding.environ
    35     and 'LC_MESSAGES' not in encoding.environ
    36     and 'LANG' not in encoding.environ):
    36     and 'LANG' not in encoding.environ):
    37     # Try to detect UI language by "User Interface Language Management" API
    37     # Try to detect UI language by "User Interface Language Management" API