Doxygen
language.cpp
浏览该文件的文档.
1
/******************************************************************************
2
*
3
*
4
*
5
* Copyright (C) 1997-2015 by Dimitri van Heesch.
6
*
7
* Permission to use, copy, modify, and distribute this software and its
8
* documentation under the terms of the GNU General Public License is hereby
9
* granted. No representations are made about the suitability of this software
10
* for any purpose. It is provided "as is" without express or implied warranty.
11
* See the GNU General Public License for more details.
12
*
13
* Documents produced by Doxygen are derivative works derived from the
14
* input used in their production; they are not affected by this license.
15
*
16
*/
17
18
#include "
message.h
"
19
#include "
config.h
"
20
#include "
util.h
"
21
#include "
language.h
"
22
#include "lang_cfg.h"
23
#include "
vhdldocgen.h
"
24
#include "
translator.h
"
25
#include "
translator_en.h
"
26
#if !defined(ENGLISH_ONLY)
27
#include "
translator_adapter.h
"
28
#ifdef LANG_NL
29
#include "
translator_nl.h
"
30
#endif
31
#ifdef LANG_AM
32
#include "
translator_am.h
"
33
#endif
34
#ifdef LANG_SV
35
#include "
translator_sv.h
"
36
#endif
37
#ifdef LANG_CZ
38
#include "
translator_cz.h
"
39
#endif
40
#ifdef LANG_FR
41
#include "
translator_fr.h
"
42
#endif
43
#ifdef LANG_ID
44
#include "
translator_id.h
"
45
#endif
46
#ifdef LANG_IT
47
#include "
translator_it.h
"
48
#endif
49
#ifdef LANG_DE
50
#include "
translator_de.h
"
51
#endif
52
#ifdef LANG_JP
53
#include "
translator_jp.h
"
54
#endif
55
#ifdef LANG_JE
56
#include "
translator_je.h
"
57
#endif
58
#ifdef LANG_ES
59
#include "
translator_es.h
"
60
#endif
61
#ifdef LANG_EO
62
#include "
translator_eo.h
"
63
#endif
64
#ifdef LANG_FI
65
#include "
translator_fi.h
"
66
#endif
67
#ifdef LANG_RU
68
#include "
translator_ru.h
"
69
#endif
70
#ifdef LANG_HR
71
#include "
translator_hr.h
"
72
#endif
73
#ifdef LANG_PL
74
#include "
translator_pl.h
"
75
#endif
76
#ifdef LANG_PT
77
#include "
translator_pt.h
"
78
#endif
79
#ifdef LANG_HU
80
#include "
translator_hu.h
"
81
#endif
82
#ifdef LANG_KE
83
#include "
translator_ke.h
"
84
#endif
85
#ifdef LANG_KR
86
#include "
translator_kr.h
"
87
#endif
88
#ifdef LANG_RO
89
#include "
translator_ro.h
"
90
#endif
91
#ifdef LANG_SI
92
#include "
translator_si.h
"
93
#endif
94
#ifdef LANG_CN
95
#include "
translator_cn.h
"
96
#endif
97
#ifdef LANG_TW
98
#include "
translator_tw.h
"
99
#endif
100
#ifdef LANG_NO
101
#include "
translator_no.h
"
102
#endif
103
#ifdef LANG_BR
104
#include "
translator_br.h
"
105
#endif
106
#ifdef LANG_DK
107
#include "
translator_dk.h
"
108
#endif
109
#ifdef LANG_SK
110
#include "
translator_sk.h
"
111
#endif
112
#ifdef LANG_UA
113
#include "
translator_ua.h
"
114
#endif
115
#ifdef LANG_GR
116
#include "
translator_gr.h
"
117
#endif
118
#ifdef LANG_SR
119
#include "
translator_sr.h
"
120
#endif
121
#ifdef LANG_CA
122
#include "
translator_ca.h
"
123
#endif
124
//#ifdef LANG_JS
125
//#include "translator_js.h"
126
//#endif
127
#ifdef LANG_LT
128
#include "
translator_lt.h
"
129
#endif
130
#ifdef LANG_LV
131
#include "
translator_lv.h
"
132
#endif
133
#ifdef LANG_ZA
134
#include "
translator_za.h
"
135
#endif
136
#ifdef LANG_AR
137
#include "
translator_ar.h
"
138
#endif
139
#ifdef LANG_FA
140
#include "
translator_fa.h
"
141
#endif
142
#ifdef LANG_MK
143
#include "
translator_mk.h
"
144
#endif
145
#ifdef LANG_SC
146
#include "
translator_sc.h
"
147
#endif
148
#ifdef LANG_VI
149
#include "
translator_vi.h
"
150
#endif
151
#ifdef LANG_TR
152
#include "
translator_tr.h
"
153
#endif
154
#endif // !ENGLISH_ONLY
155
156
Translator
*
theTranslator
=0;
157
158
void
setTranslator
(OUTPUT_LANGUAGE_t langName)
159
{
160
switch
(langName)
161
{
162
case
OUTPUT_LANGUAGE_t::English:
theTranslator
=
new
TranslatorEnglish
;
break
;
163
#if !defined(ENGLISH_ONLY)
164
#ifdef LANG_ZA
165
case
OUTPUT_LANGUAGE_t::Afrikaans:
theTranslator
=
new
TranslatorAfrikaans
;
break
;
166
#endif
167
#ifdef LANG_AR
168
case
OUTPUT_LANGUAGE_t::Arabic:
theTranslator
=
new
TranslatorArabic
;
break
;
169
#endif
170
#ifdef LANG_AM
171
case
OUTPUT_LANGUAGE_t::Armenian:
theTranslator
=
new
TranslatorArmenian
;
break
;
172
#endif
173
#ifdef LANG_BR
174
case
OUTPUT_LANGUAGE_t::Brazilian:
theTranslator
=
new
TranslatorBrazilian
;
break
;
175
#endif
176
#ifdef LANG_CA
177
case
OUTPUT_LANGUAGE_t::Catalan:
theTranslator
=
new
TranslatorCatalan
;
break
;
178
#endif
179
#ifdef LANG_CN
180
case
OUTPUT_LANGUAGE_t::Chinese:
theTranslator
=
new
TranslatorChinese
;
break
;
181
#endif
182
#ifdef LANG_TW
183
case
OUTPUT_LANGUAGE_t::Chinese_Traditional:
theTranslator
=
new
TranslatorChinesetraditional
;
break
;
184
#endif
185
#ifdef LANG_HR
186
case
OUTPUT_LANGUAGE_t::Croatian:
theTranslator
=
new
TranslatorCroatian
;
break
;
187
#endif
188
#ifdef LANG_CZ
189
case
OUTPUT_LANGUAGE_t::Czech:
theTranslator
=
new
TranslatorCzech
;
break
;
190
#endif
191
#ifdef LANG_DK
192
case
OUTPUT_LANGUAGE_t::Danish:
theTranslator
=
new
TranslatorDanish
;
break
;
193
#endif
194
#ifdef LANG_NL
195
case
OUTPUT_LANGUAGE_t::Dutch:
theTranslator
=
new
TranslatorDutch
;
break
;
196
#endif
197
#ifdef LANG_EO
198
case
OUTPUT_LANGUAGE_t::Esperanto:
theTranslator
=
new
TranslatorEsperanto
;
break
;
199
#endif
200
#ifdef LANG_FA
201
case
OUTPUT_LANGUAGE_t::Farsi:
theTranslator
=
new
TranslatorPersian
;
break
;
202
#endif
203
#ifdef LANG_FI
204
case
OUTPUT_LANGUAGE_t::Finnish:
theTranslator
=
new
TranslatorFinnish
;
break
;
205
#endif
206
#ifdef LANG_FR
207
case
OUTPUT_LANGUAGE_t::French:
theTranslator
=
new
TranslatorFrench
;
break
;
208
#endif
209
#ifdef LANG_DE
210
case
OUTPUT_LANGUAGE_t::German:
theTranslator
=
new
TranslatorGerman
;
break
;
211
#endif
212
#ifdef LANG_GR
213
case
OUTPUT_LANGUAGE_t::Greek:
theTranslator
=
new
TranslatorGreek
;
break
;
214
#endif
215
#ifdef LANG_HU
216
case
OUTPUT_LANGUAGE_t::Hungarian:
theTranslator
=
new
TranslatorHungarian
;
break
;
217
#endif
218
#ifdef LANG_ID
219
case
OUTPUT_LANGUAGE_t::Indonesian:
theTranslator
=
new
TranslatorIndonesian
;
break
;
220
#endif
221
#ifdef LANG_IT
222
case
OUTPUT_LANGUAGE_t::Italian:
theTranslator
=
new
TranslatorItalian
;
break
;
223
#endif
224
#ifdef LANG_JP
225
case
OUTPUT_LANGUAGE_t::Japanese:
theTranslator
=
new
TranslatorJapanese
;
break
;
226
#endif
227
#ifdef LANG_JE
228
case
OUTPUT_LANGUAGE_t::Japanese_en:
theTranslator
=
new
TranslatorJapaneseEn
;
break
;
229
#endif
230
#ifdef LANG_KR
231
case
OUTPUT_LANGUAGE_t::Korean:
theTranslator
=
new
TranslatorKorean
;
break
;
232
#endif
233
#ifdef LANG_KE
234
case
OUTPUT_LANGUAGE_t::Korean_en:
theTranslator
=
new
TranslatorKoreanEn
;
break
;
235
#endif
236
#ifdef LANG_LV
237
case
OUTPUT_LANGUAGE_t::Latvian:
theTranslator
=
new
TranslatorLatvian
;
break
;
238
#endif
239
#ifdef LANG_LT
240
case
OUTPUT_LANGUAGE_t::Lithuanian:
theTranslator
=
new
TranslatorLithuanian
;
break
;
241
#endif
242
#ifdef LANG_MK
243
case
OUTPUT_LANGUAGE_t::Macedonian:
theTranslator
=
new
TranslatorMacedonian
;
break
;
244
#endif
245
#ifdef LANG_NO
246
case
OUTPUT_LANGUAGE_t::Norwegian:
theTranslator
=
new
TranslatorNorwegian
;
break
;
247
#endif
248
#ifdef LANG_FA
249
case
OUTPUT_LANGUAGE_t::Persian:
theTranslator
=
new
TranslatorPersian
;
break
;
250
#endif
251
#ifdef LANG_PL
252
case
OUTPUT_LANGUAGE_t::Polish:
theTranslator
=
new
TranslatorPolish
;
break
;
253
#endif
254
#ifdef LANG_PT
255
case
OUTPUT_LANGUAGE_t::Portuguese:
theTranslator
=
new
TranslatorPortuguese
;
break
;
256
#endif
257
#ifdef LANG_RO
258
case
OUTPUT_LANGUAGE_t::Romanian:
theTranslator
=
new
TranslatorRomanian
;
break
;
259
#endif
260
#ifdef LANG_RU
261
case
OUTPUT_LANGUAGE_t::Russian:
theTranslator
=
new
TranslatorRussian
;
break
;
262
#endif
263
#ifdef LANG_SR
264
case
OUTPUT_LANGUAGE_t::Serbian:
theTranslator
=
new
TranslatorSerbian
;
break
;
265
#endif
266
#ifdef LANG_SC
267
case
OUTPUT_LANGUAGE_t::Serbian_Cyrillic:
theTranslator
=
new
TranslatorSerbianCyrillic
;
break
;
268
#endif
269
#ifdef LANG_SK
270
case
OUTPUT_LANGUAGE_t::Slovak:
theTranslator
=
new
TranslatorSlovak
;
break
;
271
#endif
272
#ifdef LANG_SI
273
case
OUTPUT_LANGUAGE_t::Slovene:
theTranslator
=
new
TranslatorSlovene
;
break
;
274
#endif
275
#ifdef LANG_ES
276
case
OUTPUT_LANGUAGE_t::Spanish:
theTranslator
=
new
TranslatorSpanish
;
break
;
277
#endif
278
#ifdef LANG_SV
279
case
OUTPUT_LANGUAGE_t::Swedish:
theTranslator
=
new
TranslatorSwedish
;
break
;
280
#endif
281
#ifdef LANG_TR
282
case
OUTPUT_LANGUAGE_t::Turkish:
theTranslator
=
new
TranslatorTurkish
;
break
;
283
#endif
284
#ifdef LANG_UA
285
case
OUTPUT_LANGUAGE_t::Ukrainian:
theTranslator
=
new
TranslatorUkrainian
;
break
;
286
#endif
287
#ifdef LANG_VI
288
case
OUTPUT_LANGUAGE_t::Vietnamese:
theTranslator
=
new
TranslatorVietnamese
;
break
;
289
#endif
290
#endif
291
}
292
}
TranslatorFinnish
Definition:
translator_fi.h:89
TranslatorRomanian
Definition:
translator_ro.h:45
setTranslator
void setTranslator(OUTPUT_LANGUAGE_t langName)
Definition:
language.cpp:158
translator_cn.h
TranslatorMacedonian
Definition:
translator_mk.h:35
TranslatorSlovak
Definition:
translator_sk.h:35
translator_ke.h
TranslatorBrazilian
Definition:
translator_br.h:57
TranslatorPersian
Definition:
translator_fa.h:42
TranslatorNorwegian
Definition:
translator_no.h:46
TranslatorCzech
Definition:
translator_cz.h:90
translator_pt.h
translator_sv.h
translator_ar.h
translator_adapter.h
translator_fi.h
TranslatorDutch
Definition:
translator_nl.h:21
TranslatorKoreanEn
Definition:
translator_ke.h:31
translator_za.h
translator_es.h
translator_tw.h
TranslatorFrench
Definition:
translator_fr.h:106
TranslatorKorean
Definition:
translator_kr.h:51
translator_gr.h
translator_hu.h
TranslatorPortuguese
Definition:
translator_pt.h:68
TranslatorAfrikaans
Definition:
translator_za.h:29
translator_id.h
TranslatorCatalan
Definition:
translator_ca.h:43
translator_jp.h
message.h
Translator
Abstract base class for all translatable text fragments.
Definition:
translator.h:25
translator_sr.h
translator_am.h
translator_fa.h
TranslatorGreek
Definition:
translator_gr.h:51
TranslatorDanish
Definition:
translator_dk.h:90
theTranslator
Translator * theTranslator
Definition:
language.cpp:156
TranslatorArmenian
Definition:
translator_am.h:25
translator_ca.h
TranslatorSwedish
Definition:
translator_sv.h:159
language.h
translator_pl.h
TranslatorEnglish
Definition:
translator_en.h:43
TranslatorChinese
Definition:
translator_cn.h:27
TranslatorCroatian
Definition:
translator_hr.h:86
TranslatorEsperanto
Definition:
translator_eo.h:45
translator_dk.h
Danish translation
translator_br.h
translator_sk.h
translator_de.h
translator_ru.h
TranslatorIndonesian
Definition:
translator_id.h:27
translator_eo.h
translator_je.h
translator_no.h
TranslatorRussian
Definition:
translator_ru.h:29
translator_it.h
translator_vi.h
TranslatorSpanish
Definition:
translator_es.h:37
TranslatorSerbianCyrillic
Definition:
translator_sc.h:43
TranslatorArabic
Definition:
translator_ar.h:33
translator_si.h
TranslatorSlovene
Definition:
translator_si.h:24
TranslatorLatvian
Definition:
translator_lv.h:51
translator_hr.h
translator_ua.h
translator_cz.h
TranslatorTurkish
Definition:
translator_tr.h:43
config.h
translator_sc.h
TranslatorChinesetraditional
Definition:
translator_tw.h:44
TranslatorUkrainian
Definition:
translator_ua.h:22
TranslatorSerbian
Definition:
translator_sr.h:27
translator_mk.h
translator_tr.h
translator_nl.h
TranslatorHungarian
Definition:
translator_hu.h:55
translator.h
TranslatorItalian
Definition:
translator_it.h:92
translator_kr.h
TranslatorLithuanian
Definition:
translator_lt.h:33
translator_ro.h
translator_en.h
util.h
A bunch of utility functions.
translator_lt.h
TranslatorJapaneseEn
Definition:
translator_je.h:32
translator_fr.h
TranslatorVietnamese
Definition:
translator_vi.h:50
TranslatorPolish
Definition:
translator_pl.h:25
vhdldocgen.h
TranslatorGerman
Definition:
translator_de.h:146
TranslatorJapanese
Definition:
translator_jp.h:72
translator_lv.h
src
language.cpp
生成于 2021年 十一月 27日 星期六 08:40:53 , 为 Doxygen使用
1.8.17