1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
|
#ifndef TRANSLATOR_ADAPTER_H
#define TRANSLATOR_ADAPTER_H
#include "version.h"
#include "translator.h"
/** Base of the translator adapter tree.
*
* This abstract class provides access to the english
* translations, to be used as a substitute for not implemented
* local translations.
*/
class TranslatorAdapterBase : public Translator
{
protected:
virtual ~TranslatorAdapterBase() {}
TranslatorEnglish english;
/*! An auxiliary inline method used by the updateNeededMessage()
* for building a warning message.
*/
inline QCString createUpdateNeededMessage(const QCString & languageName,
const QCString & versionString)
{
return QCString("The selected output language \"")
+ languageName
+ "\" has not been updated\nsince "
+ versionString
+ ". As a result some sentences may appear in English.\n\n";
}
public:
/*! This method is used to generate a warning message to signal
* the user that the translation of his/her language of choice
* needs updating. It must be implemented by the translator
* adapter class (pure virtual).
*
* \sa createUpdateNeededMessage()
*/
virtual QCString updateNeededMessage() = 0;
};
class TranslatorAdapter_1_8_15 : public TranslatorAdapterBase
{
public:
virtual QCString updateNeededMessage()
{ return createUpdateNeededMessage(idLanguage(),"release 1.8.15"); }
virtual QCString trDesignUnitHierarchy()
{ return english.trDesignUnitHierarchy(); }
virtual QCString trDesignUnitList()
{ return english.trDesignUnitList(); }
virtual QCString trDesignUnitMembers()
{ return english.trDesignUnitMembers(); }
virtual QCString trDesignUnitListDescription()
{ return english.trDesignUnitListDescription(); }
virtual QCString trDesignUnitIndex()
{ return english.trDesignUnitIndex(); }
virtual QCString trDesignUnits()
{ return english.trDesignUnits(); }
virtual QCString trFunctionAndProc()
{ return english.trFunctionAndProc(); }
virtual QCString trVhdlType(uint64 type,bool single)
{ return english.trVhdlType(type,single); }
virtual QCString trCustomReference(const char *name)
{ return english.trCustomReference(name); }
virtual QCString trConstants()
{ return english.trConstants(); }
virtual QCString trConstantDocumentation()
{ return english.trConstantDocumentation(); }
virtual QCString trSequences()
{ return english.trSequences(); }
virtual QCString trSequenceDocumentation()
{ return english.trSequenceDocumentation(); }
virtual QCString trDictionaries()
{ return english.trDictionaries(); }
virtual QCString trDictionaryDocumentation()
{ return english.trDictionaryDocumentation(); }
virtual QCString trSliceInterfaces()
{ return english.trSliceInterfaces(); }
virtual QCString trInterfaceIndex()
{ return english.trInterfaceIndex(); }
virtual QCString trInterfaceList()
{ return english.trInterfaceList(); }
virtual QCString trInterfaceListDescription()
{ return english.trInterfaceListDescription(); }
virtual QCString trInterfaceHierarchy()
{ return english.trInterfaceHierarchy(); }
virtual QCString trInterfaceHierarchyDescription()
{ return english.trInterfaceHierarchyDescription(); }
virtual QCString trInterfaceDocumentation()
{ return english.trInterfaceDocumentation(); }
virtual QCString trStructs()
{ return english.trStructs(); }
virtual QCString trStructIndex()
{ return english.trStructIndex(); }
virtual QCString trStructList()
{ return english.trStructList(); }
virtual QCString trStructListDescription()
{ return english.trStructListDescription(); }
virtual QCString trStructDocumentation()
{ return english.trStructDocumentation(); }
virtual QCString trExceptionIndex()
{ return english.trExceptionIndex(); }
virtual QCString trExceptionList()
{ return english.trExceptionList(); }
virtual QCString trExceptionListDescription()
{ return english.trExceptionListDescription(); }
virtual QCString trExceptionHierarchy()
{ return english.trExceptionHierarchy(); }
virtual QCString trExceptionHierarchyDescription()
{ return english.trExceptionHierarchyDescription(); }
virtual QCString trExceptionDocumentation()
{ return english.trExceptionDocumentation(); }
virtual QCString trCompoundReferenceSlice(const char *clName, ClassDef::CompoundType compType, bool isLocal)
{ return english.trCompoundReferenceSlice(clName,compType,isLocal); }
virtual QCString trOperations()
{ return english.trOperations(); }
virtual QCString trOperationDocumentation()
{ return english.trOperationDocumentation(); }
virtual QCString trDataMembers()
{ return english.trDataMembers(); }
virtual QCString trDataMemberDocumentation()
{ return english.trDataMemberDocumentation(); }
};
class TranslatorAdapter_1_8_4 : public TranslatorAdapter_1_8_15
{
public:
virtual QCString updateNeededMessage()
{ return createUpdateNeededMessage(idLanguage(),"release 1.8.4"); }
virtual QCString trInterfaces()
{ return english.trInterfaces(); }
virtual QCString trServices()
{ return english.trServices(); }
virtual QCString trConstantGroups()
{ return english.trConstantGroups(); }
virtual QCString trConstantGroupReference(const char *namespaceName)
{ return english.trConstantGroupReference(namespaceName); }
virtual QCString trServiceReference(const char *sName)
{ return english.trServiceReference(sName); }
virtual QCString trSingletonReference(const char *sName)
{ return english.trSingletonReference(sName); }
virtual QCString trServiceGeneratedFromFiles(bool single)
{ return english.trServiceGeneratedFromFiles(single); }
virtual QCString trSingletonGeneratedFromFiles(bool single)
{ return english.trSingletonGeneratedFromFiles(single); }
};
class TranslatorAdapter_1_8_2 : public TranslatorAdapter_1_8_4
{
public:
virtual QCString updateNeededMessage()
{ return createUpdateNeededMessage(idLanguage(),"release 1.8.2"); }
virtual QCString trPanelSynchronisationTooltip(bool enable)
{ return english.trPanelSynchronisationTooltip(enable); }
virtual QCString trProvidedByCategory()
{ return english.trProvidedByCategory(); }
virtual QCString trExtendsClass()
{ return english.trExtendsClass(); }
virtual QCString trClassMethods()
{ return english.trClassMethods(); }
virtual QCString trInstanceMethods()
{ return english.trInstanceMethods(); }
virtual QCString trMethodDocumentation()
{ return english.trMethodDocumentation(); }
virtual QCString trDesignOverview()
{ return english.trDesignOverview(); }
};
/** Adapter class for languages that only contain translations up to
* version 1.8.0.
*/
class TranslatorAdapter_1_8_0 : public TranslatorAdapter_1_8_2
{
public:
virtual QCString updateNeededMessage()
{ return createUpdateNeededMessage(idLanguage(),"release 1.8.0"); }
virtual QCString trDetailLevel()
{ return english.trDetailLevel(); }
virtual QCString trTemplateParameters()
{ return english.trTemplateParameters(); }
virtual QCString trAndMore(const QCString &number)
{ return english.trAndMore(number); }
virtual QCString trEnumGeneratedFromFiles(bool single)
{ return english.trEnumGeneratedFromFiles(single); }
virtual QCString trEnumReference(const char *name)
{ return english.trEnumReference(name); }
virtual QCString trInheritedFrom(const char *members,const char *what)
{ return english.trInheritedFrom(members,what); }
virtual QCString trAdditionalInheritedMembers()
{ return english.trAdditionalInheritedMembers(); }
};
/** Adapter class for languages that only contain translations up to
* version 1.7.5.
*/
class TranslatorAdapter_1_7_5 : public TranslatorAdapter_1_8_0
{
public:
virtual QCString updateNeededMessage()
{ return createUpdateNeededMessage(idLanguage(),"release 1.7.5"); }
virtual QCString trCiteReferences()
{ return english.trCiteReferences(); }
virtual QCString trCopyright()
{ return english.trCopyright(); }
virtual QCString trDirDepGraph(const char *name)
{ return english.trDirDepGraph(name); }
};
/** Adapter class for languages that only contain translations up to
* version 1.6.3.
*/
class TranslatorAdapter_1_6_3 : public TranslatorAdapter_1_7_5
{
public:
virtual QCString updateNeededMessage()
{ return createUpdateNeededMessage(idLanguage(),"release 1.6.3"); }
virtual QCString trFileIn(const char *name)
{ return english.trFileIn(name); }
virtual QCString trIncludesFileIn(const char *name)
{ return english.trIncludesFileIn(name); }
virtual QCString trDateTime(int year,int month,int day,int dayOfWeek,
int hour,int minutes,int seconds,
bool includeTime)
{ return english.trDateTime(year,month,day,dayOfWeek,hour,minutes,seconds,includeTime); }
};
/** Adapter class for languages that only contain translations up to
* version 1.6.0.
*/
class TranslatorAdapter_1_6_0 : public TranslatorAdapter_1_6_3
{
public:
virtual QCString updateNeededMessage()
{ return createUpdateNeededMessage(idLanguage(),"release 1.6.0"); }
virtual QCString trDirRelation(const char *name)
{ return english.trDirRelation(name); }
virtual QCString trLoading()
{ return english.trLoading(); }
virtual QCString trGlobalNamespace()
{ return english.trGlobalNamespace(); }
virtual QCString trSearching()
{ return english.trSearching(); }
virtual QCString trNoMatches()
{ return english.trNoMatches(); }
};
/** Adapter class for languages that only contain translations up to
* version 1.5.4
*/
class TranslatorAdapter_1_5_4 : public TranslatorAdapter_1_6_0
{
public:
virtual QCString updateNeededMessage()
{ return createUpdateNeededMessage(idLanguage(),"release 1.5.4"); }
virtual QCString trMemberFunctionDocumentationFortran()
{ return english.trMemberFunctionDocumentationFortran(); }
virtual QCString trCompoundListFortran()
{ return english.trCompoundListFortran(); }
virtual QCString trCompoundMembersFortran()
{ return english.trCompoundMembersFortran(); }
virtual QCString trCompoundListDescriptionFortran()
{ return english.trCompoundListDescriptionFortran(); }
virtual QCString trCompoundMembersDescriptionFortran(bool extractAll)
{ return english.trCompoundMembersDescriptionFortran(extractAll); }
virtual QCString trCompoundIndexFortran()
{ return english.trCompoundIndexFortran(); }
virtual QCString trTypeDocumentation()
{ return english.trTypeDocumentation(); }
virtual QCString trSubprograms()
{ return english.trSubprograms(); }
virtual QCString trSubprogramDocumentation()
{ return english.trSubprogramDocumentation(); }
virtual QCString trDataTypes()
{ return english.trDataTypes(); }
virtual QCString trModulesList()
{ return english.trModulesList(); }
virtual QCString trModulesListDescription(bool extractAll)
{ return english.trModulesListDescription(extractAll); }
virtual QCString trCompoundReferenceFortran(const char *clName,
ClassDef::CompoundType compType,
bool isTemplate)
{ return english.trCompoundReferenceFortran(clName,compType,isTemplate); }
virtual QCString trModuleReference(const char *namespaceName)
{ return english.trModuleReference(namespaceName); }
virtual QCString trModulesMembers()
{ return english.trModulesMembers(); }
virtual QCString trModulesMemberDescription(bool extractAll)
{ return english.trModulesMemberDescription(extractAll); }
virtual QCString trModulesIndex()
{ return english.trModulesIndex(); }
virtual QCString trModule(bool first_capital, bool singular)
{ return english.trModule(first_capital,singular); }
virtual QCString trGeneratedFromFilesFortran(ClassDef::CompoundType compType,
bool single)
{ return english.trGeneratedFromFilesFortran(compType,single); }
virtual QCString trType(bool first_capital, bool singular)
{ return english.trType(first_capital,singular); }
virtual QCString trSubprogram(bool first_capital, bool singular)
{ return english.trSubprogram(first_capital,singular); }
virtual QCString trTypeConstraints()
{ return english.trTypeConstraints(); }
};
/** Adapter class for languages that only contain translations up to
* version 1.4.6
*/
class TranslatorAdapter_1_4_6 : public TranslatorAdapter_1_5_4
{
public:
virtual QCString updateNeededMessage()
{ return createUpdateNeededMessage(idLanguage(),"release 1.4.6"); }
virtual QCString trCallerGraph()
{
return english.trCallerGraph();
}
virtual QCString trEnumerationValueDocumentation()
{
return english.trEnumerationValueDocumentation();
}
};
#endif
|