Path: blob/master/src/java.base/unix/native/libjava/locale_str.h
41119 views
/*1* Copyright (c) 1996, 2017, Oracle and/or its affiliates. All rights reserved.2* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.3*4* This code is free software; you can redistribute it and/or modify it5* under the terms of the GNU General Public License version 2 only, as6* published by the Free Software Foundation. Oracle designates this7* particular file as subject to the "Classpath" exception as provided8* by Oracle in the LICENSE file that accompanied this code.9*10* This code is distributed in the hope that it will be useful, but WITHOUT11* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or12* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License13* version 2 for more details (a copy is included in the LICENSE file that14* accompanied this code).15*16* You should have received a copy of the GNU General Public License version17* 2 along with this work; if not, write to the Free Software Foundation,18* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.19*20* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA21* or visit www.oracle.com if you need additional information or have any22* questions.23*/2425/*26* Mappings from partial locale names to full locale names27*/28static char *locale_aliases[] = {29"ar", "ar_EG",30"be", "be_BY",31"bg", "bg_BG",32"br", "br_FR",33"ca", "ca_ES",34"cs", "cs_CZ",35"cz", "cs_CZ",36"da", "da_DK",37"de", "de_DE",38"el", "el_GR",39"en", "en_US",40"eo", "eo", /* no country for Esperanto */41"es", "es_ES",42"et", "et_EE",43"eu", "eu_ES",44"fi", "fi_FI",45"fr", "fr_FR",46"ga", "ga_IE",47"gl", "gl_ES",48"he", "iw_IL",49"hr", "hr_HR",50#ifdef __linux__51"hs", "en_US", // used on Linux, not clear what it stands for52#endif53"hu", "hu_HU",54"id", "in_ID",55"in", "in_ID",56"is", "is_IS",57"it", "it_IT",58"iw", "iw_IL",59"ja", "ja_JP",60"kl", "kl_GL",61"ko", "ko_KR",62"lt", "lt_LT",63"lv", "lv_LV",64"mk", "mk_MK",65"nl", "nl_NL",66"no", "no_NO",67"pl", "pl_PL",68"pt", "pt_PT",69"ro", "ro_RO",70"ru", "ru_RU",71"se", "se_NO",72"sk", "sk_SK",73"sl", "sl_SI",74"sq", "sq_AL",75"sr", "sr_CS",76"su", "fi_FI",77"sv", "sv_SE",78"th", "th_TH",79"tr", "tr_TR",80#ifdef __linux__81"ua", "en_US", // used on Linux, not clear what it stands for82#endif83"uk", "uk_UA",84"vi", "vi_VN",85"wa", "wa_BE",86"zh", "zh_CN",87#ifdef __linux__88"bokmal", "nb_NO",89"bokm\xE5l", "nb_NO",90"catalan", "ca_ES",91"croatian", "hr_HR",92"czech", "cs_CZ",93"danish", "da_DK",94"dansk", "da_DK",95"deutsch", "de_DE",96"dutch", "nl_NL",97"eesti", "et_EE",98"estonian", "et_EE",99"finnish", "fi_FI",100"fran\xE7\x61is", "fr_FR",101"french", "fr_FR",102"galego", "gl_ES",103"galician", "gl_ES",104"german", "de_DE",105"greek", "el_GR",106"hebrew", "iw_IL",107"hrvatski", "hr_HR",108"hungarian", "hu_HU",109"icelandic", "is_IS",110"italian", "it_IT",111"japanese", "ja_JP",112"korean", "ko_KR",113"lithuanian", "lt_LT",114"norwegian", "no_NO",115"nynorsk", "nn_NO",116"polish", "pl_PL",117"portuguese", "pt_PT",118"romanian", "ro_RO",119"russian", "ru_RU",120"slovak", "sk_SK",121"slovene", "sl_SI",122"slovenian", "sl_SI",123"spanish", "es_ES",124"swedish", "sv_SE",125"thai", "th_TH",126"turkish", "tr_TR",127#else128"big5", "zh_TW.Big5",129"chinese", "zh_CN",130"iso_8859_1", "en_US.ISO8859-1",131"iso_8859_15", "en_US.ISO8859-15",132"japanese", "ja_JP",133"no_NY", "no_NO@nynorsk",134"sr_SP", "sr_YU",135"tchinese", "zh_TW",136#endif137"", "",138};139140/*141* Linux/Solaris language string to ISO639 string mapping table.142*/143static char *language_names[] = {144"C", "en",145"POSIX", "en",146"cz", "cs",147"he", "iw",148#ifdef __linux__149"hs", "en", // used on Linux, not clear what it stands for150#endif151"id", "in",152"sh", "sr", // sh is deprecated153"su", "fi",154#ifdef __linux__155"ua", "en", // used on Linux, not clear what it stands for156"catalan", "ca",157"croatian", "hr",158"czech", "cs",159"danish", "da",160"dansk", "da",161"deutsch", "de",162"dutch", "nl",163"finnish", "fi",164"fran\xE7\x61is", "fr",165"french", "fr",166"german", "de",167"greek", "el",168"hebrew", "he",169"hrvatski", "hr",170"hungarian", "hu",171"icelandic", "is",172"italian", "it",173"japanese", "ja",174"norwegian", "no",175"polish", "pl",176"portuguese", "pt",177"romanian", "ro",178"russian", "ru",179"slovak", "sk",180"slovene", "sl",181"slovenian", "sl",182"spanish", "es",183"swedish", "sv",184"turkish", "tr",185#else186"chinese", "zh",187"japanese", "ja",188"korean", "ko",189#endif190"", "",191};192193/*194* Linux/Solaris script string to Java script name mapping table.195*/196static char *script_names[] = {197#ifdef __linux__198"cyrillic", "Cyrl",199"devanagari", "Deva",200"iqtelif", "Latn",201"latin", "Latn",202#endif203"Arab", "Arab",204"Cyrl", "Cyrl",205"Deva", "Deva",206"Ethi", "Ethi",207"Hans", "Hans",208"Hant", "Hant",209"Latn", "Latn",210"Sund", "Sund",211"Syrc", "Syrc",212"Tfng", "Tfng",213"", "",214};215216/*217* Linux/Solaris country string to ISO3166 string mapping table.218*/219static char *country_names[] = {220#ifdef __linux__221"RN", "US", // used on Linux, not clear what it stands for222#endif223"YU", "CS", // YU has been removed from ISO 3166224"", "",225};226227/*228* Linux/Solaris variant string to Java variant name mapping table.229*/230static char *variant_names[] = {231"nynorsk", "NY",232"", "",233};234235236