diff options
Diffstat (limited to 'src/translator_adapter.h')
-rw-r--r-- | src/translator_adapter.h | 201 |
1 files changed, 1 insertions, 200 deletions
diff --git a/src/translator_adapter.h b/src/translator_adapter.h index bf30e2c..9518721 100644 --- a/src/translator_adapter.h +++ b/src/translator_adapter.h @@ -152,204 +152,5 @@ class TranslatorAdapter_1_2_11 : public TranslatorAdapter_1_2_13 }; -class TranslatorAdapter_1_2_7 : public TranslatorAdapter_1_2_11 -{ - public: - virtual QCString updateNeededMessage() - { return createUpdateNeededMessage(idLanguage(),"release 1.2.7"); } - - /*! These are the default implementations of the obsolete methods - * for introducing author/authors (possibly localized). - */ - virtual QCString trAuthors() - { return "Author(s)"; } - - virtual QCString trAuthor() - { return "Author"; } - - /*! This is the localized implementation of newer equivalent - * using the obsolete methods trAuthors() and trAuthor(). - */ - virtual QCString trAuthor(bool first_capital, bool singular) - { - if (first_capital) - return (singular) ? trAuthor() : trAuthors(); // possibly localized - else - return english.trAuthor(first_capital, singular); - } -}; - - -/*! \brief Translator adapter class for release 1.2.6 - * - * Translator adapter for dealing with translator changes since - * release 1.2.6 - */ -class TranslatorAdapter_1_2_6 : public TranslatorAdapter_1_2_7 -{ - public: - virtual QCString updateNeededMessage() - { return createUpdateNeededMessage(idLanguage(),"release 1.2.6"); } - - /*! Used as ansicpg for RTF file */ - virtual QCString trRTFansicp() - { - return "1252"; - } - - /*! Used as ansicpg for RTF fcharset */ - virtual QCString trRTFCharSet() - { - return "0"; - } - - /*! Used as header RTF general index */ - virtual QCString trRTFGeneralIndex() - { - return "Index"; - } - - ////////////////////////////////////////////////////////////////// - // The following methods were replaced by newer equivalent, but - // the obsolete method may be localized. Let's use the localized - // result if possible. - - - /*! This is the default implementation of the obsolete method - * used in the documentation of a group before the list of - * links to documented files. This is possibly localized. - */ - virtual QCString trFiles() - { return "Files"; } - - /*! This is the localized implementation of newer equivalent - * using the obsolete method trFiles(). - */ - virtual QCString trFile(bool first_capital, bool singular) - { - if (first_capital && !singular) - return trFiles(); // possibly localized - else - return english.trFile(first_capital, singular); - } - - /*! The latexBabelPackage() was superceeded by - * latexLanguageSupportCommand(). The default implementation - * of the obsolete method follows. - */ - virtual QCString latexBabelPackage() - { return ""; } - - /*! Default implementation of the newer method. */ - virtual QCString latexLanguageSupportCommand() - { - QCString result(latexBabelPackage()); - if (!result.isEmpty()) - { - result = "\\usepackage[" + result; - result += "]{babel}\n"; - } - return result; - } - - virtual QCString idLanguageCharset() - { return english.idLanguageCharset(); } - - virtual QCString trClass(bool first_capital, bool singular) - { return english.trClass(first_capital,singular); } - - virtual QCString trNamespace(bool first_capital, bool singular) - { return english.trNamespace(first_capital,singular); } - - virtual QCString trGroup(bool first_capital, bool singular) - { return english.trGroup(first_capital,singular); } - - virtual QCString trPage(bool first_capital, bool singular) - { return english.trPage(first_capital,singular); } - - virtual QCString trMember(bool first_capital, bool singular) - { return english.trMember(first_capital,singular); } - - virtual QCString trField(bool first_capital, bool singular) - { return english.trField(first_capital,singular); } - - virtual QCString trGlobal(bool first_capital, bool singular) - { return english.trGlobal(first_capital,singular); } - - -}; - -/*! \brief Translator adapter class for release 1.2.5 - * - * Translator adapter for dealing with translator changes since - * release 1.2.5 - */ -class TranslatorAdapter_1_2_5 : public TranslatorAdapter_1_2_6 -{ - public: - virtual QCString updateNeededMessage() - { return createUpdateNeededMessage(idLanguage(),"release 1.2.5"); } - - virtual QCString trBug() - { return english.trBug(); } - - virtual QCString trBugList() - { return english.trBugList(); } -}; - -/*! \brief Translator adapter class for release 1.2.4 - * - * Translator adapter for dealing with translator changes since - * release 1.2.4 - */ -class TranslatorAdapter_1_2_4 : public TranslatorAdapter_1_2_5 -{ - public: - virtual QCString updateNeededMessage() - { return createUpdateNeededMessage(idLanguage(),"release 1.2.4"); } - - virtual QCString trInterfaces() - { return english.trInterfaces(); } - - virtual QCString trClasses() - { return english.trClasses(); } - - virtual QCString trPackage(const char *name) - { return english.trPackage(name); } - - virtual QCString trPackageList() - { return english.trPackageList(); } - - virtual QCString trPackageListDescription() - { return english.trPackageListDescription(); } - - virtual QCString trPackages() - { return english.trPackages(); } - - virtual QCString trPackageDocumentation() - { return english.trPackageDocumentation(); } - - virtual QCString trDefineValue() - { return english.trDefineValue(); } - -}; - -/*! \brief Translator adapter class for release 1.2.2 - * - * Translator adapter for dealing with translator changes since - * release 1.2.2 - */ -class TranslatorAdapter_1_2_2 : public TranslatorAdapter_1_2_4 -{ - public: - virtual QCString updateNeededMessage() - { return createUpdateNeededMessage(idLanguage(),"release 1.2.2"); } - - virtual QCString trProperties() - { return english.trProperties(); } - - virtual QCString trPropertyDocumentation() - { return english.trPropertyDocumentation(); } -}; - #endif + |