Powerbuilder2009. 5. 13. 15:20

레지스트리에서 읽어와 각국의 운영체제를 구분 하였습니다.

도움이 되었으면 합니다.

 

String ls_excelpath

RegistryGet("HKEY_CURRENT_USER\Control Panel\International", "sLanguage", &
       RegString!, ls_excelpath)   

 

한글 원도우 일경우 KOR
중문 원도우 일경우 CHS

 

String ls_excelpath

RegistryGet("HKEY_CURRENT_USER\Control Panel\International", "locale", &
       RegString!, ls_excelpath)   

 

Locale 같은 경우 아래 표를 참조

16진수 부분만 오른쪽에서 4개만 사용 하면 됨
한글 원도우는 00000412
중문 원도우는 00000804

 

참조 표
0x0000 0000 Language Neutral
0x0400 1024 Process Default Language
0x0401 1025 Arabic (Saudi Arabia)
0x0801 2049 Arabic (Iraq)
0x0c01 3073 Arabic (Egypt)
0x1001 4097 Arabic (Libya)
0x1401 5121 Arabic (Algeria)
0x1801 6145 Arabic (Morocco)
0x1c01 7169 Arabic (Tunisia)
0x2001 8193 Arabic (Oman)
0x2401 9217 Arabic (Yemen)
0x2801 10241 Arabic (Syria)
0x2c01 11265 Arabic (Jordan)
0x3001 12289 Arabic (Lebanon)
0x3401 13313 Arabic (Kuwait)
0x3801 14337 Arabic (U.A.E.)
0x3c01 15361 Arabic (Bahrain)
0x4001 16385 Arabic (Qatar)
0x0402 1026 Bulgarian
0x0403 1027 Catalan
0x0404 1028 Chinese (Taiwan)
0x0804 2052 Chinese (PRC)
0x0c04 3076 Chinese (Hong Kong)
0x1004 4100 Chinese (Singapore)
0x0405 1029 Czech
0x0406 1030 Danish
0x0407 1031 German (Standard)
0x0807 2055 German (Swiss)
0x0c07 3079 German (Austrian)
0x1007 4103 German (Luxembourg)
0x1407 5127 German (Liechtenstein)
0x0408 1032 Greek
0x0409 1033 English (United States)
0x0809 2057 English (United Kingdom)
0x0c09 3081 English (Australian)
0x1009 4105 English (Canadian)
0x1409 5129 English (New Zealand)
0x1809 6153 English (Ireland)
0x1c09 7177 English (South Africa)
0x2009 8201 English (Jamaica)
0x2409 9225 English (Caribbean)
0x2809 10249 English (Belize)

0x2c09 11273 English (Trinidad)
0x040a 1034 Spanish (Traditional Sort)
0x080a 2058 Spanish (Mexican)
0x0c0a 3082 Spanish (Modern Sort)
0x100a 4106 Spanish (Guatemala)
0x140a 5130 Spanish (Costa Rica)
0x180a 6154 Spanish (Panama)
0x1c0a 7178 Spanish (Dominican Republic)
0x200a 8202 Spanish (Venezuela)
0x240a 9226 Spanish (Colombia)
0x280a 10250 Spanish (Peru)
0x2c0a 11274 Spanish (Argentina)
0x300a 12298 Spanish (Ecuador)
0x340a 13322 Spanish (Chile)
0x380a 14346 Spanish (Uruguay)
0x3c0a 15370 Spanish (Paraguay)
0x440a 17418 Spanish (El Salvador)
0x480a 18442 Spanish (Honduras)
0x4c0a 19466 Spanish (Nicaragua)
0x500a 20490 Spanish (Puerto Rico)
0x040b 1035 Finnish
0x040c 1036 French (Standard)
0x080c 2060 French (Belgian)
0x0c0c 3084 French (Canadian)
0x100c 4108 French (Swiss)
0x140c 5132 French (Luxembourg)
0x040d 1037 Hebrew
0x040e 1038 Hungarian
0x040f 1039 Icelandic
0x0410 1040 Italian (Standard)
0x0810 2064 Italian (Swiss)
0x0411 1041 Japanese

0x0412 1042 Korean
0x0812 2066 Korean (JoHab)
0x0413 1043 Dutch (Standard)
0x0813 2037 Dutch (Belgian)
0x0414 1044 Norwegian (Bokmal)
0x0814 2038 Norwegian (Nynorsk)
0x0415 1045 Polish
0x0416 1046 Portuguese (Brazilian)
0x0816 2039 Portuguese (Standard)
0x0418 1048 Romanian
0x0419 1049 Russian
0x041a 1050 Croatian
0x0c1a 3098 Serbian
0x041b 1051 Slovak
0x041c 1052 Albanian
0x041d 1053 Swedish
0x081d 2077 Swedish (Finland)
0x041e 1054 Thai
0x041f 1055 Turkish
0x0421 1057 Indonesian
0x0422 1058 Ukrainian
0x0423 1059 Belarusian
0x0424 1060 Slovenian
0x0425 1061 Estonian
0x0426 1062 Latvian
0x0427 1063 Lithuanian
0x081a 2074 Serbian
0x0429 1065 Farsi
0x042d 1069 Basque
0x0436 1078 Afrikaans
0x0438 1080 Faeroese


Posted by Julyus