equal
deleted
inserted
replaced
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 |