annotate intl/localename.c @ 977:773c485cf628 trunk

[svn] - Revert: Okay, I'm a fool. There was a reason they weren't included.
author nhjm449
date Wed, 26 Apr 2006 21:26:03 -0700
parents cb178e5ad177
children f12d7e208b43
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1 /* Determine the current selected locale.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2 Copyright (C) 1995-1999, 2000-2002 Free Software Foundation, Inc.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4 This program is free software; you can redistribute it and/or modify it
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5 under the terms of the GNU Library General Public License as published
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6 by the Free Software Foundation; either version 2, or (at your option)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
7 any later version.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
8
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
9 This program is distributed in the hope that it will be useful,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
12 Library General Public License for more details.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
13
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
14 You should have received a copy of the GNU Library General Public
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
15 License along with this program; if not, write to the Free Software
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
16 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
17 USA. */
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
18
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
19 /* Written by Ulrich Drepper <drepper@gnu.org>, 1995. */
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
20 /* Win32 code written by Tor Lillqvist <tml@iki.fi>. */
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
21
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
22 #ifdef HAVE_CONFIG_H
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
23 # include <config.h>
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
24 #endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
25
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
26 #include <stdlib.h>
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
27 #include <locale.h>
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
28
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
29 #if defined _WIN32 || defined __WIN32__
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
30 # undef WIN32 /* avoid warning on mingw32 */
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
31 # define WIN32
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
32 #endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
33
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
34 #ifdef WIN32
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
35 # define WIN32_LEAN_AND_MEAN
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
36 # include <windows.h>
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
37 /* Mingw headers don't have latest language and sublanguage codes. */
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
38 # ifndef LANG_AFRIKAANS
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
39 # define LANG_AFRIKAANS 0x36
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
40 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
41 # ifndef LANG_ALBANIAN
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
42 # define LANG_ALBANIAN 0x1c
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
43 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
44 # ifndef LANG_ARABIC
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
45 # define LANG_ARABIC 0x01
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
46 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
47 # ifndef LANG_ARMENIAN
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
48 # define LANG_ARMENIAN 0x2b
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
49 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
50 # ifndef LANG_ASSAMESE
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
51 # define LANG_ASSAMESE 0x4d
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
52 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
53 # ifndef LANG_AZERI
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
54 # define LANG_AZERI 0x2c
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
55 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
56 # ifndef LANG_BASQUE
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
57 # define LANG_BASQUE 0x2d
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
58 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
59 # ifndef LANG_BELARUSIAN
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
60 # define LANG_BELARUSIAN 0x23
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
61 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
62 # ifndef LANG_BENGALI
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
63 # define LANG_BENGALI 0x45
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
64 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
65 # ifndef LANG_CATALAN
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
66 # define LANG_CATALAN 0x03
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
67 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
68 # ifndef LANG_DIVEHI
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
69 # define LANG_DIVEHI 0x65
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
70 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
71 # ifndef LANG_ESTONIAN
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
72 # define LANG_ESTONIAN 0x25
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
73 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
74 # ifndef LANG_FAEROESE
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
75 # define LANG_FAEROESE 0x38
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
76 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
77 # ifndef LANG_FARSI
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
78 # define LANG_FARSI 0x29
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
79 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
80 # ifndef LANG_GALICIAN
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
81 # define LANG_GALICIAN 0x56
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
82 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
83 # ifndef LANG_GEORGIAN
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
84 # define LANG_GEORGIAN 0x37
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
85 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
86 # ifndef LANG_GUJARATI
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
87 # define LANG_GUJARATI 0x47
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
88 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
89 # ifndef LANG_HEBREW
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
90 # define LANG_HEBREW 0x0d
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
91 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
92 # ifndef LANG_HINDI
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
93 # define LANG_HINDI 0x39
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
94 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
95 # ifndef LANG_INDONESIAN
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
96 # define LANG_INDONESIAN 0x21
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
97 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
98 # ifndef LANG_KANNADA
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
99 # define LANG_KANNADA 0x4b
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
100 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
101 # ifndef LANG_KASHMIRI
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
102 # define LANG_KASHMIRI 0x60
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
103 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
104 # ifndef LANG_KAZAK
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
105 # define LANG_KAZAK 0x3f
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
106 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
107 # ifndef LANG_KONKANI
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
108 # define LANG_KONKANI 0x57
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
109 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
110 # ifndef LANG_KYRGYZ
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
111 # define LANG_KYRGYZ 0x40
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
112 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
113 # ifndef LANG_LATVIAN
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
114 # define LANG_LATVIAN 0x26
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
115 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
116 # ifndef LANG_LITHUANIAN
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
117 # define LANG_LITHUANIAN 0x27
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
118 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
119 # ifndef LANG_MACEDONIAN
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
120 # define LANG_MACEDONIAN 0x2f
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
121 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
122 # ifndef LANG_MALAY
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
123 # define LANG_MALAY 0x3e
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
124 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
125 # ifndef LANG_MALAYALAM
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
126 # define LANG_MALAYALAM 0x4c
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
127 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
128 # ifndef LANG_MANIPURI
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
129 # define LANG_MANIPURI 0x58
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
130 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
131 # ifndef LANG_MARATHI
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
132 # define LANG_MARATHI 0x4e
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
133 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
134 # ifndef LANG_MONGOLIAN
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
135 # define LANG_MONGOLIAN 0x50
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
136 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
137 # ifndef LANG_NEPALI
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
138 # define LANG_NEPALI 0x61
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
139 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
140 # ifndef LANG_ORIYA
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
141 # define LANG_ORIYA 0x48
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
142 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
143 # ifndef LANG_PUNJABI
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
144 # define LANG_PUNJABI 0x46
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
145 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
146 # ifndef LANG_SANSKRIT
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
147 # define LANG_SANSKRIT 0x4f
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
148 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
149 # ifndef LANG_SERBIAN
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
150 # define LANG_SERBIAN 0x1a
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
151 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
152 # ifndef LANG_SINDHI
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
153 # define LANG_SINDHI 0x59
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
154 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
155 # ifndef LANG_SLOVAK
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
156 # define LANG_SLOVAK 0x1b
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
157 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
158 # ifndef LANG_SORBIAN
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
159 # define LANG_SORBIAN 0x2e
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
160 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
161 # ifndef LANG_SWAHILI
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
162 # define LANG_SWAHILI 0x41
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
163 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
164 # ifndef LANG_SYRIAC
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
165 # define LANG_SYRIAC 0x5a
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
166 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
167 # ifndef LANG_TAMIL
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
168 # define LANG_TAMIL 0x49
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
169 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
170 # ifndef LANG_TATAR
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
171 # define LANG_TATAR 0x44
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
172 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
173 # ifndef LANG_TELUGU
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
174 # define LANG_TELUGU 0x4a
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
175 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
176 # ifndef LANG_THAI
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
177 # define LANG_THAI 0x1e
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
178 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
179 # ifndef LANG_UKRAINIAN
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
180 # define LANG_UKRAINIAN 0x22
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
181 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
182 # ifndef LANG_URDU
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
183 # define LANG_URDU 0x20
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
184 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
185 # ifndef LANG_UZBEK
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
186 # define LANG_UZBEK 0x43
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
187 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
188 # ifndef LANG_VIETNAMESE
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
189 # define LANG_VIETNAMESE 0x2a
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
190 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
191 # ifndef SUBLANG_ARABIC_SAUDI_ARABIA
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
192 # define SUBLANG_ARABIC_SAUDI_ARABIA 0x01
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
193 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
194 # ifndef SUBLANG_ARABIC_IRAQ
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
195 # define SUBLANG_ARABIC_IRAQ 0x02
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
196 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
197 # ifndef SUBLANG_ARABIC_EGYPT
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
198 # define SUBLANG_ARABIC_EGYPT 0x03
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
199 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
200 # ifndef SUBLANG_ARABIC_LIBYA
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
201 # define SUBLANG_ARABIC_LIBYA 0x04
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
202 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
203 # ifndef SUBLANG_ARABIC_ALGERIA
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
204 # define SUBLANG_ARABIC_ALGERIA 0x05
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
205 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
206 # ifndef SUBLANG_ARABIC_MOROCCO
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
207 # define SUBLANG_ARABIC_MOROCCO 0x06
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
208 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
209 # ifndef SUBLANG_ARABIC_TUNISIA
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
210 # define SUBLANG_ARABIC_TUNISIA 0x07
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
211 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
212 # ifndef SUBLANG_ARABIC_OMAN
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
213 # define SUBLANG_ARABIC_OMAN 0x08
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
214 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
215 # ifndef SUBLANG_ARABIC_YEMEN
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
216 # define SUBLANG_ARABIC_YEMEN 0x09
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
217 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
218 # ifndef SUBLANG_ARABIC_SYRIA
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
219 # define SUBLANG_ARABIC_SYRIA 0x0a
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
220 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
221 # ifndef SUBLANG_ARABIC_JORDAN
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
222 # define SUBLANG_ARABIC_JORDAN 0x0b
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
223 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
224 # ifndef SUBLANG_ARABIC_LEBANON
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
225 # define SUBLANG_ARABIC_LEBANON 0x0c
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
226 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
227 # ifndef SUBLANG_ARABIC_KUWAIT
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
228 # define SUBLANG_ARABIC_KUWAIT 0x0d
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
229 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
230 # ifndef SUBLANG_ARABIC_UAE
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
231 # define SUBLANG_ARABIC_UAE 0x0e
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
232 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
233 # ifndef SUBLANG_ARABIC_BAHRAIN
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
234 # define SUBLANG_ARABIC_BAHRAIN 0x0f
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
235 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
236 # ifndef SUBLANG_ARABIC_QATAR
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
237 # define SUBLANG_ARABIC_QATAR 0x10
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
238 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
239 # ifndef SUBLANG_AZERI_LATIN
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
240 # define SUBLANG_AZERI_LATIN 0x01
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
241 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
242 # ifndef SUBLANG_AZERI_CYRILLIC
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
243 # define SUBLANG_AZERI_CYRILLIC 0x02
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
244 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
245 # ifndef SUBLANG_CHINESE_MACAU
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
246 # define SUBLANG_CHINESE_MACAU 0x05
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
247 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
248 # ifndef SUBLANG_ENGLISH_SOUTH_AFRICA
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
249 # define SUBLANG_ENGLISH_SOUTH_AFRICA 0x07
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
250 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
251 # ifndef SUBLANG_ENGLISH_JAMAICA
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
252 # define SUBLANG_ENGLISH_JAMAICA 0x08
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
253 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
254 # ifndef SUBLANG_ENGLISH_CARIBBEAN
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
255 # define SUBLANG_ENGLISH_CARIBBEAN 0x09
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
256 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
257 # ifndef SUBLANG_ENGLISH_BELIZE
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
258 # define SUBLANG_ENGLISH_BELIZE 0x0a
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
259 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
260 # ifndef SUBLANG_ENGLISH_TRINIDAD
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
261 # define SUBLANG_ENGLISH_TRINIDAD 0x0b
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
262 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
263 # ifndef SUBLANG_ENGLISH_ZIMBABWE
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
264 # define SUBLANG_ENGLISH_ZIMBABWE 0x0c
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
265 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
266 # ifndef SUBLANG_ENGLISH_PHILIPPINES
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
267 # define SUBLANG_ENGLISH_PHILIPPINES 0x0d
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
268 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
269 # ifndef SUBLANG_FRENCH_LUXEMBOURG
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
270 # define SUBLANG_FRENCH_LUXEMBOURG 0x05
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
271 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
272 # ifndef SUBLANG_FRENCH_MONACO
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
273 # define SUBLANG_FRENCH_MONACO 0x06
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
274 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
275 # ifndef SUBLANG_GERMAN_LUXEMBOURG
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
276 # define SUBLANG_GERMAN_LUXEMBOURG 0x04
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
277 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
278 # ifndef SUBLANG_GERMAN_LIECHTENSTEIN
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
279 # define SUBLANG_GERMAN_LIECHTENSTEIN 0x05
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
280 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
281 # ifndef SUBLANG_KASHMIRI_INDIA
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
282 # define SUBLANG_KASHMIRI_INDIA 0x02
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
283 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
284 # ifndef SUBLANG_MALAY_MALAYSIA
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
285 # define SUBLANG_MALAY_MALAYSIA 0x01
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
286 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
287 # ifndef SUBLANG_MALAY_BRUNEI_DARUSSALAM
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
288 # define SUBLANG_MALAY_BRUNEI_DARUSSALAM 0x02
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
289 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
290 # ifndef SUBLANG_NEPALI_INDIA
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
291 # define SUBLANG_NEPALI_INDIA 0x02
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
292 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
293 # ifndef SUBLANG_SERBIAN_LATIN
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
294 # define SUBLANG_SERBIAN_LATIN 0x02
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
295 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
296 # ifndef SUBLANG_SERBIAN_CYRILLIC
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
297 # define SUBLANG_SERBIAN_CYRILLIC 0x03
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
298 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
299 # ifndef SUBLANG_SPANISH_GUATEMALA
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
300 # define SUBLANG_SPANISH_GUATEMALA 0x04
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
301 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
302 # ifndef SUBLANG_SPANISH_COSTA_RICA
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
303 # define SUBLANG_SPANISH_COSTA_RICA 0x05
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
304 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
305 # ifndef SUBLANG_SPANISH_PANAMA
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
306 # define SUBLANG_SPANISH_PANAMA 0x06
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
307 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
308 # ifndef SUBLANG_SPANISH_DOMINICAN_REPUBLIC
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
309 # define SUBLANG_SPANISH_DOMINICAN_REPUBLIC 0x07
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
310 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
311 # ifndef SUBLANG_SPANISH_VENEZUELA
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
312 # define SUBLANG_SPANISH_VENEZUELA 0x08
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
313 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
314 # ifndef SUBLANG_SPANISH_COLOMBIA
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
315 # define SUBLANG_SPANISH_COLOMBIA 0x09
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
316 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
317 # ifndef SUBLANG_SPANISH_PERU
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
318 # define SUBLANG_SPANISH_PERU 0x0a
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
319 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
320 # ifndef SUBLANG_SPANISH_ARGENTINA
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
321 # define SUBLANG_SPANISH_ARGENTINA 0x0b
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
322 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
323 # ifndef SUBLANG_SPANISH_ECUADOR
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
324 # define SUBLANG_SPANISH_ECUADOR 0x0c
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
325 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
326 # ifndef SUBLANG_SPANISH_CHILE
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
327 # define SUBLANG_SPANISH_CHILE 0x0d
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
328 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
329 # ifndef SUBLANG_SPANISH_URUGUAY
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
330 # define SUBLANG_SPANISH_URUGUAY 0x0e
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
331 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
332 # ifndef SUBLANG_SPANISH_PARAGUAY
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
333 # define SUBLANG_SPANISH_PARAGUAY 0x0f
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
334 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
335 # ifndef SUBLANG_SPANISH_BOLIVIA
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
336 # define SUBLANG_SPANISH_BOLIVIA 0x10
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
337 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
338 # ifndef SUBLANG_SPANISH_EL_SALVADOR
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
339 # define SUBLANG_SPANISH_EL_SALVADOR 0x11
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
340 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
341 # ifndef SUBLANG_SPANISH_HONDURAS
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
342 # define SUBLANG_SPANISH_HONDURAS 0x12
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
343 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
344 # ifndef SUBLANG_SPANISH_NICARAGUA
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
345 # define SUBLANG_SPANISH_NICARAGUA 0x13
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
346 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
347 # ifndef SUBLANG_SPANISH_PUERTO_RICO
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
348 # define SUBLANG_SPANISH_PUERTO_RICO 0x14
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
349 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
350 # ifndef SUBLANG_SWEDISH_FINLAND
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
351 # define SUBLANG_SWEDISH_FINLAND 0x02
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
352 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
353 # ifndef SUBLANG_URDU_PAKISTAN
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
354 # define SUBLANG_URDU_PAKISTAN 0x01
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
355 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
356 # ifndef SUBLANG_URDU_INDIA
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
357 # define SUBLANG_URDU_INDIA 0x02
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
358 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
359 # ifndef SUBLANG_UZBEK_LATIN
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
360 # define SUBLANG_UZBEK_LATIN 0x01
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
361 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
362 # ifndef SUBLANG_UZBEK_CYRILLIC
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
363 # define SUBLANG_UZBEK_CYRILLIC 0x02
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
364 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
365 #endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
366
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
367 /* XPG3 defines the result of 'setlocale (category, NULL)' as:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
368 "Directs 'setlocale()' to query 'category' and return the current
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
369 setting of 'local'."
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
370 However it does not specify the exact format. Neither do SUSV2 and
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
371 ISO C 99. So we can use this feature only on selected systems (e.g.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
372 those using GNU C Library). */
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
373 #if defined _LIBC || (defined __GNU_LIBRARY__ && __GNU_LIBRARY__ >= 2)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
374 # define HAVE_LOCALE_NULL
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
375 #endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
376
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
377 /* Determine the current locale's name, and canonicalize it into XPG syntax
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
378 language[_territory[.codeset]][@modifier]
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
379 The codeset part in the result is not reliable; the locale_charset()
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
380 should be used for codeset information instead.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
381 The result must not be freed; it is statically allocated. */
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
382
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
383 const char *
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
384 _nl_locale_name (category, categoryname)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
385 int category;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
386 const char *categoryname;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
387 {
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
388 const char *retval;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
389
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
390 #ifndef WIN32
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
391
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
392 /* Use the POSIX methods of looking to 'LC_ALL', 'LC_xxx', and 'LANG'.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
393 On some systems this can be done by the 'setlocale' function itself. */
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
394 # if defined HAVE_SETLOCALE && defined HAVE_LC_MESSAGES && defined HAVE_LOCALE_NULL
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
395 retval = setlocale (category, NULL);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
396 # else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
397 /* Setting of LC_ALL overwrites all other. */
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
398 retval = getenv ("LC_ALL");
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
399 if (retval == NULL || retval[0] == '\0')
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
400 {
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
401 /* Next comes the name of the desired category. */
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
402 retval = getenv (categoryname);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
403 if (retval == NULL || retval[0] == '\0')
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
404 {
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
405 /* Last possibility is the LANG environment variable. */
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
406 retval = getenv ("LANG");
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
407 if (retval == NULL || retval[0] == '\0')
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
408 /* We use C as the default domain. POSIX says this is
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
409 implementation defined. */
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
410 retval = "C";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
411 }
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
412 }
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
413 # endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
414
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
415 return retval;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
416
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
417 #else /* WIN32 */
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
418
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
419 /* Return an XPG style locale name language[_territory][@modifier].
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
420 Don't even bother determining the codeset; it's not useful in this
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
421 context, because message catalogs are not specific to a single
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
422 codeset. */
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
423
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
424 LCID lcid;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
425 LANGID langid;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
426 int primary, sub;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
427
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
428 /* Let the user override the system settings through environment
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
429 variables, as on POSIX systems. */
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
430 retval = getenv ("LC_ALL");
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
431 if (retval != NULL && retval[0] != '\0')
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
432 return retval;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
433 retval = getenv (categoryname);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
434 if (retval != NULL && retval[0] != '\0')
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
435 return retval;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
436 retval = getenv ("LANG");
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
437 if (retval != NULL && retval[0] != '\0')
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
438 return retval;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
439
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
440 /* Use native Win32 API locale ID. */
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
441 lcid = GetThreadLocale ();
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
442
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
443 /* Strip off the sorting rules, keep only the language part. */
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
444 langid = LANGIDFROMLCID (lcid);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
445
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
446 /* Split into language and territory part. */
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
447 primary = PRIMARYLANGID (langid);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
448 sub = SUBLANGID (langid);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
449
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
450 /* Dispatch on language.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
451 See also http://www.unicode.org/unicode/onlinedat/languages.html .
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
452 For details about languages, see http://www.ethnologue.com/ . */
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
453 switch (primary)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
454 {
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
455 case LANG_AFRIKAANS: return "af_ZA";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
456 case LANG_ALBANIAN: return "sq_AL";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
457 case 0x5e: /* AMHARIC */ return "am_ET";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
458 case LANG_ARABIC:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
459 switch (sub)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
460 {
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
461 case SUBLANG_ARABIC_SAUDI_ARABIA: return "ar_SA";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
462 case SUBLANG_ARABIC_IRAQ: return "ar_IQ";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
463 case SUBLANG_ARABIC_EGYPT: return "ar_EG";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
464 case SUBLANG_ARABIC_LIBYA: return "ar_LY";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
465 case SUBLANG_ARABIC_ALGERIA: return "ar_DZ";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
466 case SUBLANG_ARABIC_MOROCCO: return "ar_MA";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
467 case SUBLANG_ARABIC_TUNISIA: return "ar_TN";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
468 case SUBLANG_ARABIC_OMAN: return "ar_OM";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
469 case SUBLANG_ARABIC_YEMEN: return "ar_YE";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
470 case SUBLANG_ARABIC_SYRIA: return "ar_SY";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
471 case SUBLANG_ARABIC_JORDAN: return "ar_JO";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
472 case SUBLANG_ARABIC_LEBANON: return "ar_LB";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
473 case SUBLANG_ARABIC_KUWAIT: return "ar_KW";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
474 case SUBLANG_ARABIC_UAE: return "ar_AE";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
475 case SUBLANG_ARABIC_BAHRAIN: return "ar_BH";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
476 case SUBLANG_ARABIC_QATAR: return "ar_QA";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
477 }
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
478 return "ar";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
479 case LANG_ARMENIAN: return "hy_AM";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
480 case LANG_ASSAMESE: return "as_IN";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
481 case LANG_AZERI:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
482 switch (sub)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
483 {
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
484 /* FIXME: Adjust this when Azerbaijani locales appear on Unix. */
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
485 case SUBLANG_AZERI_LATIN: return "az_AZ@latin";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
486 case SUBLANG_AZERI_CYRILLIC: return "az_AZ@cyrillic";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
487 }
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
488 return "az";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
489 case LANG_BASQUE:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
490 return "eu"; /* Ambiguous: could be "eu_ES" or "eu_FR". */
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
491 case LANG_BELARUSIAN: return "be_BY";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
492 case LANG_BENGALI: return "bn_IN";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
493 case LANG_BULGARIAN: return "bg_BG";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
494 case 0x55: /* BURMESE */ return "my_MM";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
495 case 0x53: /* CAMBODIAN */ return "km_KH";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
496 case LANG_CATALAN: return "ca_ES";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
497 case 0x5c: /* CHEROKEE */ return "chr_US";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
498 case LANG_CHINESE:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
499 switch (sub)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
500 {
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
501 case SUBLANG_CHINESE_TRADITIONAL: return "zh_TW";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
502 case SUBLANG_CHINESE_SIMPLIFIED: return "zh_CN";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
503 case SUBLANG_CHINESE_HONGKONG: return "zh_HK";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
504 case SUBLANG_CHINESE_SINGAPORE: return "zh_SG";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
505 case SUBLANG_CHINESE_MACAU: return "zh_MO";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
506 }
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
507 return "zh";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
508 case LANG_CROATIAN: /* LANG_CROATIAN == LANG_SERBIAN
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
509 * What used to be called Serbo-Croatian
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
510 * should really now be two separate
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
511 * languages because of political reasons.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
512 * (Says tml, who knows nothing about Serbian
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
513 * or Croatian.)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
514 * (I can feel those flames coming already.)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
515 */
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
516 switch (sub)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
517 {
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
518 case SUBLANG_DEFAULT: return "hr_HR";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
519 case SUBLANG_SERBIAN_LATIN: return "sr_YU";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
520 case SUBLANG_SERBIAN_CYRILLIC: return "sr_YU@cyrillic";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
521 }
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
522 return "hr";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
523 case LANG_CZECH: return "cs_CZ";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
524 case LANG_DANISH: return "da_DK";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
525 case LANG_DIVEHI: return "div_MV";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
526 case LANG_DUTCH:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
527 switch (sub)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
528 {
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
529 case SUBLANG_DUTCH: return "nl_NL";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
530 case SUBLANG_DUTCH_BELGIAN: /* FLEMISH, VLAAMS */ return "nl_BE";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
531 }
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
532 return "nl";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
533 case 0x66: /* EDO */ return "bin_NG";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
534 case LANG_ENGLISH:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
535 switch (sub)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
536 {
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
537 /* SUBLANG_ENGLISH_US == SUBLANG_DEFAULT. Heh. I thought
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
538 * English was the language spoken in England.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
539 * Oh well.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
540 */
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
541 case SUBLANG_ENGLISH_US: return "en_US";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
542 case SUBLANG_ENGLISH_UK: return "en_GB";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
543 case SUBLANG_ENGLISH_AUS: return "en_AU";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
544 case SUBLANG_ENGLISH_CAN: return "en_CA";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
545 case SUBLANG_ENGLISH_NZ: return "en_NZ";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
546 case SUBLANG_ENGLISH_EIRE: return "en_IE";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
547 case SUBLANG_ENGLISH_SOUTH_AFRICA: return "en_ZA";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
548 case SUBLANG_ENGLISH_JAMAICA: return "en_JM";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
549 case SUBLANG_ENGLISH_CARIBBEAN: return "en_GD"; /* Grenada? */
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
550 case SUBLANG_ENGLISH_BELIZE: return "en_BZ";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
551 case SUBLANG_ENGLISH_TRINIDAD: return "en_TT";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
552 case SUBLANG_ENGLISH_ZIMBABWE: return "en_ZW";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
553 case SUBLANG_ENGLISH_PHILIPPINES: return "en_PH";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
554 }
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
555 return "en";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
556 case LANG_ESTONIAN: return "et_EE";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
557 case LANG_FAEROESE: return "fo_FO";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
558 case LANG_FARSI: return "fa_IR";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
559 case LANG_FINNISH: return "fi_FI";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
560 case LANG_FRENCH:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
561 switch (sub)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
562 {
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
563 case SUBLANG_FRENCH: return "fr_FR";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
564 case SUBLANG_FRENCH_BELGIAN: /* WALLOON */ return "fr_BE";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
565 case SUBLANG_FRENCH_CANADIAN: return "fr_CA";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
566 case SUBLANG_FRENCH_SWISS: return "fr_CH";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
567 case SUBLANG_FRENCH_LUXEMBOURG: return "fr_LU";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
568 case SUBLANG_FRENCH_MONACO: return "fr_MC";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
569 }
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
570 return "fr";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
571 case 0x62: /* FRISIAN */ return "fy_NL";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
572 case 0x67: /* FULFULDE */ return "ful_NG";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
573 case 0x3c: /* GAELIC */
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
574 switch (sub)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
575 {
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
576 case 0x01: /* SCOTTISH */ return "gd_GB";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
577 case 0x02: /* IRISH */ return "ga_IE";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
578 }
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
579 return "C";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
580 case LANG_GALICIAN: return "gl_ES";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
581 case LANG_GEORGIAN: return "ka_GE";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
582 case LANG_GERMAN:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
583 switch (sub)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
584 {
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
585 case SUBLANG_GERMAN: return "de_DE";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
586 case SUBLANG_GERMAN_SWISS: return "de_CH";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
587 case SUBLANG_GERMAN_AUSTRIAN: return "de_AT";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
588 case SUBLANG_GERMAN_LUXEMBOURG: return "de_LU";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
589 case SUBLANG_GERMAN_LIECHTENSTEIN: return "de_LI";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
590 }
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
591 return "de";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
592 case LANG_GREEK: return "el_GR";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
593 case 0x74: /* GUARANI */ return "gn_PY";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
594 case LANG_GUJARATI: return "gu_IN";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
595 case 0x68: /* HAUSA */ return "ha_NG";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
596 case 0x75: /* HAWAIIAN */
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
597 /* FIXME: Do they mean Hawaiian ("haw_US", 1000 speakers)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
598 or Hawaii Creole English ("cpe_US", 600000 speakers)? */
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
599 return "cpe_US";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
600 case LANG_HEBREW: return "he_IL";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
601 case LANG_HINDI: return "hi_IN";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
602 case LANG_HUNGARIAN: return "hu_HU";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
603 case 0x69: /* IBIBIO */ return "nic_NG";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
604 case LANG_ICELANDIC: return "is_IS";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
605 case 0x70: /* IGBO */ return "ibo_NG";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
606 case LANG_INDONESIAN: return "id_ID";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
607 case 0x5d: /* INUKTITUT */ return "iu_CA";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
608 case LANG_ITALIAN:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
609 switch (sub)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
610 {
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
611 case SUBLANG_ITALIAN: return "it_IT";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
612 case SUBLANG_ITALIAN_SWISS: return "it_CH";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
613 }
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
614 return "it";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
615 case LANG_JAPANESE: return "ja_JP";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
616 case LANG_KANNADA: return "kn_IN";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
617 case 0x71: /* KANURI */ return "kau_NG";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
618 case LANG_KASHMIRI:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
619 switch (sub)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
620 {
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
621 case SUBLANG_DEFAULT: return "ks_PK";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
622 case SUBLANG_KASHMIRI_INDIA: return "ks_IN";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
623 }
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
624 return "ks";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
625 case LANG_KAZAK: return "kk_KZ";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
626 case LANG_KONKANI:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
627 /* FIXME: Adjust this when such locales appear on Unix. */
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
628 return "kok_IN";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
629 case LANG_KOREAN: return "ko_KR";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
630 case LANG_KYRGYZ: return "ky_KG";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
631 case 0x54: /* LAO */ return "lo_LA";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
632 case 0x76: /* LATIN */ return "la_VA";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
633 case LANG_LATVIAN: return "lv_LV";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
634 case LANG_LITHUANIAN: return "lt_LT";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
635 case LANG_MACEDONIAN: return "mk_MK";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
636 case LANG_MALAY:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
637 switch (sub)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
638 {
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
639 case SUBLANG_MALAY_MALAYSIA: return "ms_MY";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
640 case SUBLANG_MALAY_BRUNEI_DARUSSALAM: return "ms_BN";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
641 }
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
642 return "ms";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
643 case LANG_MALAYALAM: return "ml_IN";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
644 case 0x3a: /* MALTESE */ return "mt_MT";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
645 case LANG_MANIPURI:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
646 /* FIXME: Adjust this when such locales appear on Unix. */
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
647 return "mni_IN";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
648 case LANG_MARATHI: return "mr_IN";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
649 case LANG_MONGOLIAN:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
650 return "mn"; /* Ambiguous: could be "mn_CN" or "mn_MN". */
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
651 case LANG_NEPALI:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
652 switch (sub)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
653 {
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
654 case SUBLANG_DEFAULT: return "ne_NP";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
655 case SUBLANG_NEPALI_INDIA: return "ne_IN";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
656 }
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
657 return "ne";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
658 case LANG_NORWEGIAN:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
659 switch (sub)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
660 {
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
661 case SUBLANG_NORWEGIAN_BOKMAL: return "no_NO";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
662 case SUBLANG_NORWEGIAN_NYNORSK: return "nn_NO";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
663 }
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
664 return "no";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
665 case LANG_ORIYA: return "or_IN";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
666 case 0x72: /* OROMO */ return "om_ET";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
667 case 0x79: /* PAPIAMENTU */ return "pap_AN";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
668 case 0x63: /* PASHTO */
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
669 return "ps"; /* Ambiguous: could be "ps_PK" or "ps_AF". */
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
670 case LANG_POLISH: return "pl_PL";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
671 case LANG_PORTUGUESE:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
672 switch (sub)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
673 {
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
674 case SUBLANG_PORTUGUESE: return "pt_PT";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
675 /* Hmm. SUBLANG_PORTUGUESE_BRAZILIAN == SUBLANG_DEFAULT.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
676 Same phenomenon as SUBLANG_ENGLISH_US == SUBLANG_DEFAULT. */
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
677 case SUBLANG_PORTUGUESE_BRAZILIAN: return "pt_BR";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
678 }
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
679 return "pt";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
680 case LANG_PUNJABI: return "pa_IN";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
681 case 0x17: /* RHAETO-ROMANCE */ return "rm_CH";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
682 case LANG_ROMANIAN: return "ro_RO";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
683 case LANG_RUSSIAN:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
684 return "ru"; /* Ambiguous: could be "ru_RU" or "ru_UA". */
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
685 case 0x3b: /* SAMI */ return "se_NO";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
686 case LANG_SANSKRIT: return "sa_IN";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
687 case LANG_SINDHI: return "sd";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
688 case 0x5b: /* SINHALESE */ return "si_LK";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
689 case LANG_SLOVAK: return "sk_SK";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
690 case LANG_SLOVENIAN: return "sl_SI";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
691 case 0x77: /* SOMALI */ return "so_SO";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
692 case LANG_SORBIAN:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
693 /* FIXME: Adjust this when such locales appear on Unix. */
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
694 return "wen_DE";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
695 case LANG_SPANISH:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
696 switch (sub)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
697 {
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
698 case SUBLANG_SPANISH: return "es_ES";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
699 case SUBLANG_SPANISH_MEXICAN: return "es_MX";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
700 case SUBLANG_SPANISH_MODERN:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
701 return "es_ES@modern"; /* not seen on Unix */
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
702 case SUBLANG_SPANISH_GUATEMALA: return "es_GT";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
703 case SUBLANG_SPANISH_COSTA_RICA: return "es_CR";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
704 case SUBLANG_SPANISH_PANAMA: return "es_PA";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
705 case SUBLANG_SPANISH_DOMINICAN_REPUBLIC: return "es_DO";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
706 case SUBLANG_SPANISH_VENEZUELA: return "es_VE";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
707 case SUBLANG_SPANISH_COLOMBIA: return "es_CO";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
708 case SUBLANG_SPANISH_PERU: return "es_PE";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
709 case SUBLANG_SPANISH_ARGENTINA: return "es_AR";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
710 case SUBLANG_SPANISH_ECUADOR: return "es_EC";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
711 case SUBLANG_SPANISH_CHILE: return "es_CL";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
712 case SUBLANG_SPANISH_URUGUAY: return "es_UY";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
713 case SUBLANG_SPANISH_PARAGUAY: return "es_PY";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
714 case SUBLANG_SPANISH_BOLIVIA: return "es_BO";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
715 case SUBLANG_SPANISH_EL_SALVADOR: return "es_SV";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
716 case SUBLANG_SPANISH_HONDURAS: return "es_HN";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
717 case SUBLANG_SPANISH_NICARAGUA: return "es_NI";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
718 case SUBLANG_SPANISH_PUERTO_RICO: return "es_PR";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
719 }
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
720 return "es";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
721 case 0x30: /* SUTU */ return "bnt_TZ";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
722 case LANG_SWAHILI: return "sw_KE";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
723 case LANG_SWEDISH:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
724 switch (sub)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
725 {
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
726 case SUBLANG_DEFAULT: return "sv_SE";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
727 case SUBLANG_SWEDISH_FINLAND: return "sv_FI";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
728 }
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
729 return "sv";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
730 case LANG_SYRIAC: return "syr_TR"; /* An extinct language. */
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
731 case 0x64: /* TAGALOG */ return "tl_PH";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
732 case 0x28: /* TAJIK */ return "tg_TJ";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
733 case 0x5f: /* TAMAZIGHT */ return "ber_MA";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
734 case LANG_TAMIL:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
735 return "ta"; /* Ambiguous: could be "ta_IN" or "ta_LK" or "ta_SG". */
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
736 case LANG_TATAR: return "tt_RU";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
737 case LANG_TELUGU: return "te_IN";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
738 case LANG_THAI: return "th_TH";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
739 case 0x51: /* TIBETAN */ return "bo_CN";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
740 case 0x73: /* TIGRINYA */ return "ti_ET";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
741 case 0x31: /* TSONGA */ return "ts_ZA";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
742 case LANG_TURKISH: return "tr_TR";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
743 case 0x42: /* TURKMEN */ return "tk_TM";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
744 case LANG_UKRAINIAN: return "uk_UA";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
745 case LANG_URDU:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
746 switch (sub)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
747 {
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
748 case SUBLANG_URDU_PAKISTAN: return "ur_PK";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
749 case SUBLANG_URDU_INDIA: return "ur_IN";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
750 }
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
751 return "ur";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
752 case LANG_UZBEK:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
753 switch (sub)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
754 {
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
755 /* FIXME: Adjust this when Uzbek locales appear on Unix. */
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
756 case SUBLANG_UZBEK_LATIN: return "uz_UZ@latin";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
757 case SUBLANG_UZBEK_CYRILLIC: return "uz_UZ@cyrillic";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
758 }
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
759 return "uz";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
760 case 0x33: /* VENDA */ return "ven_ZA";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
761 case LANG_VIETNAMESE: return "vi_VN";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
762 case 0x52: /* WELSH */ return "cy_GB";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
763 case 0x34: /* XHOSA */ return "xh_ZA";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
764 case 0x78: /* YI */ return "sit_CN";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
765 case 0x3d: /* YIDDISH */ return "yi_IL";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
766 case 0x6a: /* YORUBA */ return "yo_NG";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
767 case 0x35: /* ZULU */ return "zu_ZA";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
768 default: return "C";
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
769 }
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
770
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
771 #endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
772 }