Doxygen
Loading...
Searching...
No Matches
translator_adapter.h
Go to the documentation of this file.
1#ifndef TRANSLATOR_ADAPTER_H
2#define TRANSLATOR_ADAPTER_H
3
4#include "version.h"
5#include "translator.h"
6
7/** Base of the translator adapter tree.
8 *
9 * This abstract class provides access to the english
10 * translations, to be used as a substitute for not implemented
11 * local translations.
12 */
14{
15 protected:
17
18 /*! An auxiliary inline method used by the updateNeededMessage()
19 * for building a warning message.
20 */
21 inline QCString createUpdateNeededMessage(const QCString & languageName,
22 const QCString & versionString)
23 {
24 return QCString("The selected output language \"")
25 + languageName
26 + "\" has not been updated\nsince "
27 + versionString
28 + ". As a result some sentences may appear in English.\n\n";
29 }
30 public:
31 /*! This method is used to generate a warning message to signal
32 * the user that the translation of his/her language of choice
33 * needs updating. It must be implemented by the translator
34 * adapter class (pure virtual).
35 *
36 * \sa createUpdateNeededMessage()
37 */
38 virtual QCString updateNeededMessage() override = 0;
39};
40
42{
43 public:
45 { return createUpdateNeededMessage(idLanguage(),"release 1.11.0"); }
47 { return english.trImportant(); }
48};
49
51{
52 public:
54 { return createUpdateNeededMessage(idLanguage(),"release 1.10.0"); }
56 { return english.trCopyToClipboard(); }
57};
58
60{
61 public:
63 { return createUpdateNeededMessage(idLanguage(),"release 1.9.8"); }
64
65 QCString trTopics() override
66 { return english.trTopics(); }
68 { return english.trTopicDocumentation(); }
70 { return english.trTopicList(); }
72 { return english.trTopicIndex(); }
74 { return english.trTopicListDescription(); }
76 { return english.trModuleMembersDescriptionTotal(hl); }
78 { return english.trExportedModules(); }
79
80};
81
83{
84 public:
86 { return createUpdateNeededMessage(idLanguage(),"release 1.9.6"); }
87
88 /*! Small trick to use the original functions as the wording has been changed */
90 { return trRelatedFunctions(); }
95
97 { return english.trCompoundType(compType, lang); }
98
100 {
102 {
103 return trFileMembersDescription(Config_getBool(EXTRACT_ALL));
104 }
105 else
106 {
107 // hack to work around a mozilla bug, which refuses to switch to
108 // normal lists otherwise
109 return " ";
110 }
111 }
113 {
115 {
116 return trCompoundMembersDescription(Config_getBool(EXTRACT_ALL));
117 }
118 else
119 {
120 // hack to work around a mozilla bug, which refuses to switch to
121 // normal lists otherwise
122 return " ";
123 }
124 }
126 {
128 {
129 return trNamespaceMemberDescription(Config_getBool(EXTRACT_ALL));
130 }
131 else
132 {
133 // hack to work around a mozilla bug, which refuses to switch to
134 // normal lists otherwise
135 return " ";
136 }
137 }
138
140 { return english.trDefinition(); }
142 { return english.trDeclaration(); }
143};
144
146{
147 public:
149 { return createUpdateNeededMessage(idLanguage(),"release 1.9.5"); }
150
152 { return english.trFlowchart(); }
153};
154
156{
157 public:
159 { return createUpdateNeededMessage(idLanguage(),"release 1.9.4"); }
160
162 { return english.trPackageList(); }
163};
164
166{
167 public:
169 { return createUpdateNeededMessage(idLanguage(),"release 1.9.2"); }
170
171 QCString trConcept(bool first_capital,bool singular) override
172 { return english.trConcept(first_capital,singular); }
173
174 QCString trConceptReference(const QCString &conceptName) override
175 { return english.trConceptReference(conceptName); }
176
178 { return english.trConceptList(); }
179
181 { return english.trConceptIndex(); }
182
184 { return english.trConceptDocumentation(); }
185
186 QCString trConceptListDescription(bool extractAll) override
187 { return english.trConceptListDescription(extractAll); }
188
190 { return english.trConceptDefinition(); }
191};
192
194{
195 public:
197 { return createUpdateNeededMessage(idLanguage(),"release 1.8.19"); }
198
200 { return english.trDesignUnitDocumentation(); }
201};
202
204{
205 public:
207 { return createUpdateNeededMessage(idLanguage(),"release 1.8.15"); }
208
210 { return english.trDesignUnitHierarchy(); }
211
213 { return english.trDesignUnitList(); }
214
216 { return english.trDesignUnitMembers(); }
217
219 { return english.trDesignUnitListDescription(); }
220
222 { return english.trDesignUnitIndex(); }
223
225 { return english.trDesignUnits(); }
226
228 { return english.trFunctionAndProc(); }
229
230 QCString trVhdlType(VhdlSpecifier type,bool single) override
231 { return english.trVhdlType(type,single); }
232
233 QCString trCustomReference(const QCString &name) override
234 { return english.trCustomReference(name); }
235
237 { return english.trConstants(); }
238
240 { return english.trConstantDocumentation(); }
241
243 { return english.trSequences(); }
244
246 { return english.trSequenceDocumentation(); }
247
249 { return english.trDictionaries(); }
250
252 { return english.trDictionaryDocumentation(); }
253
255 { return english.trSliceInterfaces(); }
256
258 { return english.trInterfaceIndex(); }
259
261 { return english.trInterfaceList(); }
262
264 { return english.trInterfaceListDescription(); }
265
267 { return english.trInterfaceHierarchy(); }
268
270 { return english.trInterfaceHierarchyDescription(); }
271
273 { return english.trInterfaceDocumentation(); }
274
276 { return english.trStructs(); }
277
279 { return english.trStructIndex(); }
280
282 { return english.trStructList(); }
283
285 { return english.trStructListDescription(); }
286
288 { return english.trStructDocumentation(); }
289
291 { return english.trExceptionIndex(); }
292
294 { return english.trExceptionList(); }
295
297 { return english.trExceptionListDescription(); }
298
300 { return english.trExceptionHierarchy(); }
301
303 { return english.trExceptionHierarchyDescription(); }
304
306 { return english.trExceptionDocumentation(); }
307
308 QCString trCompoundReferenceSlice(const QCString &clName, ClassDef::CompoundType compType, bool isLocal) override
309 { return english.trCompoundReferenceSlice(clName,compType,isLocal); }
310
312 { return english.trOperations(); }
313
315 { return english.trOperationDocumentation(); }
316
318 { return english.trDataMembers(); }
319
321 { return english.trDataMemberDocumentation(); }
322};
323
325{
326 public:
328 { return createUpdateNeededMessage(idLanguage(),"release 1.8.4"); }
329
331 { return english.trInterfaces(); }
332
334 { return english.trServices(); }
335
337 { return english.trConstantGroups(); }
338
339 QCString trConstantGroupReference(const QCString &namespaceName) override
340 { return english.trConstantGroupReference(namespaceName); }
341
342 QCString trServiceReference(const QCString &sName) override
343 { return english.trServiceReference(sName); }
344
346 { return english.trSingletonReference(sName); }
347
349 { return english.trServiceGeneratedFromFiles(single); }
350
352 { return english.trSingletonGeneratedFromFiles(single); }
353};
354
356{
357 public:
359 { return createUpdateNeededMessage(idLanguage(),"release 1.8.2"); }
360
362 { return english.trPanelSynchronisationTooltip(enable); }
363
365 { return english.trProvidedByCategory(); }
366
368 { return english.trExtendsClass(); }
369
371 { return english.trClassMethods(); }
372
374 { return english.trInstanceMethods(); }
375
377 { return english.trMethodDocumentation(); }
378};
379
380
381/** Adapter class for languages that only contain translations up to
382 * version 1.8.0.
383 */
385{
386 public:
388 { return createUpdateNeededMessage(idLanguage(),"release 1.8.0"); }
389
391 { return english.trDetailLevel(); }
392
394 { return english.trTemplateParameters(); }
395
396 QCString trAndMore(const QCString &number) override
397 { return english.trAndMore(number); }
398
399 QCString trEnumGeneratedFromFiles(bool single) override
400 { return english.trEnumGeneratedFromFiles(single); }
401
402 QCString trEnumReference(const QCString &name) override
403 { return english.trEnumReference(name); }
404
405 QCString trInheritedFrom(const QCString &members,const QCString &what) override
406 { return english.trInheritedFrom(members,what); }
407
409 { return english.trAdditionalInheritedMembers(); }
410
411};
412
413/** Adapter class for languages that only contain translations up to
414 * version 1.7.5.
415 */
417{
418 public:
420 { return createUpdateNeededMessage(idLanguage(),"release 1.7.5"); }
421
423 { return english.trCiteReferences(); }
424
426 { return english.trCopyright(); }
427
428 QCString trDirDepGraph(const QCString &name) override
429 { return english.trDirDepGraph(name); }
430
431 QCString trFileIn(const QCString &name) override
432 { return english.trFileIn(name); }
433 QCString trIncludesFileIn(const QCString &name) override
434 { return english.trIncludesFileIn(name); }
435 QCString trDateTime(int year,int month,int day,int dayOfWeek,
436 int hour,int minutes,int seconds,
437 DateTimeType includeTime) override
438 { return english.trDateTime(year,month,day,dayOfWeek,hour,minutes,seconds,includeTime); }
439 QCString trDayPeriod(bool period) override
440 { return english.trDayPeriod(period); }
441
442};
443
444/** Adapter class for languages that only contain translations up to
445 * version 1.6.0.
446 */
448{
449 public:
451 { return createUpdateNeededMessage(idLanguage(),"release 1.6.0"); }
452
453 QCString trDirRelation(const QCString &name) override
454 { return english.trDirRelation(name); }
455
457 { return english.trLoading(); }
458
460 { return english.trGlobalNamespace(); }
461
463 { return english.trSearching(); }
464
466 { return english.trNoMatches(); }
467
469 { return english.trMemberFunctionDocumentationFortran(); }
470
472 { return english.trCompoundListFortran(); }
473
475 { return english.trCompoundMembersFortran(); }
476
478 { return english.trCompoundListDescriptionFortran(); }
479
481 { return english.trCompoundMembersDescriptionFortran(extractAll); }
482
484 { return english.trCompoundIndexFortran(); }
485
487 { return english.trTypeDocumentation(); }
488
490 { return english.trSubprograms(); }
491
493 { return english.trSubprogramDocumentation(); }
494
496 { return english.trDataTypes(); }
497
499 { return english.trModulesList(); }
500
501 QCString trModulesListDescription(bool extractAll) override
502 { return english.trModulesListDescription(extractAll); }
503
505 ClassDef::CompoundType compType,
506 bool isTemplate) override
507 { return english.trCompoundReferenceFortran(clName,compType,isTemplate); }
508
509 QCString trModuleReference(const QCString &namespaceName) override
510 { return english.trModuleReference(namespaceName); }
511
513 { return english.trModulesMembers(); }
514
515 QCString trModulesMemberDescription(bool extractAll) override
516 { return english.trModulesMemberDescription(extractAll); }
517
519 { return english.trModulesIndex(); }
520
521 QCString trModule(bool first_capital, bool singular) override
522 { return english.trModule(first_capital,singular); }
523
525 bool single) override
526 { return english.trGeneratedFromFilesFortran(compType,single); }
527
528 QCString trType(bool first_capital, bool singular) override
529 { return english.trType(first_capital,singular); }
530
531 QCString trSubprogram(bool first_capital, bool singular) override
532 { return english.trSubprogram(first_capital,singular); }
533
535 { return english.trTypeConstraints(); }
536};
537
538/** Adapter class for languages that only contain translations up to
539 * version 1.4.6
540 */
542{
543 public:
545 { return createUpdateNeededMessage(idLanguage(),"release 1.4.6"); }
547 { return english.trCallerGraph(); }
549 { return english.trEnumerationValueDocumentation(); }
550};
551
552#endif
CompoundType
The various compound types.
Definition classdef.h:109
This is an alternative implementation of QCString.
Definition qcstring.h:101
QCString trCopyToClipboard() override
QCString updateNeededMessage() override
QCString trImportant() override
QCString updateNeededMessage() override
Adapter class for languages that only contain translations up to version 1.4.6.
QCString trEnumerationValueDocumentation() override
QCString trCallerGraph() override
QCString updateNeededMessage() override
Adapter class for languages that only contain translations up to version 1.6.0.
QCString trCompoundMembersDescriptionFortran(bool extractAll) override
QCString trSubprogram(bool first_capital, bool singular) override
QCString trCompoundListDescriptionFortran() override
QCString trModulesListDescription(bool extractAll) override
QCString trModulesIndex() override
QCString trGeneratedFromFilesFortran(ClassDef::CompoundType compType, bool single) override
QCString trModuleReference(const QCString &namespaceName) override
QCString trGlobalNamespace() override
QCString trType(bool first_capital, bool singular) override
QCString trDataTypes() override
QCString trCompoundIndexFortran() override
QCString trModulesList() override
QCString trModule(bool first_capital, bool singular) override
QCString trSubprogramDocumentation() override
QCString updateNeededMessage() override
QCString trCompoundReferenceFortran(const QCString &clName, ClassDef::CompoundType compType, bool isTemplate) override
QCString trSubprograms() override
QCString trCompoundListFortran() override
QCString trMemberFunctionDocumentationFortran() override
QCString trCompoundMembersFortran() override
QCString trModulesMemberDescription(bool extractAll) override
QCString trModulesMembers() override
QCString trSearching() override
QCString trDirRelation(const QCString &name) override
QCString trTypeDocumentation() override
QCString trLoading() override
QCString trTypeConstraints() override
QCString trNoMatches() override
Adapter class for languages that only contain translations up to version 1.7.5.
QCString trCopyright() override
QCString trDateTime(int year, int month, int day, int dayOfWeek, int hour, int minutes, int seconds, DateTimeType includeTime) override
QCString updateNeededMessage() override
QCString trCiteReferences() override
QCString trIncludesFileIn(const QCString &name) override
QCString trDirDepGraph(const QCString &name) override
QCString trDayPeriod(bool period) override
QCString trFileIn(const QCString &name) override
Adapter class for languages that only contain translations up to version 1.8.0.
QCString trEnumGeneratedFromFiles(bool single) override
QCString trAdditionalInheritedMembers() override
QCString trAndMore(const QCString &number) override
QCString updateNeededMessage() override
QCString trDetailLevel() override
QCString trEnumReference(const QCString &name) override
QCString trInheritedFrom(const QCString &members, const QCString &what) override
QCString trTemplateParameters() override
QCString trStructs() override
QCString trDesignUnitMembers() override
QCString trCustomReference(const QCString &name) override
QCString trOperationDocumentation() override
QCString trSequenceDocumentation() override
QCString trDataMembers() override
QCString trStructDocumentation() override
QCString trDesignUnitList() override
QCString trSliceInterfaces() override
QCString trInterfaceListDescription() override
QCString trStructList() override
QCString trExceptionHierarchy() override
QCString trCompoundReferenceSlice(const QCString &clName, ClassDef::CompoundType compType, bool isLocal) override
QCString trFunctionAndProc() override
QCString trDictionaryDocumentation() override
QCString trExceptionListDescription() override
QCString trDictionaries() override
QCString trStructListDescription() override
QCString trOperations() override
QCString trSequences() override
QCString trExceptionIndex() override
QCString trVhdlType(VhdlSpecifier type, bool single) override
QCString trInterfaceList() override
QCString trDesignUnitIndex() override
QCString trStructIndex() override
QCString trInterfaceHierarchyDescription() override
QCString trExceptionList() override
QCString trDataMemberDocumentation() override
QCString trExceptionDocumentation() override
QCString trDesignUnitHierarchy() override
QCString trInterfaceHierarchy() override
QCString trDesignUnits() override
QCString trInterfaceDocumentation() override
QCString updateNeededMessage() override
QCString trConstants() override
QCString trExceptionHierarchyDescription() override
QCString trInterfaceIndex() override
QCString trConstantDocumentation() override
QCString trDesignUnitListDescription() override
QCString updateNeededMessage() override
QCString trDesignUnitDocumentation() override
QCString trProvidedByCategory() override
QCString trInstanceMethods() override
QCString trClassMethods() override
QCString trMethodDocumentation() override
QCString trExtendsClass() override
QCString trPanelSynchronisationTooltip(bool enable) override
QCString updateNeededMessage() override
QCString trSingletonReference(const QCString &sName) override
QCString trServices() override
QCString updateNeededMessage() override
QCString trInterfaces() override
QCString trServiceReference(const QCString &sName) override
QCString trConstantGroups() override
QCString trServiceGeneratedFromFiles(bool single) override
QCString trConstantGroupReference(const QCString &namespaceName) override
QCString trSingletonGeneratedFromFiles(bool single) override
QCString trConceptListDescription(bool extractAll) override
QCString trConceptIndex() override
QCString trConceptReference(const QCString &conceptName) override
QCString trConceptList() override
QCString trConcept(bool first_capital, bool singular) override
QCString trConceptDefinition() override
QCString updateNeededMessage() override
QCString trConceptDocumentation() override
QCString updateNeededMessage() override
QCString trPackageList() override
QCString trFlowchart() override
QCString updateNeededMessage() override
QCString trDefinition() override
QCString trNamespaceMembersDescriptionTotal(NamespaceMemberHighlight::Enum hl) override
QCString updateNeededMessage() override
QCString trFileMembersDescriptionTotal(FileMemberHighlight::Enum hl) override
QCString trRelatedSymbols() override
QCString trRelatedSymbolDocumentation() override
QCString trDeclaration() override
QCString trCompoundMembersDescriptionTotal(ClassMemberHighlight::Enum hl) override
QCString trCompoundType(ClassDef::CompoundType compType, SrcLangExt lang) override
QCString trRelatedSymbolsSubscript() override
QCString updateNeededMessage() override
QCString trExportedModules() override
QCString trTopics() override
QCString trModuleMembersDescriptionTotal(ModuleMemberHighlight::Enum hl) override
QCString trTopicList() override
QCString trTopicDocumentation() override
QCString trTopicIndex() override
QCString trTopicListDescription() override
Base of the translator adapter tree.
virtual QCString updateNeededMessage() override=0
QCString createUpdateNeededMessage(const QCString &languageName, const QCString &versionString)
TranslatorEnglish english
Abstract base class for all translatable text fragments.
Definition translator.h:29
virtual QCString trCompoundMembersDescription(bool extractAll)=0
virtual QCString trRelatedSubscript()=0
virtual QCString trFileMembersDescription(bool extractAll)=0
virtual QCString trNamespaceMemberDescription(bool extractAll)=0
virtual QCString trRelatedFunctionDocumentation()=0
virtual QCString idLanguage()=0
virtual QCString trRelatedFunctions()=0
#define Config_getBool(name)
Definition config.h:33
DateTimeType
Definition datetime.h:38
SrcLangExt
Language as given by extension.
Definition types.h:42
VhdlSpecifier
Definition types.h:548