xref: /AOO42X/main/wizards/com/sun/star/wizards/letter/LocaleCodes.java (revision b0efeae40e43e6d4ccd561d22ec612d42773857b)
1a1b4a26bSAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3a1b4a26bSAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4a1b4a26bSAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5a1b4a26bSAndrew Rist  * distributed with this work for additional information
6a1b4a26bSAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7a1b4a26bSAndrew Rist  * to you under the Apache License, Version 2.0 (the
8a1b4a26bSAndrew Rist  * "License"); you may not use this file except in compliance
9a1b4a26bSAndrew Rist  * with the License.  You may obtain a copy of the License at
10cdf0e10cSrcweir  *
11a1b4a26bSAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12cdf0e10cSrcweir  *
13a1b4a26bSAndrew Rist  * Unless required by applicable law or agreed to in writing,
14a1b4a26bSAndrew Rist  * software distributed under the License is distributed on an
15a1b4a26bSAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16a1b4a26bSAndrew Rist  * KIND, either express or implied.  See the License for the
17a1b4a26bSAndrew Rist  * specific language governing permissions and limitations
18a1b4a26bSAndrew Rist  * under the License.
19cdf0e10cSrcweir  *
20a1b4a26bSAndrew Rist  *************************************************************/
21a1b4a26bSAndrew Rist 
22a1b4a26bSAndrew Rist 
23cdf0e10cSrcweir package com.sun.star.wizards.letter;
24cdf0e10cSrcweir 
25cdf0e10cSrcweir import com.sun.star.lang.XMultiServiceFactory;
26cdf0e10cSrcweir import com.sun.star.wizards.common.Resource;
27cdf0e10cSrcweir import com.sun.star.beans.PropertyValue;
28cdf0e10cSrcweir 
29cdf0e10cSrcweir public class LocaleCodes extends Resource
30cdf0e10cSrcweir {
31cdf0e10cSrcweir 
32cdf0e10cSrcweir     final static String UNIT_NAME = "svtres";
33cdf0e10cSrcweir     final static String MODULE_NAME = "svt";
34cdf0e10cSrcweir     PropertyValue[] allLanguageStrings;
35cdf0e10cSrcweir 
LocaleCodes(XMultiServiceFactory xmsf)36cdf0e10cSrcweir     public LocaleCodes(XMultiServiceFactory xmsf)
37cdf0e10cSrcweir     {
38cdf0e10cSrcweir         super(xmsf, UNIT_NAME, MODULE_NAME);
39*81442921STsutomu Uchino         allLanguageStrings = getStringList(16638);  // STR_ARR_SVT_LANGUAGE_TABLE from svtools/source/misc/langtab.src
40cdf0e10cSrcweir     }
41cdf0e10cSrcweir 
getLanguageString(String MSID)42cdf0e10cSrcweir     public String getLanguageString(String MSID)
43cdf0e10cSrcweir     {
44cdf0e10cSrcweir         String LS = "unknown Language";
45cdf0e10cSrcweir         for (int i = 0; i < allLanguageStrings.length; i++)
46cdf0e10cSrcweir         {
47cdf0e10cSrcweir             if (allLanguageStrings[i].Value.toString().equalsIgnoreCase(MSID))
48cdf0e10cSrcweir             {
49cdf0e10cSrcweir                 LS = allLanguageStrings[i].Name;
50cdf0e10cSrcweir             }
51cdf0e10cSrcweir         }
52cdf0e10cSrcweir         return LS;
53cdf0e10cSrcweir     }
54cdf0e10cSrcweir 
getIDs()55cdf0e10cSrcweir     public String[] getIDs()
56cdf0e10cSrcweir     {
57cdf0e10cSrcweir         String[] Ids = new String[135];
58cdf0e10cSrcweir 
59cdf0e10cSrcweir         Ids[0] = "Afrikaans;af;1078";
60cdf0e10cSrcweir         Ids[1] = "Albanian;sq;1052";
61cdf0e10cSrcweir         Ids[2] = "Arabic - United Arab Emirates;ar-ae;14337";
62cdf0e10cSrcweir         Ids[3] = "Arabic - Bahrain;ar-bh;15361";
63cdf0e10cSrcweir         Ids[4] = "Arabic - Algeria;ar-dz;5121";
64cdf0e10cSrcweir         Ids[5] = "Arabic - Egypt;ar-eg;3073";
65cdf0e10cSrcweir         Ids[6] = "Arabic - Iraq;ar-iq;2049";
66cdf0e10cSrcweir         Ids[7] = "Arabic - Jordan;ar-jo;11265";
67cdf0e10cSrcweir         Ids[8] = "Arabic - Kuwait;ar-kw;13313";
68cdf0e10cSrcweir         Ids[9] = "Arabic - Lebanon;ar-lb;12289";
69cdf0e10cSrcweir         Ids[10] = "Arabic - Libya;ar-ly;4097";
70cdf0e10cSrcweir         Ids[11] = "Arabic - Morocco;ar-ma;6145";
71cdf0e10cSrcweir         Ids[12] = "Arabic - Oman;ar-om;8193";
72cdf0e10cSrcweir         Ids[13] = "Arabic - Qatar;ar-qa;16385";
73cdf0e10cSrcweir         Ids[14] = "Arabic - Saudi Arabia;ar-sa;1025";
74cdf0e10cSrcweir         Ids[15] = "Arabic - Syria;ar-sy;10241";
75cdf0e10cSrcweir         Ids[16] = "Arabic - Tunisia;ar-tn;7169";
76cdf0e10cSrcweir         Ids[17] = "Arabic - Yemen;ar-ye;9217";
77cdf0e10cSrcweir         Ids[18] = "Armenian;hy;1067";
78cdf0e10cSrcweir         Ids[19] = "Azeri - Latin;az-az;1068";
79cdf0e10cSrcweir         Ids[20] = "Azeri - Cyrillic;az-az;2092";
80cdf0e10cSrcweir         Ids[21] = "Basque;eu;1069";
81cdf0e10cSrcweir         Ids[22] = "Belarusian;be;1059";
82cdf0e10cSrcweir         Ids[23] = "Bulgarian;bg;1026";
83cdf0e10cSrcweir         Ids[24] = "Catalan;ca;1027";
84cdf0e10cSrcweir         Ids[25] = "Chinese - China;zh-cn;2052";
85cdf0e10cSrcweir         Ids[26] = "Chinese - Hong Kong SAR;zh-hk;3076";
86cdf0e10cSrcweir         Ids[27] = "Chinese - Macau SAR;zh-mo;5124";
87cdf0e10cSrcweir         Ids[28] = "Chinese - Singapore;zh-sg;4100";
88cdf0e10cSrcweir         Ids[29] = "Chinese - Taiwan;zh-tw;1028";
89cdf0e10cSrcweir         Ids[30] = "Croatian;hr;1050";
90cdf0e10cSrcweir         Ids[31] = "Czech;cs;1029";
91cdf0e10cSrcweir         Ids[32] = "Danish;da;1030";
92cdf0e10cSrcweir         Ids[33] = "Dutch - The Netherlands;nl-nl;1043";
93cdf0e10cSrcweir         Ids[34] = "Dutch - Belgium;nl-be;2067";
94cdf0e10cSrcweir         Ids[35] = "English - Australia;en-au;3081";
95cdf0e10cSrcweir         Ids[36] = "English - Belize;en-bz;10249";
96cdf0e10cSrcweir         Ids[37] = "English - Canada;en-ca;4105";
97cdf0e10cSrcweir         Ids[38] = "English - Caribbean;en-cb;9225";
98cdf0e10cSrcweir         Ids[39] = "English - Ireland;en-ie;6153";
99cdf0e10cSrcweir         Ids[40] = "English - Jamaica;en-jm;8201";
100cdf0e10cSrcweir         Ids[41] = "English - New Zealand;en-nz;5129";
101cdf0e10cSrcweir         Ids[42] = "English - Phillippines;en-ph;13321";
102cdf0e10cSrcweir         Ids[43] = "English - South Africa;en-za;7177";
103cdf0e10cSrcweir         Ids[44] = "English - Trinidad;en-tt;11273";
104cdf0e10cSrcweir         Ids[45] = "English - United Kingdom;en-gb;2057";
105cdf0e10cSrcweir         Ids[46] = "English - United States;en-us;1033";
106cdf0e10cSrcweir         Ids[47] = "Estonian;et;1061";
10756021edfSAriel Constenla-Haile         Ids[48] = "Persian;fa;1065";
108cdf0e10cSrcweir         Ids[49] = "Finnish;fi;1035";
109cdf0e10cSrcweir         Ids[50] = "Faroese;fo;1080";
110cdf0e10cSrcweir         Ids[51] = "French - France;fr-fr;1036";
111cdf0e10cSrcweir         Ids[52] = "French - Belgium;fr-be;2060";
112cdf0e10cSrcweir         Ids[53] = "French - Canada;fr-ca;3084";
113cdf0e10cSrcweir         Ids[54] = "French - Luxembourg;fr-lu;5132";
114cdf0e10cSrcweir         Ids[55] = "French - Switzerland;fr-ch;4108";
115cdf0e10cSrcweir         Ids[56] = "Gaelic - Ireland;gd-ie;2108";
116cdf0e10cSrcweir         Ids[57] = "Gaelic - Scotland;gd;1084";
117cdf0e10cSrcweir         Ids[58] = "German - Germany;de-de;1031";
118cdf0e10cSrcweir         Ids[59] = "German - Austria;de-at;3079";
119cdf0e10cSrcweir         Ids[60] = "German - Liechtenstein;de-li;5127";
120cdf0e10cSrcweir         Ids[61] = "German - Luxembourg;de-lu;4103";
121cdf0e10cSrcweir         Ids[62] = "German - Switzerland;de-ch;2055";
122cdf0e10cSrcweir         Ids[63] = "Greek;el;1032";
123cdf0e10cSrcweir         Ids[64] = "Hebrew;he;1037";
124cdf0e10cSrcweir         Ids[65] = "Hindi;hi;1081";
125cdf0e10cSrcweir         Ids[66] = "Hungarian;hu;1038";
126cdf0e10cSrcweir         Ids[67] = "Icelandic;is;1039";
127cdf0e10cSrcweir         Ids[68] = "Indonesian;id;1057";
128cdf0e10cSrcweir         Ids[69] = "Italian - Italy;it-it;1040";
129cdf0e10cSrcweir         Ids[70] = "Italian - Switzerland;it-ch;2064";
130cdf0e10cSrcweir         Ids[71] = "Japanese;ja;1041";
131cdf0e10cSrcweir         Ids[72] = "Korean;ko;1042";
132cdf0e10cSrcweir         Ids[73] = "Latvian;lv;1062";
133cdf0e10cSrcweir         Ids[74] = "Lithuanian;lt;1063";
134cdf0e10cSrcweir         Ids[75] = "FYRO Macedonian;mk;1071";
135cdf0e10cSrcweir         Ids[76] = "Malay - Malaysia;ms-my;1086";
136cdf0e10cSrcweir         Ids[77] = "Malay - Brunei;ms-bn;2110";
137cdf0e10cSrcweir         Ids[78] = "Maltese;mt;1082";
138cdf0e10cSrcweir         Ids[79] = "Marathi;mr;1102";
139cdf0e10cSrcweir         Ids[80] = "Norwegian - Bokm?l;no-no;1044";
140cdf0e10cSrcweir         Ids[81] = "Norwegian - Nynorsk;no-no;2068";
141cdf0e10cSrcweir         Ids[82] = "Polish;pl;1045";
142cdf0e10cSrcweir         Ids[83] = "Portuguese - Portugal;pt-pt;2070";
143cdf0e10cSrcweir         Ids[84] = "Portuguese - Brazil;pt-br;1046";
144cdf0e10cSrcweir         Ids[85] = "Raeto-Romance;rm;1047";
145cdf0e10cSrcweir         Ids[86] = "Romanian - Romania;ro;1048";
146cdf0e10cSrcweir         Ids[87] = "Romanian - Moldova;ro-mo;2072";
147cdf0e10cSrcweir         Ids[88] = "Russian;ru;1049";
148cdf0e10cSrcweir         Ids[89] = "Russian - Moldova;ru-mo;2073";
149cdf0e10cSrcweir         Ids[90] = "Sanskrit;sa;1103";
150cdf0e10cSrcweir         Ids[91] = "Serbian - Cyrillic;sr-sp;3098";
151cdf0e10cSrcweir         Ids[92] = "Serbian - Latin;sr-sp;2074";
152cdf0e10cSrcweir         Ids[93] = "Setsuana;tn;1074";
153cdf0e10cSrcweir         Ids[94] = "Slovenian;sl;1060";
154cdf0e10cSrcweir         Ids[95] = "Slovak;sk;1051";
155cdf0e10cSrcweir         Ids[96] = "Sorbian;sb;1070";
156cdf0e10cSrcweir         Ids[97] = "Spanish - Spain;es-es;1034";
157cdf0e10cSrcweir         Ids[98] = "Spanish - Argentina;es-ar;11274";
158cdf0e10cSrcweir         Ids[99] = "Spanish - Bolivia;es-bo;16394";
159cdf0e10cSrcweir         Ids[100] = "Spanish - Chile;es-cl;13322";
160cdf0e10cSrcweir         Ids[101] = "Spanish - Colombia;es-co;9226";
161cdf0e10cSrcweir         Ids[102] = "Spanish - Costa Rica;es-cr;5130";
162cdf0e10cSrcweir         Ids[103] = "Spanish - Dominican Republic;es-do;7178";
163cdf0e10cSrcweir         Ids[104] = "Spanish - Ecuador;es-ec;12298";
164cdf0e10cSrcweir         Ids[105] = "Spanish - Guatemala;es-gt;4106";
165cdf0e10cSrcweir         Ids[106] = "Spanish - Honduras;es-hn;18442";
166cdf0e10cSrcweir         Ids[107] = "Spanish - Mexico;es-mx;2058";
167cdf0e10cSrcweir         Ids[108] = "Spanish - Nicaragua;es-ni;19466";
168cdf0e10cSrcweir         Ids[109] = "Spanish - Panama;es-pa;6154";
169cdf0e10cSrcweir         Ids[110] = "Spanish - Peru;es-pe;10250";
170cdf0e10cSrcweir         Ids[111] = "Spanish - Puerto Rico;es-pr;20490";
171cdf0e10cSrcweir         Ids[112] = "Spanish - Paraguay;es-py;15370";
172cdf0e10cSrcweir         Ids[113] = "Spanish - El Salvador;es-sv;17418";
173cdf0e10cSrcweir         Ids[114] = "Spanish - Uruguay;es-uy;14346";
174cdf0e10cSrcweir         Ids[115] = "Spanish - Venezuela;es-ve;8202";
175cdf0e10cSrcweir         Ids[116] = "Sutu;sx;1072";
176cdf0e10cSrcweir         Ids[117] = "Swahili;sw;1089";
177cdf0e10cSrcweir         Ids[118] = "Swedish - Sweden;sv-se;1053";
178cdf0e10cSrcweir         Ids[119] = "Swedish - Finland;sv-fi;2077";
179cdf0e10cSrcweir         Ids[120] = "Tamil;ta;1097";
180cdf0e10cSrcweir         Ids[121] = "Tatar;tt;1092";
181cdf0e10cSrcweir         Ids[122] = "Thai;th;1054";
182cdf0e10cSrcweir         Ids[123] = "Turkish;tr;1055";
183cdf0e10cSrcweir         Ids[124] = "Tsonga;ts;1073";
184cdf0e10cSrcweir         Ids[125] = "Ukrainian;uk;1058";
185cdf0e10cSrcweir         Ids[126] = "Urdu;ur;1056";
186cdf0e10cSrcweir         Ids[127] = "Uzbek - Cyrillic;uz-uz;2115";
187cdf0e10cSrcweir         Ids[128] = "Uzbek - Latin;uz-uz;1091";
188cdf0e10cSrcweir         Ids[129] = "Vietnamese;vi;1066";
189cdf0e10cSrcweir         Ids[130] = "Xhosa;xh;1076";
190cdf0e10cSrcweir         Ids[131] = "Yiddish;yi;1085";
191cdf0e10cSrcweir         Ids[132] = "Zulu;zu;1077";
192cdf0e10cSrcweir         Ids[133] = "Khmer;km-kh;1107";
193cdf0e10cSrcweir         Ids[134] = "Burmese;my-mm;1109";
194cdf0e10cSrcweir 
195cdf0e10cSrcweir         return Ids;
196cdf0e10cSrcweir     }
197cdf0e10cSrcweir }
198