Chameleon

Chameleon Svn Source Tree

Root/branches/xZenu/src/util/doxygen/src/translator_adapter.h

Source at commit 1322 created 9 years 5 months ago.
By meklort, Add doxygen to utils folder
1#ifndef TRANSLATOR_ADAPTER_H
2#define TRANSLATOR_ADAPTER_H
3
4#include "version.h"
5
6/*! \brief Base of the translator adapter tree
7 *
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 */
13class TranslatorAdapterBase : public Translator
14{
15 protected:
16 virtual ~TranslatorAdapterBase() {}
17 TranslatorEnglish english;
18
19 /*! An auxiliary inline method used by the updateNeededMessage()
20 * for building a warning message.
21 */
22 inline QCString createUpdateNeededMessage(const QCString & languageName,
23 const QCString & versionString)
24 {
25 return QCString("Warning: The selected output language \"")
26 + languageName
27 + "\" has not been updated\nsince "
28 + versionString
29 + ". As a result some sentences may appear in English.\n\n";
30 }
31
32 public:
33 /*! This method is used to generate a warning message to signal
34 * the user that the translation of his/her language of choice
35 * needs updating. It must be implemented by the translator
36 * adapter class (pure virtual).
37 *
38 * \sa createUpdateNeededMessage()
39 */
40 virtual QCString updateNeededMessage() = 0;
41
42};
43
44class TranslatorAdapter_1_6_3 : public TranslatorAdapterBase
45{
46 public:
47 virtual QCString updateNeededMessage()
48 { return createUpdateNeededMessage(idLanguage(),"release 1.6.3"); }
49
50 virtual QCString trDirDependency(const char *name)
51 { return english.trDirDependency(name); }
52 virtual QCString trFileIn(const char *name)
53 { return english.trFileIn(name); }
54 virtual QCString trIncludesFileIn(const char *name)
55 { return english.trIncludesFileIn(name); }
56 virtual QCString trDateTime(int year,int month,int day,int dayOfWeek,
57 int hour,int minutes,int seconds,
58 bool includeTime)
59 { return english.trDateTime(year,month,day,dayOfWeek,hour,minutes,seconds,includeTime); }
60};
61
62class TranslatorAdapter_1_6_0 : public TranslatorAdapter_1_6_3
63{
64 public:
65 virtual QCString updateNeededMessage()
66 { return createUpdateNeededMessage(idLanguage(),"release 1.6.0"); }
67
68 virtual QCString trDirRelation(const char *name)
69 { return english.trDirRelation(name); }
70
71 virtual QCString trLoading()
72 { return english.trLoading(); }
73
74 virtual QCString trGlobalNamespace()
75 { return english.trGlobalNamespace(); }
76
77 virtual QCString trSearching()
78 { return english.trSearching(); }
79
80 virtual QCString trNoMatches()
81 { return english.trNoMatches(); }
82};
83
84class TranslatorAdapter_1_5_4 : public TranslatorAdapter_1_6_0
85{
86 public:
87 virtual QCString updateNeededMessage()
88 { return createUpdateNeededMessage(idLanguage(),"release 1.5.4"); }
89
90 virtual QCString trMemberFunctionDocumentationFortran()
91 { return english.trMemberFunctionDocumentationFortran(); }
92
93 virtual QCString trCompoundListFortran()
94 { return english.trCompoundListFortran(); }
95
96 virtual QCString trCompoundMembersFortran()
97 { return english.trCompoundMembersFortran(); }
98
99 virtual QCString trCompoundListDescriptionFortran()
100 { return english.trCompoundListDescriptionFortran(); }
101
102 virtual QCString trCompoundMembersDescriptionFortran(bool extractAll)
103 { return english.trCompoundMembersDescriptionFortran(extractAll); }
104
105 virtual QCString trCompoundIndexFortran()
106 { return english.trCompoundIndexFortran(); }
107
108 virtual QCString trTypeDocumentation()
109 { return english.trTypeDocumentation(); }
110
111 virtual QCString trSubprograms()
112 { return english.trSubprograms(); }
113
114 virtual QCString trSubprogramDocumentation()
115 { return english.trSubprogramDocumentation(); }
116
117 virtual QCString trDataTypes()
118 { return english.trDataTypes(); }
119
120 virtual QCString trModulesList()
121 { return english.trModulesList(); }
122
123 virtual QCString trModulesListDescription(bool extractAll)
124 { return english.trModulesListDescription(extractAll); }
125
126 virtual QCString trCompoundReferenceFortran(const char *clName,
127 ClassDef::CompoundType compType,
128 bool isTemplate)
129 { return english.trCompoundReferenceFortran(clName,compType,isTemplate); }
130
131 virtual QCString trModuleReference(const char *namespaceName)
132 { return english.trModuleReference(namespaceName); }
133
134 virtual QCString trModulesMembers()
135 { return english.trModulesMembers(); }
136
137 virtual QCString trModulesMemberDescription(bool extractAll)
138 { return english.trModulesMemberDescription(extractAll); }
139
140 virtual QCString trModulesIndex()
141 { return english.trModulesIndex(); }
142
143 virtual QCString trModule(bool first_capital, bool singular)
144 { return english.trModule(first_capital,singular); }
145
146 virtual QCString trGeneratedFromFilesFortran(ClassDef::CompoundType compType,
147 bool single)
148 { return english.trGeneratedFromFilesFortran(compType,single); }
149
150 virtual QCString trType(bool first_capital, bool singular)
151 { return english.trType(first_capital,singular); }
152
153 virtual QCString trSubprogram(bool first_capital, bool singular)
154 { return english.trSubprogram(first_capital,singular); }
155
156 virtual QCString trTypeConstraints()
157 { return english.trTypeConstraints(); }
158};
159
160class TranslatorAdapter_1_4_6 : public TranslatorAdapter_1_5_4
161{
162 public:
163 virtual QCString updateNeededMessage()
164 { return createUpdateNeededMessage(idLanguage(),"release 1.4.6"); }
165
166 virtual QCString trCallerGraph()
167 {
168 return english.trCallerGraph();
169 }
170 virtual QCString trEnumerationValueDocumentation()
171 {
172 return english.trEnumerationValueDocumentation();
173 }
174};
175
176class TranslatorAdapter_1_4_1 : public TranslatorAdapter_1_4_6
177{
178 public:
179 virtual QCString updateNeededMessage()
180 { return createUpdateNeededMessage(idLanguage(),"release 1.4.1"); }
181
182 virtual QCString trOverloadText()
183 { return english.trOverloadText(); }
184};
185
186class TranslatorAdapter_1_3_9 : public TranslatorAdapter_1_4_1
187{
188 public:
189 virtual QCString updateNeededMessage()
190 { return createUpdateNeededMessage(idLanguage(),"release 1.3.9"); }
191
192 virtual QCString trDirIndex()
193 { return english.trDirIndex(); }
194 virtual QCString trDirDocumentation()
195 { return english.trDirDocumentation(); }
196 virtual QCString trDirectories()
197 { return english.trDirectories(); }
198 virtual QCString trDirDescription()
199 { return english.trDirDescription(); }
200 virtual QCString trDirReference(const char *dirName)
201 { return english.trDirReference(dirName); }
202 virtual QCString trDir(bool first_capital, bool singular)
203 { return english.trDir(first_capital,singular); }
204};
205
206class TranslatorAdapter_1_3_8 : public TranslatorAdapter_1_3_9
207{
208 public:
209 virtual QCString updateNeededMessage()
210 { return createUpdateNeededMessage(idLanguage(),"release 1.3.8"); }
211
212 virtual QCString trSourceFile(QCString& filename)
213 { return english.trSourceFile(filename); }
214};
215
216class TranslatorAdapter_1_3_3 : public TranslatorAdapter_1_3_8
217{
218 public:
219 virtual QCString updateNeededMessage()
220 { return createUpdateNeededMessage(idLanguage(),"release 1.3.3"); }
221
222 virtual QCString trSearchForIndex()
223 { return english.trSearchForIndex(); }
224 virtual QCString trSearchResultsTitle()
225 { return english.trSearchResultsTitle(); }
226 virtual QCString trSearchResults(int numDocuments)
227 { return english.trSearchResults(numDocuments); }
228 virtual QCString trSearchMatches()
229 { return english.trSearchMatches(); }
230
231};
232
233#endif
234
235

Archive Download this file

Revision: 1322