14#if !defined(OS_MINGW) && !defined(OS_WIN)
25#elif defined(OS_MINGW)
29#define outline Core_outline
30#define extend Core_extends
32#include <CoreFoundation/CFLocale.h>
33#include <CoreFoundation/CFString.h>
45#if defined(OS_MINGW) || defined(OS_WIN)
156 if (
N (s) > 5) s= s (0, 5);
157 if (s ==
"en_GB")
return "british";
158 if (s ==
"zh_TW")
return "taiwanese";
159 if (
N (s) > 2) s= s (0, 2);
160 if (s ==
"bg")
return "bulgarian";
161 if (s ==
"zh")
return "chinese";
162 if (s ==
"hr")
return "croatian";
163 if (s ==
"cs")
return "czech";
164 if (s ==
"da")
return "danish";
165 if (s ==
"nl")
return "dutch";
166 if (s ==
"en")
return "english";
167 if (s ==
"eo")
return "esperanto";
168 if (s ==
"fi")
return "finnish";
169 if (s ==
"fr")
return "french";
170 if (s ==
"de")
return "german";
171 if (s ==
"gr")
return "greek";
172 if (s ==
"hu")
return "hungarian";
173 if (s ==
"it")
return "italian";
174 if (s ==
"ja")
return "japanese";
175 if (s ==
"ko")
return "korean";
176 if (s ==
"pl")
return "polish";
177 if (s ==
"pt")
return "portuguese";
178 if (s ==
"ro")
return "romanian";
179 if (s ==
"ru")
return "russian";
180 if (s ==
"sk")
return "slovak";
181 if (s ==
"sl")
return "slovene";
182 if (s ==
"es")
return "spanish";
183 if (s ==
"sv")
return "swedish";
184 if (s ==
"uk")
return "ukrainian";
190 if (s ==
"american")
return "en_US";
191 if (s ==
"british")
return "en_GB";
192 if (s ==
"bulgarian")
return "bg_BG";
193 if (s ==
"chinese")
return "zh_CN";
194 if (s ==
"croatian")
return "hr_HR";
195 if (s ==
"czech")
return "cs_CZ";
196 if (s ==
"danish")
return "da_DK";
197 if (s ==
"dutch")
return "nl_NL";
198 if (s ==
"english")
return "en_US";
199 if (s ==
"esperanto")
return "eo_EO";
200 if (s ==
"finnish")
return "fi_FI";
201 if (s ==
"french")
return "fr_FR";
202 if (s ==
"german")
return "de_DE";
203 if (s ==
"greek")
return "gr_GR";
204 if (s ==
"hungarian")
return "hu_HU";
205 if (s ==
"italian")
return "it_IT";
206 if (s ==
"japanese")
return "ja_JP";
207 if (s ==
"korean")
return "ko_KR";
208 if (s ==
"polish")
return "pl_PL";
209 if (s ==
"portuguese")
return "pt_PT";
210 if (s ==
"romanian")
return "ro_RO";
211 if (s ==
"russian")
return "ru_RU";
212 if (s ==
"slovak")
return "sk_SK";
213 if (s ==
"slovene")
return "sl_SI";
214 if (s ==
"spanish")
return "es_ES";
215 if (s ==
"swedish")
return "sv_SV";
216 if (s ==
"taiwanese")
return "zh_TW";
217 if (s ==
"ukrainian")
return "uk_UA";
223 if (s ==
"bulgarian")
return "ISO-8859-5";
224 if (s ==
"chinese")
return "";
225 if (s ==
"croatian")
return "ISO-8859-2";
226 if (s ==
"czech")
return "ISO-8859-2";
227 if (s ==
"greek")
return "ISO-8859-7";
228 if (s ==
"hungarian")
return "ISO-8859-2";
229 if (s ==
"japanese")
return "";
230 if (s ==
"korean")
return "";
231 if (s ==
"polish")
return "ISO-8859-2";
232 if (s ==
"romanian")
return "ISO-8859-2";
233 if (s ==
"russian")
return "ISO-8859-5";
234 if (s ==
"slovak")
return "ISO-8859-2";
235 if (s ==
"slovene")
return "ISO-8859-2";
236 if (s ==
"taiwanese")
return "";
237 if (s ==
"ukrainian")
return "ISO-8859-5";
243#if defined(OS_MINGW) || defined(OS_WIN)
int N(array< T > a)
Get the length of the array.
The list class represents a linked list.
string locale_to_language(string s)
string language_to_local_ISO_charset(string s)
string language_to_locale(string s)
string get_locale_charset()
string get_locale_language()
string get_env(string var)