translator_adapter.h

Go to the documentation of this file.
00001 #ifndef TRANSLATOR_ADAPTER_H
00002 #define TRANSLATOR_ADAPTER_H
00003 
00004 #include "version.h"
00005 
00013 class TranslatorAdapterBase : public Translator
00014 {
00015   protected:
00016     virtual ~TranslatorAdapterBase() {}
00017     TranslatorEnglish english;
00018 
00022     inline QCString createUpdateNeededMessage(const QCString & languageName,
00023                                               const QCString & versionString)
00024     {
00025       return QCString("Warning: The selected output language \"")
00026              + languageName 
00027              + "\" has not been updated\nsince "
00028              + versionString
00029              + ".  As a result some sentences may appear in English.\n\n";
00030     }
00031   
00032   public:
00040     virtual QCString updateNeededMessage() = 0;
00041 
00042 };
00043 
00044 class TranslatorAdapter_1_5_4 : public TranslatorAdapterBase
00045 {
00046   public:
00047     virtual QCString updateNeededMessage()
00048     { return createUpdateNeededMessage(idLanguage(),"release 1.5.4"); }
00049 
00050     virtual QCString trMemberFunctionDocumentationFortran()
00051     { return english.trMemberFunctionDocumentationFortran(); }
00052 
00053     virtual QCString trCompoundListFortran()
00054     { return english.trCompoundListFortran(); }
00055 
00056     virtual QCString trCompoundMembersFortran()
00057     { return english.trCompoundMembersFortran(); }
00058 
00059     virtual QCString trCompoundListDescriptionFortran()
00060     { return english.trCompoundListDescriptionFortran(); }
00061 
00062     virtual QCString trCompoundMembersDescriptionFortran(bool extractAll)
00063     { return english.trCompoundMembersDescriptionFortran(extractAll); }
00064 
00065     virtual QCString trCompoundIndexFortran()
00066     { return english.trCompoundIndexFortran(); }
00067 
00068     virtual QCString trTypeDocumentation()
00069     { return english.trTypeDocumentation(); }
00070 
00071     virtual QCString trSubprograms()
00072     { return english.trSubprograms(); }
00073 
00074     virtual QCString trSubprogramDocumentation()
00075     { return english.trSubprogramDocumentation(); }
00076 
00077     virtual QCString trDataTypes()
00078     { return english.trDataTypes(); }
00079 
00080     virtual QCString trModulesList()
00081     { return english.trModulesList(); }
00082 
00083     virtual QCString trModulesListDescription(bool extractAll)
00084     { return english.trModulesListDescription(extractAll); }
00085 
00086     virtual QCString trCompoundReferenceFortran(const char *clName,
00087                                  ClassDef::CompoundType compType,
00088                                  bool isTemplate)
00089     { return english.trCompoundReferenceFortran(clName,compType,isTemplate); }
00090 
00091     virtual QCString trModuleReference(const char *namespaceName)
00092     { return english.trModuleReference(namespaceName); }
00093 
00094     virtual QCString trModulesMembers()
00095     { return english.trModulesMembers(); }
00096 
00097     virtual QCString trModulesMemberDescription(bool extractAll)
00098     { return english.trModulesMemberDescription(extractAll); }
00099 
00100     virtual QCString trModulesIndex()
00101     { return english.trModulesIndex(); }
00102 
00103     virtual QCString trModule(bool first_capital, bool singular)
00104     { return english.trModule(first_capital,singular); }
00105 
00106     virtual QCString trGeneratedFromFilesFortran(ClassDef::CompoundType compType,
00107                      bool single)
00108     { return english.trGeneratedFromFilesFortran(compType,single); }
00109 
00110     virtual QCString trType(bool first_capital, bool singular)
00111     { return english.trType(first_capital,singular); }
00112 
00113     virtual QCString trSubprogram(bool first_capital, bool singular)
00114     { return english.trSubprogram(first_capital,singular); }
00115 
00116     virtual QCString trTypeConstraints()
00117     { return english.trTypeConstraints(); }
00118 };
00119 
00120 class TranslatorAdapter_1_4_6 : public TranslatorAdapter_1_5_4
00121 {
00122   public:
00123     virtual QCString updateNeededMessage()
00124     { return createUpdateNeededMessage(idLanguage(),"release 1.4.6"); }
00125 
00126     virtual QCString trCallerGraph()
00127     {
00128       return english.trCallerGraph();
00129     }
00130     virtual QCString trEnumerationValueDocumentation()
00131     {
00132       return english.trEnumerationValueDocumentation();
00133     }
00134 };
00135 
00136 class TranslatorAdapter_1_4_1 : public TranslatorAdapter_1_4_6
00137 {
00138   public:
00139     virtual QCString updateNeededMessage()
00140     { return createUpdateNeededMessage(idLanguage(),"release 1.4.1"); }
00141     
00142     virtual QCString trOverloadText()
00143     { return english.trOverloadText(); }
00144 };
00145 
00146 class TranslatorAdapter_1_3_9 : public TranslatorAdapter_1_4_1
00147 {
00148   public:
00149     virtual QCString updateNeededMessage()
00150     { return createUpdateNeededMessage(idLanguage(),"release 1.3.9"); }
00151     
00152     virtual QCString trDirIndex()
00153     { return english.trDirIndex(); }
00154     virtual QCString trDirDocumentation()
00155     { return english.trDirDocumentation(); }
00156     virtual QCString trDirectories()
00157     { return english.trDirectories(); }
00158     virtual QCString trDirDescription()
00159     { return english.trDirDescription(); }
00160     virtual QCString trDirReference(const char *dirName)
00161     { return english.trDirReference(dirName); }
00162     virtual QCString trDir(bool first_capital, bool singular)
00163     { return english.trDir(first_capital,singular); }
00164 };
00165 
00166 class TranslatorAdapter_1_3_8 : public TranslatorAdapter_1_3_9
00167 {
00168   public:
00169     virtual QCString updateNeededMessage()
00170     { return createUpdateNeededMessage(idLanguage(),"release 1.3.8"); }
00171     
00172     virtual QCString trSourceFile(QCString& filename)
00173     { return english.trSourceFile(filename); }
00174 };
00175 
00176 class TranslatorAdapter_1_3_3 : public TranslatorAdapter_1_3_8
00177 {
00178   public:
00179     virtual QCString updateNeededMessage() 
00180     { return createUpdateNeededMessage(idLanguage(),"release 1.3.3"); }
00181 
00182     virtual QCString trSearchForIndex()
00183     { return english.trSearchForIndex(); }
00184     virtual QCString trSearchResultsTitle()
00185     { return english.trSearchResultsTitle(); }
00186     virtual QCString trSearchResults(int numDocuments)
00187     { return english.trSearchResults(numDocuments); }
00188     virtual QCString trSearchMatches()
00189     { return english.trSearchMatches(); }
00190 
00191 };
00192 
00193 class TranslatorAdapter_1_3_1 : public TranslatorAdapter_1_3_3
00194 {
00195   public:
00196     virtual QCString updateNeededMessage() 
00197     { return createUpdateNeededMessage(idLanguage(),"release 1.3.1"); }
00198     virtual QCString trAll()
00199     { return english.trAll(); }
00200     virtual QCString trCallGraph()
00201     { return english.trCallGraph(); }
00202 };
00203 
00204 class TranslatorAdapter_1_3 : public TranslatorAdapter_1_3_1
00205 {
00206   public:
00207     virtual QCString updateNeededMessage() 
00208     { return createUpdateNeededMessage(idLanguage(),"release 1.3"); }
00209 
00210     virtual QCString trPackageTypes()
00211     { return english.trPackageTypes(); }
00212     virtual QCString trPackageMembers()
00213     { return english.trPackageMembers(); }
00214     virtual QCString trStaticPackageMembers()
00215     { return english.trStaticPackageMembers(); }
00216     virtual QCString trPackageAttribs()
00217     { return english.trPackageAttribs(); }
00218     virtual QCString trStaticPackageAttribs() 
00219     { return english.trStaticPackageAttribs(); }
00220 };
00221 
00222 class TranslatorAdapter_1_2_18 : public TranslatorAdapter_1_3
00223 {
00224   public:
00225     virtual QCString updateNeededMessage() 
00226     { return createUpdateNeededMessage(idLanguage(),"release 1.2.18"); }
00227 
00228     virtual QCString trEvents()
00229     { return english.trEvents(); }
00230     virtual QCString trEventDocumentation()
00231     { return english.trEventDocumentation(); }
00232 };
00233 
00234 
00235 #endif
00236 



Generated on Mon Mar 31 10:58:44 2008 by  doxygen 1.5.1