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:
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("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 
45 {
46  public:
48  { return createUpdateNeededMessage(idLanguage(),"release 1.8.4"); }
49 
51  { return english.trInterfaces(); }
52 
53  virtual QCString trServices()
54  { return english.trServices(); }
55 
57  { return english.trConstantGroups(); }
58 
59  virtual QCString trConstantGroupReference(const char *namespaceName)
60  { return english.trConstantGroupReference(namespaceName); }
61 
62  virtual QCString trServiceReference(const char *sName)
63  { return english.trServiceReference(sName); }
64 
65  virtual QCString trSingletonReference(const char *sName)
66  { return english.trSingletonReference(sName); }
67 
69  { return english.trServiceGeneratedFromFiles(single); }
70 
72  { return english.trSingletonGeneratedFromFiles(single); }
73 };
74 
76 {
77  public:
79  { return createUpdateNeededMessage(idLanguage(),"release 1.8.2"); }
80 
82  { return english.trPanelSynchronisationTooltip(enable); }
83 
85  { return english.trProvidedByCategory(); }
86 
88  { return english.trExtendsClass(); }
89 
91  { return english.trClassMethods(); }
92 
94  { return english.trInstanceMethods(); }
95 
97  { return english.trMethodDocumentation(); }
98 
100  { return english.trDesignOverview(); }
101 };
102 
103 
104 /** Adapter class for languages that only contain translations up to
105  * version 1.8.0.
106  */
108 {
109  public:
111  { return createUpdateNeededMessage(idLanguage(),"release 1.8.0"); }
112 
114  { return english.trDetailLevel(); }
115 
117  { return english.trTemplateParameters(); }
118 
119  virtual QCString trAndMore(const QCString &number)
120  { return english.trAndMore(number); }
121 
122  virtual QCString trEnumGeneratedFromFiles(bool single)
123  { return english.trEnumGeneratedFromFiles(single); }
124 
125  virtual QCString trEnumReference(const char *name)
126  { return english.trEnumReference(name); }
127 
128  virtual QCString trInheritedFrom(const char *members,const char *what)
129  { return english.trInheritedFrom(members,what); }
130 
133 
134 };
135 
136 /** Adapter class for languages that only contain translations up to
137  * version 1.7.5.
138  */
140 {
141  public:
143  { return createUpdateNeededMessage(idLanguage(),"release 1.7.5"); }
144 
146  { return english.trCiteReferences(); }
147 
149  { return english.trCopyright(); }
150 
151  virtual QCString trDirDepGraph(const char *name)
152  { return english.trDirDepGraph(name); }
153 };
154 
155 /** Adapter class for languages that only contain translations up to
156  * version 1.6.3.
157  */
159 {
160  public:
162  { return createUpdateNeededMessage(idLanguage(),"release 1.6.3"); }
163 
164  virtual QCString trFileIn(const char *name)
165  { return english.trFileIn(name); }
166  virtual QCString trIncludesFileIn(const char *name)
167  { return english.trIncludesFileIn(name); }
168  virtual QCString trDateTime(int year,int month,int day,int dayOfWeek,
169  int hour,int minutes,int seconds,
170  bool includeTime)
171  { return english.trDateTime(year,month,day,dayOfWeek,hour,minutes,seconds,includeTime); }
172 };
173 
174 /** Adapter class for languages that only contain translations up to
175  * version 1.6.0.
176  */
178 {
179  public:
181  { return createUpdateNeededMessage(idLanguage(),"release 1.6.0"); }
182 
183  virtual QCString trDirRelation(const char *name)
184  { return english.trDirRelation(name); }
185 
186  virtual QCString trLoading()
187  { return english.trLoading(); }
188 
190  { return english.trGlobalNamespace(); }
191 
193  { return english.trSearching(); }
194 
196  { return english.trNoMatches(); }
197 };
198 
199 /** Adapter class for languages that only contain translations up to
200  * version 1.5.4
201  */
203 {
204  public:
206  { return createUpdateNeededMessage(idLanguage(),"release 1.5.4"); }
207 
210 
212  { return english.trCompoundListFortran(); }
213 
215  { return english.trCompoundMembersFortran(); }
216 
219 
221  { return english.trCompoundMembersDescriptionFortran(extractAll); }
222 
224  { return english.trCompoundIndexFortran(); }
225 
227  { return english.trTypeDocumentation(); }
228 
230  { return english.trSubprograms(); }
231 
233  { return english.trSubprogramDocumentation(); }
234 
236  { return english.trDataTypes(); }
237 
239  { return english.trModulesList(); }
240 
241  virtual QCString trModulesListDescription(bool extractAll)
242  { return english.trModulesListDescription(extractAll); }
243 
244  virtual QCString trCompoundReferenceFortran(const char *clName,
245  ClassDef::CompoundType compType,
246  bool isTemplate)
247  { return english.trCompoundReferenceFortran(clName,compType,isTemplate); }
248 
249  virtual QCString trModuleReference(const char *namespaceName)
250  { return english.trModuleReference(namespaceName); }
251 
253  { return english.trModulesMembers(); }
254 
255  virtual QCString trModulesMemberDescription(bool extractAll)
256  { return english.trModulesMemberDescription(extractAll); }
257 
259  { return english.trModulesIndex(); }
260 
261  virtual QCString trModule(bool first_capital, bool singular)
262  { return english.trModule(first_capital,singular); }
263 
265  bool single)
266  { return english.trGeneratedFromFilesFortran(compType,single); }
267 
268  virtual QCString trType(bool first_capital, bool singular)
269  { return english.trType(first_capital,singular); }
270 
271  virtual QCString trSubprogram(bool first_capital, bool singular)
272  { return english.trSubprogram(first_capital,singular); }
273 
275  { return english.trTypeConstraints(); }
276 };
277 
278 /** Adapter class for languages that only contain translations up to
279  * version 1.4.6
280  */
282 {
283  public:
285  { return createUpdateNeededMessage(idLanguage(),"release 1.4.6"); }
286 
288  {
289  return english.trCallerGraph();
290  }
292  {
294  }
295 };
296 
297 #endif
298 
static QCString name
Definition: declinfo.cpp:673
virtual QCString trModulesMemberDescription(bool extractAll)
virtual QCString updateNeededMessage()
virtual QCString trMethodDocumentation()
virtual QCString trIncludesFileIn(const char *name)
virtual QCString trCompoundIndexFortran()
QCString createUpdateNeededMessage(const QCString &languageName, const QCString &versionString)
virtual QCString trDetailLevel()
virtual QCString trCiteReferences()
virtual QCString trModulesMemberDescription(bool extractAll)
virtual QCString updateNeededMessage()
virtual QCString trServiceGeneratedFromFiles(bool single)
virtual QCString trTypeConstraints()
virtual QCString trServiceGeneratedFromFiles(bool single)
virtual QCString trTypeConstraints()
virtual QCString trInheritedFrom(const char *members, const char *what)
virtual QCString trCiteReferences()
virtual QCString trSubprograms()
virtual QCString trConstantGroupReference(const char *namespaceName)
virtual QCString trDataTypes()
virtual QCString trModule(bool first_capital, bool singular)
virtual QCString trSingletonGeneratedFromFiles(bool single)
virtual QCString trExtendsClass()
virtual QCString updateNeededMessage()
virtual QCString updateNeededMessage()
virtual QCString trClassMethods()
virtual QCString trEnumReference(const char *name)
virtual QCString trCompoundMembersFortran()
virtual QCString trDirRelation(const char *name)
virtual QCString trFileIn(const char *name)
virtual QCString trConstantGroupReference(const char *namespaceName)
virtual QCString trCompoundMembersDescriptionFortran(bool extractAll)
virtual QCString trLoading()
virtual QCString trInstanceMethods()
virtual QCString trCompoundListFortran()
virtual QCString trGeneratedFromFilesFortran(ClassDef::CompoundType compType, bool single)
virtual QCString trModulesListDescription(bool extractAll)
virtual QCString trEnumerationValueDocumentation()
virtual QCString trDesignOverview()
virtual QCString trInterfaces()
virtual QCString trConstantGroups()
virtual QCString trGeneratedFromFilesFortran(ClassDef::CompoundType compType, bool single)
virtual QCString trModulesMembers()
virtual QCString updateNeededMessage()
virtual QCString trType(bool first_capital, bool singular)
virtual QCString updateNeededMessage()
virtual QCString trAdditionalInheritedMembers()
virtual QCString trAdditionalInheritedMembers()
virtual QCString trTemplateParameters()
virtual QCString trCopyright()
virtual QCString trTypeDocumentation()
virtual QCString trCompoundListFortran()
virtual QCString trDirRelation(const char *name)
virtual QCString trSubprogramDocumentation()
TranslatorEnglish english
virtual QCString trSingletonReference(const char *sName)
virtual QCString trCompoundMembersDescriptionFortran(bool extractAll)
virtual QCString trSearching()
virtual QCString trCompoundIndexFortran()
virtual QCString trSubprograms()
virtual QCString trModule(bool first_capital, bool singular)
virtual QCString trProvidedByCategory()
second seconds
Alias for common language habits.
Definition: spacetime.h:88
virtual QCString trCompoundListDescriptionFortran()
virtual QCString trConstantGroups()
virtual QCString trAndMore(const QCString &number)
virtual QCString updateNeededMessage()=0
virtual QCString trModulesList()
virtual QCString trModulesListDescription(bool extractAll)
char versionString[]
Definition: version.cpp:1
virtual QCString updateNeededMessage()
virtual QCString trExtendsClass()
virtual QCString trModulesIndex()
virtual QCString trServiceReference(const char *sName)
virtual QCString trInheritedFrom(const char *members, const char *what)
virtual QCString trAndMore(const QCString &number)
virtual QCString trPanelSynchronisationTooltip(bool enable)
virtual QCString trModuleReference(const char *namespaceName)
virtual QCString trModulesMembers()
virtual QCString trEnumGeneratedFromFiles(bool single)
virtual QCString trLoading()
virtual QCString trDateTime(int year, int month, int day, int dayOfWeek, int hour, int minutes, int seconds, bool includeTime)
virtual QCString trCompoundListDescriptionFortran()
virtual QCString trFileIn(const char *name)
virtual QCString trCopyright()
virtual QCString trGlobalNamespace()
virtual QCString trPanelSynchronisationTooltip(bool enable)
virtual QCString trCallerGraph()
virtual QCString trSubprogramDocumentation()
virtual QCString trEnumerationValueDocumentation()
virtual QCString trSubprogram(bool first_capital, bool singular)
virtual QCString trProvidedByCategory()
virtual QCString trEnumGeneratedFromFiles(bool single)
virtual QCString trMemberFunctionDocumentationFortran()
virtual QCString trSubprogram(bool first_capital, bool singular)
virtual QCString trTypeDocumentation()
virtual QCString trCompoundMembersFortran()
virtual QCString trServiceReference(const char *sName)
virtual QCString idLanguage()=0
virtual QCString trIncludesFileIn(const char *name)
virtual QCString trInstanceMethods()
CompoundType
Definition: classdef.h:63
virtual QCString trModuleReference(const char *namespaceName)
virtual QCString updateNeededMessage()
virtual QCString trDateTime(int year, int month, int day, int dayOfWeek, int hour, int minutes, int seconds, bool includeTime)
virtual QCString trCompoundReferenceFortran(const char *clName, ClassDef::CompoundType compType, bool isTemplate)
virtual QCString trDesignOverview()
virtual QCString trType(bool first_capital, bool singular)
virtual QCString trNoMatches()
virtual QCString trNoMatches()
virtual QCString trServices()
virtual QCString trCallerGraph()
virtual QCString trDirDepGraph(const char *name)
virtual QCString trClassMethods()
virtual QCString trGlobalNamespace()
virtual QCString trEnumReference(const char *name)
virtual QCString trServices()
virtual QCString trMemberFunctionDocumentationFortran()
virtual QCString trDetailLevel()
virtual QCString trSingletonGeneratedFromFiles(bool single)
virtual QCString trDataTypes()
virtual QCString trModulesIndex()
virtual QCString trDirDepGraph(const char *name)
virtual QCString trCompoundReferenceFortran(const char *clName, ClassDef::CompoundType compType, bool isTemplate)
virtual QCString trSingletonReference(const char *sName)
virtual QCString trMethodDocumentation()
virtual QCString trInterfaces()
virtual QCString trSearching()
virtual QCString trTemplateParameters()
virtual QCString trModulesList()