소스 검색

Support Korean (ko) language settings from g.gui for Windows (#519)

Huidae Cho 5 년 전
부모
커밋
a885c59a1b
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      lib/init/grass.py

+ 1 - 1
lib/init/grass.py

@@ -1487,7 +1487,7 @@ def set_language(grass_config_dir):
     os.environ['LANGUAGE'] = language
     os.environ['LANG'] = language
 
-    if language == 'ko_KR' and encoding == 'cp949':
+    if language == 'ko' or (language == 'ko_KR' and encoding == 'cp949'):
         # The default encoding for the Korean language in Windows is cp949,
         # Microsoft's proprietary extension to euc-kr, but gettext prints no
         # translated messages at all in the Command Prompt window if LC_CTYPE