diff options
Diffstat (limited to 'src/translator_jp.h')
-rw-r--r-- | src/translator_jp.h | 995 |
1 files changed, 648 insertions, 347 deletions
diff --git a/src/translator_jp.h b/src/translator_jp.h index 4786558..5c240f1 100644 --- a/src/translator_jp.h +++ b/src/translator_jp.h @@ -15,464 +15,559 @@ * */ +/* + * translator_jp.h + * + * 1.2.5) + * First Translation + * by Kenji Nagamatsu + * 1.2.12) + * Update and Shift-Jis(_WIN32) + * by Ryunosuke Sato (30-Dec-2001) + */ + #ifndef TRANSLATOR_JP_H #define TRANSLATOR_JP_H -#include "translator_adapter.h" - -class TranslatorJapanese : public TranslatorAdapter_1_2_5 +class TranslatorJapanese : public Translator { + private: + /*! The decode() can change euc into sjis */ + inline QCString decode(const QCString & sInput) + { +#ifdef _WIN32 + return JapaneseEucToSjis(sInput); +#else + return sInput; +#endif + } public: - QCString idLanguage() + virtual QCString idLanguage() { return "japanese"; } + virtual QCString latexLanguageSupportCommand() + { + return ""; + } /*! returns the name of the package that is included by LaTeX */ - QCString latexBabelPackage() - { return "english"; } - QCString idLanguageCharset() - { return "euc-jp"; } + virtual QCString idLanguageCharset() + { +#ifdef _WIN32 + return "ShiftJIS"; +#else + return "euc-jp"; +#endif + } /*! used in the compound documentation before a list of related functions. */ - QCString trRelatedFunctions() - { return "関連する関数"; } + virtual QCString trRelatedFunctions() + { return decode("関連する関数"); } /*! subscript for the related functions. */ - QCString trRelatedSubscript() - { return "(これらはメンバ関数でないことに注意)"; } + virtual QCString trRelatedSubscript() + { return decode("(これらはメンバ関数でないことに注意)"); } /*! header that is put before the detailed description of files, classes and namespaces. */ - QCString trDetailedDescription() - { return "解説"; } + virtual QCString trDetailedDescription() + { return decode("解説"); } /*! header that is put before the list of typedefs. */ - QCString trMemberTypedefDocumentation() - { return "メンバ型定義の解説"; } + virtual QCString trMemberTypedefDocumentation() + { return decode("メンバ型定義の解説"); } /*! header that is put before the list of enumerations. */ - QCString trMemberEnumerationDocumentation() - { return "メンバ列挙型の解説"; } + virtual QCString trMemberEnumerationDocumentation() + { return decode("メンバ列挙型の解説"); } /*! header that is put before the list of member functions. */ - QCString trMemberFunctionDocumentation() - { return "メンバ関数の解説"; } + virtual QCString trMemberFunctionDocumentation() + { return decode("メンバ関数の解説"); } /*! header that is put before the list of member attributes. */ - QCString trMemberDataDocumentation() - { return "メンバデータの解説"; } + virtual QCString trMemberDataDocumentation() + { + if( Config_getBool("OPTIMIZE_OUTPUT_FOR_C")) + { + return decode("構造体の解説"); + } + else + { + return decode("メンバの解説"); + } + } /*! this is the text of a link put after brief descriptions. */ - QCString trMore() - { return "より詳しく..."; } + virtual QCString trMore() + { return decode("より詳しく..."); } /*! put in the class documentation */ - QCString trListOfAllMembers() - { return "すべてのメンバリスト"; } + virtual QCString trListOfAllMembers() + { return decode("すべてのメンバリスト"); } /*! used as the title of the "list of all members" page of a class */ - QCString trMemberList() - { return "メンバリスト"; } + virtual QCString trMemberList() + { return decode("メンバリスト"); } /*! this is the first part of a sentence that is followed by a class name */ - QCString trThisIsTheListOfAllMembers() - { return "これは全メンバリストです。"; } + virtual QCString trThisIsTheListOfAllMembers() + { return decode("これは全メンバリストです。"); } /*! this is the remainder of the sentence after the class name */ - QCString trIncludingInheritedMembers() - { return "継承メンバもすべて含んでいます。"; } + virtual QCString trIncludingInheritedMembers() + { return decode("継承メンバもすべて含んでいます。"); } /*! this is put at the author sections at the bottom of man pages. * parameter s is name of the project name. */ - QCString trGeneratedAutomatically(const char *s) + virtual QCString trGeneratedAutomatically(const char *s) { QCString result; if (s) result=(QCString)s+"の"; result+="ソースコードから Doxygen が自動的に生成しました。"; - return result; + return decode(result); } /*! put after an enum name in the list of all members */ - QCString trEnumName() - { return "enum 型"; } + virtual QCString trEnumName() + { return decode("列挙型"); } /*! put after an enum value in the list of all members */ - QCString trEnumValue() - { return "enum 値"; } + virtual QCString trEnumValue() + { return decode("列挙値"); } /*! put after an undocumented member in the list of all members */ - QCString trDefinedIn() - { return "次で定義されました。"; } - - /*! put as in introduction in the verbatim header file of a class. - * parameter f is the name of the include file. - */ - QCString trVerbatimText(const char *f) - { return (QCString)"これはインクルードファイル"+f+"の内容です。"; } + virtual QCString trDefinedIn() + { return decode("次で定義されました。"); } // quick reference sections /*! This is put above each page as a link to the list of all groups of * compounds or files (see the \group command). */ - QCString trModules() - { return "モジュール"; } + virtual QCString trModules() + { return decode("モジュール"); } /*! This is put above each page as a link to the class hierarchy */ - QCString trClassHierarchy() - { return "クラス階層"; } + virtual QCString trClassHierarchy() + { return decode("クラス階層"); } /*! This is put above each page as a link to the list of annotated classes */ - QCString trCompoundList() - { return "データ構造リスト"; } + virtual QCString trCompoundList() + { + if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C")) + { + return decode("データ構造"); + } + else + { + return decode("構成"); + } + } /*! This is put above each page as a link to the list of documented files */ - QCString trFileList() - { return "ファイルリスト"; } + virtual QCString trFileList() + { return decode("ファイルリスト"); } /*! This is put above each page as a link to the list of all verbatim headers */ - QCString trHeaderFiles() - { return "ヘッダファイル"; } + virtual QCString trHeaderFiles() + { return decode("ヘッダファイル"); } /*! This is put above each page as a link to all members of compounds. */ - QCString trCompoundMembers() - { return "データ構造メンバ"; } + virtual QCString trCompoundMembers() + { + if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C")) + { + return decode("データフィールド"); + } + else + { + return decode("構成メンバ"); + } + } /*! This is put above each page as a link to all members of files. */ - QCString trFileMembers() - { return "ファイルメンバ"; } - + virtual QCString trFileMembers() + { + if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C")) + { + return decode("グローバル"); + } + else + { + return decode("ファイルメンバ"); + } + } /*! This is put above each page as a link to all related pages. */ - QCString trRelatedPages() - { return "関連ページ"; } + virtual QCString trRelatedPages() + { return decode("関連ページ"); } /*! This is put above each page as a link to all examples. */ - QCString trExamples() - { return "例"; } + virtual QCString trExamples() + { return decode("例"); } /*! This is put above each page as a link to the search engine. */ - QCString trSearch() - { return "検索"; } + virtual QCString trSearch() + { return decode("検索"); } /*! This is an introduction to the class hierarchy. */ - QCString trClassHierarchyDescription() - { return "この継承リストはおおまかにはソートされていますが、" - "アルファベット順で完全にソートされてはいません。"; + virtual QCString trClassHierarchyDescription() + { return decode("この継承リストはおおまかにはソートされていますが、" + "アルファベット順で完全にソートされてはいません。"); } /*! This is an introduction to the list with all files. */ - QCString trFileListDescription(bool extractAll) + virtual QCString trFileListDescription(bool extractAll) { QCString result="このリストは、"; if (!extractAll) result+="ドキュメント化され、"; result+="簡易説明を持つファイルすべてのリストです。"; - return result; + return decode(result); } /*! This is an introduction to the annotated compound list. */ - QCString trCompoundListDescription() - { return "これは簡易説明を持つ、クラス、構造体、共用体のリストです。";} + virtual QCString trCompoundListDescription() + { + if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C")) + { + return decode("データ構造の簡単な説明です。"); + } + else + { + return decode("クラス、構造体、共用体、インタフェースの簡単な説明です。"); + } + } /*! This is an introduction to the page with all class members. */ - QCString trCompoundMembersDescription(bool extractAll) + virtual QCString trCompoundMembersDescription(bool extractAll) { QCString result="これは"; if (!extractAll) result+="ドキュメント化された"; - result+="クラスメンバすべてのリストで、それぞれ"; - if (extractAll) result+="が属しているクラス"; + if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C")) + { + result+="フィールドすべてのリストで、それぞれ"; + if (extractAll) result+="が属している構造体/共用体"; + } + else + { + result+="クラスメンバすべてのリストで、それぞれ"; + if (extractAll) result+="が属しているクラス"; + } result+="の解説へのリンクが張られています。"; - return result; + return decode(result); } /*! This is an introduction to the page with all file members. */ - QCString trFileMembersDescription(bool extractAll) + virtual QCString trFileMembersDescription(bool extractAll) { QCString result="これは"; if (!extractAll) result+="ドキュメント化された"; - result+="ファイルメンバすべてのリストで、それぞれ"; + if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C")) + { + result+="関数、変数、マクロ、列挙型、型定義のリストで、それぞれ"; + } + else + { + result+="ファイルメンバすべてのリストで、それぞれ"; + } if (extractAll) result+="が属しているファイル"; result+="の解説へのリンクが張られています。"; - return result; + return decode(result); } /*! This is an introduction to the page with the list of all header files. */ - QCString trHeaderFilesDescription() - { return "APIを構成するヘッダファイルです。"; } + virtual QCString trHeaderFilesDescription() + { return decode("APIを構成するヘッダファイルです。"); } /*! This is an introduction to the page with the list of all examples */ - QCString trExamplesDescription() - { return "すべての例のリストです。"; } + virtual QCString trExamplesDescription() + { return decode("すべての例のリストです。"); } /*! This is an introduction to the page with the list of related pages */ - QCString trRelatedPagesDescription() - { return "関連するドキュメントページすべてのリストです。"; } + virtual QCString trRelatedPagesDescription() + { return decode("関連するドキュメントページすべてのリストです。"); } /*! This is an introduction to the page with the list of class/file groups */ - QCString trModulesDescription() - { return "すべてのモジュールのリストです。"; } + virtual QCString trModulesDescription() + { return decode("すべてのモジュールのリストです。"); } /*! This sentences is used in the annotated class/file lists if no brief * description is given. */ - QCString trNoDescriptionAvailable() - { return "ドキュメントが記述されていません。"; } + virtual QCString trNoDescriptionAvailable() + { return decode("ドキュメントが記述されていません。"); } // index titles (the project name is prepended for these) /*! This is used in HTML as the title of index.html. */ - QCString trDocumentation() - { return "ドキュメント"; } + virtual QCString trDocumentation() + { return decode("ドキュメント"); } /*! This is used in LaTeX as the title of the chapter with the * index of all groups. */ - QCString trModuleIndex() - { return "モジュール索引"; } + virtual QCString trModuleIndex() + { return decode("モジュール索引"); } /*! This is used in LaTeX as the title of the chapter with the * class hierarchy. */ - QCString trHierarchicalIndex() - { return "階層索引"; } + virtual QCString trHierarchicalIndex() + { return decode("階層索引"); } /*! This is used in LaTeX as the title of the chapter with the * annotated compound index. */ - QCString trCompoundIndex() - { return "データ構造索引"; } + virtual QCString trCompoundIndex() + { + if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C")) + { + return decode("データ構造索引"); + } + else + { + return decode("構成索引"); + } + } /*! This is used in LaTeX as the title of the chapter with the * list of all files. */ - QCString trFileIndex() - { return "ファイル索引"; } + virtual QCString trFileIndex() + { return decode("ファイル索引"); } /*! This is used in LaTeX as the title of the chapter containing * the documentation of all groups. */ - QCString trModuleDocumentation() - { return "モジュールの解説"; } + virtual QCString trModuleDocumentation() + { return decode("モジュールの解説"); } /*! This is used in LaTeX as the title of the chapter containing * the documentation of all classes, structs and unions. */ - QCString trClassDocumentation() - { return "クラスの解説"; } + virtual QCString trClassDocumentation() + { + if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C")) + { + return decode("データ構造の解説"); + } + else + { + return decode("クラスの解説"); + } + } /*! This is used in LaTeX as the title of the chapter containing * the documentation of all files. */ - QCString trFileDocumentation() - { return "ファイルの解説"; } + virtual QCString trFileDocumentation() + { return decode("ファイルの解説"); } /*! This is used in LaTeX as the title of the chapter containing * the documentation of all examples. */ - QCString trExampleDocumentation() - { return "例題の解説"; } + virtual QCString trExampleDocumentation() + { return decode("例題の解説"); } /*! This is used in LaTeX as the title of the chapter containing * the documentation of all related pages. */ - QCString trPageDocumentation() - { return "ページの解説"; } + virtual QCString trPageDocumentation() + { return decode("ページの解説"); } /*! This is used in LaTeX as the title of the document */ - QCString trReferenceManual() - { return "リファレンスマニュアル"; } + virtual QCString trReferenceManual() + { return decode("リファレンスマニュアル"); } /*! This is used in the documentation of a file as a header before the * list of defines */ - QCString trDefines() - { return "マクロ定義"; } + virtual QCString trDefines() + { return decode("マクロ定義"); } /*! This is used in the documentation of a file as a header before the * list of function prototypes */ - QCString trFuncProtos() - { return "関数プロトタイプ"; } + virtual QCString trFuncProtos() + { return decode("関数プロトタイプ"); } /*! This is used in the documentation of a file as a header before the * list of typedefs */ - QCString trTypedefs() - { return "型定義"; } + virtual QCString trTypedefs() + { return decode("型定義"); } /*! This is used in the documentation of a file as a header before the * list of enumerations */ - QCString trEnumerations() - { return "列挙型"; } + virtual QCString trEnumerations() + { return decode("列挙型"); } /*! This is used in the documentation of a file as a header before the * list of (global) functions */ - QCString trFunctions() - { return "関数"; } + virtual QCString trFunctions() + { return decode("関数"); } /*! This is used in the documentation of a file as a header before the * list of (global) variables */ - QCString trVariables() - { return "変数"; } + virtual QCString trVariables() + { return decode("変数"); } /*! This is used in the documentation of a file as a header before the * list of (global) variables */ - QCString trEnumerationValues() - { return "列挙型値"; } - - /*! This is used in man pages as the author section. */ - QCString trAuthor() - { return "作者"; } - + virtual QCString trEnumerationValues() + { return decode("列挙型値"); } /*! This is used in the documentation of a file before the list of * documentation blocks for defines */ - QCString trDefineDocumentation() - { return "マクロ定義の解説"; } + virtual QCString trDefineDocumentation() + { return decode("マクロ定義の解説"); } /*! This is used in the documentation of a file/namespace before the list * of documentation blocks for function prototypes */ - QCString trFunctionPrototypeDocumentation() - { return "関数プロトタイプの解説"; } + virtual QCString trFunctionPrototypeDocumentation() + { return decode("関数プロトタイプの解説"); } /*! This is used in the documentation of a file/namespace before the list * of documentation blocks for typedefs */ - QCString trTypedefDocumentation() - { return "型定義の解説"; } + virtual QCString trTypedefDocumentation() + { return decode("型定義の解説"); } /*! This is used in the documentation of a file/namespace before the list * of documentation blocks for enumeration types */ - QCString trEnumerationTypeDocumentation() - { return "列挙型の解説"; } + virtual QCString trEnumerationTypeDocumentation() + { return decode("列挙型の解説"); } /*! This is used in the documentation of a file/namespace before the list * of documentation blocks for enumeration values */ - QCString trEnumerationValueDocumentation() - { return "列挙型値の解説"; } + virtual QCString trEnumerationValueDocumentation() + { return decode("列挙型値の解説"); } /*! This is used in the documentation of a file/namespace before the list * of documentation blocks for functions */ - QCString trFunctionDocumentation() - { return "関数の解説"; } + virtual QCString trFunctionDocumentation() + { return decode("関数の解説"); } /*! This is used in the documentation of a file/namespace before the list * of documentation blocks for variables */ - QCString trVariableDocumentation() - { return "変数の解説"; } + virtual QCString trVariableDocumentation() + { return decode("変数の解説"); } /*! This is used in the documentation of a file/namespace/group before * the list of links to documented compounds */ - QCString trCompounds() - { return "データ構造"; } - - /*! This is used in the documentation of a group before the list of - * links to documented files - */ - QCString trFiles() - { return "ファイル"; } - + virtual QCString trCompounds() + { + if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C")) + { + return decode("データ構造"); + } + else + { + return decode("構成"); + } + } /*! This is used in the standard footer of each page and indicates when * the page was generated */ - QCString trGeneratedAt(const char *date,const char *projName) + virtual QCString trGeneratedAt(const char *date,const char *projName) { QCString result; if (projName) result+=(QCString)projName+"に対して"; result+=(QCString)date+"に生成されました。"; - return result; + return decode(result); } /*! This is part of the sentence used in the standard footer of each page. */ - QCString trWrittenBy() + virtual QCString trWrittenBy() { - return "の開発者:"; + return decode("担当"); } /*! this text is put before a class diagram */ - QCString trClassDiagram(const char *clName) + virtual QCString trClassDiagram(const char *clName) { - return (QCString)clName+"に対するクラス階層図"; + return decode((QCString)clName+"に対する継承グラフ"); } /*! this text is generated when the \\internal command is used. */ - QCString trForInternalUseOnly() - { return "内部使用のみ。"; } + virtual QCString trForInternalUseOnly() + { return decode("内部使用のみ。"); } /*! this text is generated when the \\reimp command is used. */ - QCString trReimplementedForInternalReasons() - { return "内部的な理由により再実装されましたが、APIには影響しません。"; + virtual QCString trReimplementedForInternalReasons() + { return decode("内部的な理由により再実装されましたが、APIには影響しません。"); } /*! this text is generated when the \\warning command is used. */ - QCString trWarning() - { return "警告"; } + virtual QCString trWarning() + { return decode("警告"); } /*! this text is generated when the \\bug command is used. */ - QCString trBugsAndLimitations() - { return "バグと制限"; } + virtual QCString trBugsAndLimitations() + { return decode("バグと制限"); } /*! this text is generated when the \\version command is used. */ - QCString trVersion() - { return "バージョン"; } + virtual QCString trVersion() + { return decode("バージョン"); } /*! this text is generated when the \\date command is used. */ - QCString trDate() - { return "日付"; } + virtual QCString trDate() + { return decode("日付"); } /*! this text is generated when the \\author command is used. */ - QCString trAuthors() - { return "作者"; } + virtual QCString trAuthors() + { return decode("作者"); } /*! this text is generated when the \\return command is used. */ - QCString trReturns() - { return "戻り値"; } + virtual QCString trReturns() + { return decode("戻り値"); } /*! this text is generated when the \\sa command is used. */ - QCString trSeeAlso() - { return "参照"; } + virtual QCString trSeeAlso() + { return decode("参照"); } /*! this text is generated when the \\param command is used. */ - QCString trParameters() - { return "引数"; } + virtual QCString trParameters() + { return decode("引数"); } /*! this text is generated when the \\exception command is used. */ - QCString trExceptions() - { return "例外"; } + virtual QCString trExceptions() + { return decode("例外"); } /*! this text is used in the title page of a LaTeX document. */ - QCString trGeneratedBy() - { return ""; } + virtual QCString trGeneratedBy() + { return decode(""); } ////////////////////////////////////////////////////////////////////////// // new since 0.49-990307 ////////////////////////////////////////////////////////////////////////// /*! used as the title of page containing all the index of all namespaces. */ - QCString trNamespaceList() - { return "名前空間リスト"; } + virtual QCString trNamespaceList() + { return decode("名前空間リスト"); } /*! used as an introduction to the namespace list */ - QCString trNamespaceListDescription(bool extractAll) + virtual QCString trNamespaceListDescription(bool extractAll) { QCString result="このリストは、簡易説明を持つすべての"; if (!extractAll) result+="ドキュメント化された"; result+="名前空間のリストです。"; - return result; + return decode(result); } /*! used in the class documentation as a header before the list of all * friends of a class */ - QCString trFriends() - { return "フレンド"; } + virtual QCString trFriends() + { return decode("フレンド"); } ////////////////////////////////////////////////////////////////////////// // new since 0.49-990405 @@ -482,16 +577,16 @@ class TranslatorJapanese : public TranslatorAdapter_1_2_5 * related classes */ virtual QCString trRelatedFunctionDocumentation() - { return "フレンドと関連する関数の解説"; } + { return decode("フレンドと関連する関数の解説"); } ////////////////////////////////////////////////////////////////////////// // new since 0.49-990425 ////////////////////////////////////////////////////////////////////////// /*! used as the title of the HTML page of a class/struct/union */ - QCString trCompoundReference(const char *clName, + virtual QCString trCompoundReference(const char *clName, ClassDef::CompoundType compType, - bool /*isTemplate*/) + bool isTemplate) { QCString result=""; switch(compType) @@ -500,52 +595,53 @@ class TranslatorJapanese : public TranslatorAdapter_1_2_5 case ClassDef::Struct: result+="構造体 "; break; case ClassDef::Union: result+="共用体 "; break; case ClassDef::Interface: result+="インタフェース"; break; - case ClassDef::Exception: result+="Exception "; break; //TODO:fixme + case ClassDef::Exception: result+="例外"; break; //TODO:fixme } + if (isTemplate) result+=" テンプレート"; result+=(QCString)clName+" の解説"; - return result; + return decode(result); } /*! used as the title of the HTML page of a file */ - QCString trFileReference(const char *fileName) + virtual QCString trFileReference(const char *fileName) { QCString result="ファイル "+(QCString)fileName+" の解説"; - return result; + return decode(result); } /*! used as the title of the HTML page of a namespace */ - QCString trNamespaceReference(const char *namespaceName) + virtual QCString trNamespaceReference(const char *namespaceName) { QCString result="名前空間 "+(QCString)namespaceName+" の解説"; - return result; + return decode(result); } /* these are for the member sections of a class, struct or union */ - QCString trPublicMembers() - { return "公開メンバ"; } - QCString trPublicSlots() - { return "公開スロット"; } - QCString trSignals() - { return "シグナル"; } - QCString trStaticPublicMembers() - { return "静的公開メンバ"; } - QCString trProtectedMembers() - { return "保護メンバ"; } - QCString trProtectedSlots() - { return "保護スロット"; } - QCString trStaticProtectedMembers() - { return "静的保護メンバ"; } - QCString trPrivateMembers() - { return "非公開メンバ"; } - QCString trPrivateSlots() - { return "非公開スロット"; } - QCString trStaticPrivateMembers() - { return "静的非公開メンバ"; } + virtual QCString trPublicMembers() + { return decode("公開メンバ"); } + virtual QCString trPublicSlots() + { return decode("公開スロット"); } + virtual QCString trSignals() + { return decode("シグナル"); } + virtual QCString trStaticPublicMembers() + { return decode("静的公開メンバ"); } + virtual QCString trProtectedMembers() + { return decode("保護メンバ"); } + virtual QCString trProtectedSlots() + { return decode("保護スロット"); } + virtual QCString trStaticProtectedMembers() + { return decode("静的保護メンバ"); } + virtual QCString trPrivateMembers() + { return decode("非公開メンバ"); } + virtual QCString trPrivateSlots() + { return decode("非公開スロット"); } + virtual QCString trStaticPrivateMembers() + { return decode("静的非公開メンバ"); } /*! this function is used to produce a comma-separated list of items. * use generateMarker(i) to indicate where item i should be put. */ - QCString trWriteList(int numEntries) + virtual QCString trWriteList(int numEntries) { QCString result; int i; @@ -564,47 +660,47 @@ class TranslatorJapanese : public TranslatorAdapter_1_2_5 result+=", と "; } } - return result; + return decode(result); } /*! used in class documentation to produce a list of base classes, * if class diagrams are disabled. */ - QCString trInheritsList(int numEntries) + virtual QCString trInheritsList(int numEntries) { - return trWriteList(numEntries)+"を継承しています。"; + return decode(trWriteList(numEntries)+"を継承しています。"); } /*! used in class documentation to produce a list of super classes, * if class diagrams are disabled. */ - QCString trInheritedByList(int numEntries) + virtual QCString trInheritedByList(int numEntries) { - return trWriteList(numEntries)+"に継承されています。"; + return decode(trWriteList(numEntries)+"に継承されています。"); } /*! used in member documentation blocks to produce a list of * members that are hidden by this one. */ - QCString trReimplementedFromList(int numEntries) + virtual QCString trReimplementedFromList(int numEntries) { - return trWriteList(numEntries)+"を再定義しています。"; + return decode(trWriteList(numEntries)+"を再定義しています。"); } /*! used in member documentation blocks to produce a list of * all member that overwrite the implementation of this member. */ - QCString trReimplementedInList(int numEntries) + virtual QCString trReimplementedInList(int numEntries) { - return trWriteList(numEntries)+"で再定義されています。"; + return decode(trWriteList(numEntries)+"で再定義されています。"); } /*! This is put above each page as a link to all members of namespaces. */ - QCString trNamespaceMembers() - { return "名前空間メンバ"; } + virtual QCString trNamespaceMembers() + { return decode("名前空間メンバ"); } /*! This is an introduction to the page with all namespace members */ - QCString trNamespaceMemberDescription(bool extractAll) + virtual QCString trNamespaceMemberDescription(bool extractAll) { QCString result="これは"; if (!extractAll) result+="ドキュメント化された"; @@ -614,19 +710,19 @@ class TranslatorJapanese : public TranslatorAdapter_1_2_5 else result+="が属している名前空間"; result+="へのリンクが張られています。"; - return result; + return decode(result); } /*! This is used in LaTeX as the title of the chapter with the * index of all namespaces. */ - QCString trNamespaceIndex() - { return "名前空間索引"; } + virtual QCString trNamespaceIndex() + { return decode("名前空間索引"); } /*! This is used in LaTeX as the title of the chapter containing * the documentation of all namespaces. */ - QCString trNamespaceDocumentation() - { return "名前空間の解説"; } + virtual QCString trNamespaceDocumentation() + { return decode("名前空間の解説"); } ////////////////////////////////////////////////////////////////////////// // new since 0.49-990522 @@ -635,8 +731,8 @@ class TranslatorJapanese : public TranslatorAdapter_1_2_5 /*! This is used in the documentation before the list of all * namespaces in a file. */ - QCString trNamespaces() - { return "名前空間"; } + virtual QCString trNamespaces() + { return decode("名前空間"); } ////////////////////////////////////////////////////////////////////////// // new since 0.49-990728 @@ -645,7 +741,7 @@ class TranslatorJapanese : public TranslatorAdapter_1_2_5 /*! This is put at the bottom of a class documentation page and is * followed by a list of files that were used to generate the page. */ - QCString trGeneratedFromFiles(ClassDef::CompoundType compType, + virtual QCString trGeneratedFromFiles(ClassDef::CompoundType compType, bool) { // here s is one of " Class", " Struct" or " Union" // single is true implies a single file @@ -656,61 +752,61 @@ class TranslatorJapanese : public TranslatorAdapter_1_2_5 case ClassDef::Struct: result+="構造体"; break; case ClassDef::Union: result+="共用体"; break; case ClassDef::Interface: result+="インタフェース"; break; - case ClassDef::Exception: result+="Exception"; break; //TODO:fixme + case ClassDef::Exception: result+="例外"; break; //TODO:fixme } result+="の解説は次のファイルから生成されました:"; - return result; + return decode(result); } /*! This is in the (quick) index as a link to the alphabetical compound * list. */ - QCString trAlphabeticalList() - { return "アルファベット順リスト"; } + virtual QCString trAlphabeticalList() + { return decode("アルファベット順リスト"); } ////////////////////////////////////////////////////////////////////////// // new since 0.49-990901 ////////////////////////////////////////////////////////////////////////// /*! This is used as the heading text for the retval command. */ - QCString trReturnValues() - { return "戻り値"; } + virtual QCString trReturnValues() + { return decode("戻り値"); } /*! This is in the (quick) index as a link to the main page (index.html) */ - QCString trMainPage() - { return "メインページ"; } + virtual QCString trMainPage() + { return decode("メインページ"); } /*! This is used in references to page that are put in the LaTeX * documentation. It should be an abbreviation of the word page. */ - QCString trPageAbbreviation() - { return "p."; } + virtual QCString trPageAbbreviation() + { return decode("p."); } ////////////////////////////////////////////////////////////////////////// // new since 0.49-991003 ////////////////////////////////////////////////////////////////////////// - QCString trSources() + virtual QCString trSources() { - return "ソース"; + return decode("ソース"); } - QCString trDefinedAtLineInSourceFile() + virtual QCString trDefinedAtLineInSourceFile() { - return "ファイル @1 の @0 行で定義されています。"; + return decode("ファイル @1 の @0 行で定義されています。"); } - QCString trDefinedInSourceFile() + virtual QCString trDefinedInSourceFile() { - return "ファイル @0 で定義されています。"; + return decode("ファイル @0 で定義されています。"); } ////////////////////////////////////////////////////////////////////////// // new since 1.0.0 ////////////////////////////////////////////////////////////////////////// - QCString trDeprecated() + virtual QCString trDeprecated() { - return "Deprecated"; + return decode("非推奨"); } ////////////////////////////////////////////////////////////////////////// @@ -718,115 +814,122 @@ class TranslatorJapanese : public TranslatorAdapter_1_2_5 ////////////////////////////////////////////////////////////////////////// /*! this text is put before a collaboration diagram */ - QCString trCollaborationDiagram(const char *clName) + virtual QCString trCollaborationDiagram(const char *clName) { - return (QCString)clName+"のコラボレーション図"; + return decode((QCString)clName+"のコラボレーション図"); } /*! this text is put before an include dependency graph */ - QCString trInclDepGraph(const char *fName) + virtual QCString trInclDepGraph(const char *fName) { - return (QCString)fName+"のインクルード依存関係図"; + return decode((QCString)fName+"のインクルード依存関係図"); } /*! header that is put before the list of constructor/destructors. */ - QCString trConstructorDocumentation() + virtual QCString trConstructorDocumentation() { - return "コンストラクタとデストラクタの解説"; + return decode("コンストラクタとデストラクタの解説"); } /*! Used in the file documentation to point to the corresponding sources. */ - QCString trGotoSourceCode() + virtual QCString trGotoSourceCode() { - return "このファイルのソースコードを見る。"; + return decode("このファイルのソースコードを見る。"); } /*! Used in the file sources to point to the corresponding documentation. */ - QCString trGotoDocumentation() + virtual QCString trGotoDocumentation() { - return "このファイルの解説を見る。"; + return decode("このファイルの解説を見る。"); } /*! Text for the \\pre command */ - QCString trPrecondition() + virtual QCString trPrecondition() { - return "事前条件"; + return decode("事前条件"); } /*! Text for the \\post command */ - QCString trPostcondition() + virtual QCString trPostcondition() { - return "事後条件"; + return decode("事後条件"); } /*! Text for the \\invariant command */ - QCString trInvariant() + virtual QCString trInvariant() { - return "Invariant"; + return decode("不変"); } /*! Text shown before a multi-line variable/enum initialization */ - QCString trInitialValue() + virtual QCString trInitialValue() { - return "初期値:"; + return decode("初期値:"); } /*! Text used the source code in the file index */ - QCString trCode() + virtual QCString trCode() { - return "コード"; + return decode("コード"); } - QCString trGraphicalHierarchy() + virtual QCString trGraphicalHierarchy() { - return "クラス階層図"; + return decode("クラス階層図"); } - QCString trGotoGraphicalHierarchy() + virtual QCString trGotoGraphicalHierarchy() { - return "クラス階層図を見る。"; + return decode("クラス階層図を見る。"); } - QCString trGotoTextualHierarchy() + virtual QCString trGotoTextualHierarchy() { - return "クラス階層図(テキスト)を見る。"; + return decode("クラス階層図(テキスト)を見る。"); } - QCString trPageIndex() + virtual QCString trPageIndex() { - return "ページ索引"; + return decode("ページ索引"); } ////////////////////////////////////////////////////////////////////////// // new since 1.1.0 ////////////////////////////////////////////////////////////////////////// - QCString trNote() + virtual QCString trNote() { - return "覚え書き"; + return decode("覚え書き"); } - QCString trPublicTypes() + virtual QCString trPublicTypes() { - return "公開型"; + return decode("公開型"); } - QCString trPublicAttribs() + virtual QCString trPublicAttribs() { - return "公開属性"; + if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C")) + { + return decode("データフィールド"); + } + else + { + return decode("公開属性"); + } } - QCString trStaticPublicAttribs() + virtual QCString trStaticPublicAttribs() { - return "静的公開属性"; + return decode("静的公開属性"); } - QCString trProtectedTypes() + virtual QCString trProtectedTypes() { - return "保護型"; + return decode("保護型"); } - QCString trProtectedAttribs() + virtual QCString trProtectedAttribs() { - return "保護属性"; + return decode("保護属性"); } - QCString trStaticProtectedAttribs() + virtual QCString trStaticProtectedAttribs() { - return "静的保護属性"; + return decode("静的保護属性"); } - QCString trPrivateTypes() + virtual QCString trPrivateTypes() { - return "非公開型"; + return decode("非公開型"); } - QCString trPrivateAttribs() + virtual QCString trPrivateAttribs() { - return "非公開属性"; + return decode("非公開属性"); } - QCString trStaticPrivateAttribs() + virtual QCString trStaticPrivateAttribs() { - return "静的非公開属性"; + return decode("静的非公開属性"); } ////////////////////////////////////////////////////////////////////////// @@ -834,40 +937,40 @@ class TranslatorJapanese : public TranslatorAdapter_1_2_5 ////////////////////////////////////////////////////////////////////////// /*! Used as a marker that is put before a todo item */ - QCString trTodo() + virtual QCString trTodo() { - return "TODO"; + return decode("TODO"); } /*! Used as the header of the todo list */ - QCString trTodoList() + virtual QCString trTodoList() { - return "TODOリスト"; + return decode("TODOリスト"); } ////////////////////////////////////////////////////////////////////////// // new since 1.1.4 ////////////////////////////////////////////////////////////////////////// - QCString trReferencedBy() + virtual QCString trReferencedBy() { - return "次で参照されています。"; + return decode("参照位置"); } - QCString trRemarks() + virtual QCString trRemarks() { - return "意見"; + return decode("意見"); } - QCString trAttention() + virtual QCString trAttention() { - return "注意"; + return decode("注意"); } - QCString trInclByDepGraph() + virtual QCString trInclByDepGraph() { - return "このグラフは、このファイルがどのファイルから直接、間接的に" - "インクルードされているかを示しています。"; + return decode("このグラフは、このファイルがどのファイルから直接、間接的に" + "インクルードされているかを示しています。"); } - QCString trSince() + virtual QCString trSince() { - return "Since"; + return decode("から"); } ////////////////////////////////////////////////////////////////////////// @@ -875,15 +978,15 @@ class TranslatorJapanese : public TranslatorAdapter_1_2_5 ////////////////////////////////////////////////////////////////////////// /*! title of the graph legend page */ - QCString trLegendTitle() + virtual QCString trLegendTitle() { - return "グラフの凡例"; + return decode("グラフの凡例"); } /*! page explaining how the dot graph's should be interpreted */ - QCString trLegendDocs() + virtual QCString trLegendDocs() { return - "このページでは、doxygen で生成されたグラフをどのようにみたらよいかを" + decode("このページでは、doxygen で生成されたグラフをどのようにみたらよいかを" "説明します。<p>\n" "次の例を考えてみます。\n" "\\code\n" @@ -933,12 +1036,12 @@ class TranslatorJapanese : public TranslatorAdapter_1_2_5 "<li>紫の破線矢印は、そのクラスが他のクラスに含まれていたり、" "利用されていることを示します。また、矢印が指しているクラスや構造体を" "どの変数でアクセスできるかを矢印のラベルとして示しています。\n" - "</ul>\n"; + "</ul>\n"); } /*! text for the link to the legend page */ - QCString trLegend() + virtual QCString trLegend() { - return "凡例"; + return decode("凡例"); } ////////////////////////////////////////////////////////////////////////// @@ -946,14 +1049,14 @@ class TranslatorJapanese : public TranslatorAdapter_1_2_5 ////////////////////////////////////////////////////////////////////////// /*! Used as a marker that is put before a test item */ - QCString trTest() + virtual QCString trTest() { - return "テスト"; + return decode("テスト"); } /*! Used as the header of the test list */ - QCString trTestList() + virtual QCString trTestList() { - return "テストリスト"; + return decode("テストリスト"); } ////////////////////////////////////////////////////////////////////////// @@ -961,9 +1064,9 @@ class TranslatorJapanese : public TranslatorAdapter_1_2_5 ////////////////////////////////////////////////////////////////////////// /*! Used as a section header for KDE-2 IDL methods */ - QCString trDCOPMethods() + virtual QCString trDCOPMethods() { - return "DCOPメソッド"; + return decode("DCOPメソッド"); } ////////////////////////////////////////////////////////////////////////// @@ -971,14 +1074,14 @@ class TranslatorJapanese : public TranslatorAdapter_1_2_5 ////////////////////////////////////////////////////////////////////////// /*! Used as a section header for IDL properties */ - QCString trProperties() + virtual QCString trProperties() { - return "プロパティ"; + return decode("プロパティ"); } /*! Used as a section header for IDL property documentation */ - QCString trPropertyDocumentation() + virtual QCString trPropertyDocumentation() { - return "プロパティの解説"; + return decode("プロパティの解説"); } @@ -989,43 +1092,241 @@ class TranslatorJapanese : public TranslatorAdapter_1_2_5 /*! Used for Java interfaces in the summary section of Java packages */ virtual QCString trInterfaces() { - return "インターフェース"; + return decode("インターフェース"); } /*! Used for Java classes in the summary section of Java packages */ virtual QCString trClasses() { - return "クラス"; + if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C")) + { + return decode("データ構造"); + } + else + { + return decode("クラス"); + } } /*! Used as the title of a Java package */ virtual QCString trPackage(const char *name) { - return (QCString)"パッケージ "+name; + return decode((QCString)"パッケージ "+name); } /*! Title of the package index page */ virtual QCString trPackageList() { - return "パッケージリスト"; + return decode("パッケージリスト"); } /*! The description of the package index page */ virtual QCString trPackageListDescription() { - return "簡易説明を持つパッケージです。"; + return decode("簡易説明を持つパッケージです。"); } /*! The link name in the Quick links header for each page */ virtual QCString trPackages() { - return "パッケージ"; + return decode("パッケージ"); } /*! Used as a chapter title for Latex & RTF output */ virtual QCString trPackageDocumentation() { - return "パッケージの解説"; + return decode("パッケージの解説"); } /*! Text shown before a multi-line define */ virtual QCString trDefineValue() { - return "値:"; + return decode("値:"); + } + + +////////////////////////////////////////////////////////////////////////// +// new since 1.2.5 +////////////////////////////////////////////////////////////////////////// + + /*! Used as a marker that is put before a \\bug item */ + virtual QCString trBug() + { + return decode("バグ"); + } + /*! Used as the header of the bug list */ + virtual QCString trBugList() + { + return decode("バグのリスト"); } + +////////////////////////////////////////////////////////////////////////// +// new since 1.2.6 +////////////////////////////////////////////////////////////////////////// + + /*! Used as ansicpg for RTF file + * + * The following table shows the correlation of Charset name, Charset Value and + * <pre> + * Codepage number: + * Charset Name Charset Value(hex) Codepage number + * ------------------------------------------------------ + * DEFAULT_CHARSET 1 (x01) + * SYMBOL_CHARSET 2 (x02) + * OEM_CHARSET 255 (xFF) + * ANSI_CHARSET 0 (x00) 1252 + * RUSSIAN_CHARSET 204 (xCC) 1251 + * EE_CHARSET 238 (xEE) 1250 + * GREEK_CHARSET 161 (xA1) 1253 + * TURKISH_CHARSET 162 (xA2) 1254 + * BALTIC_CHARSET 186 (xBA) 1257 + * HEBREW_CHARSET 177 (xB1) 1255 + * ARABIC _CHARSET 178 (xB2) 1256 + * SHIFTJIS_CHARSET 128 (x80) 932 + * HANGEUL_CHARSET 129 (x81) 949 + * GB2313_CHARSET 134 (x86) 936 + * CHINESEBIG5_CHARSET 136 (x88) 950 + * </pre> + * + */ + virtual QCString trRTFansicp() + { + return "932"; + } + + + /*! Used as ansicpg for RTF fcharset + * \see trRTFansicp() for a table of possible values. + */ + virtual QCString trRTFCharSet() + { + return "128"; + } + + /*! Used as header RTF general index */ + virtual QCString trRTFGeneralIndex() + { + return decode("索引"); + } + + /*! This is used for translation of the word that will possibly + * be followed by a single name or by a list of names + * of the category. + */ + virtual QCString trClass(bool first_capital, bool singular) + { + first_capital = first_capital; + singular = singular; + QCString result("クラス"); + return decode(result); + } + + /*! This is used for translation of the word that will possibly + * be followed by a single name or by a list of names + * of the category. + */ + virtual QCString trFile(bool first_capital, bool singular) + { + first_capital = first_capital; + singular = singular; + QCString result("ファイル"); + return decode(result); + } + + /*! This is used for translation of the word that will possibly + * be followed by a single name or by a list of names + * of the category. + */ + virtual QCString trNamespace(bool first_capital, bool singular) + { + first_capital = first_capital; + singular = singular; + QCString result("名前空間"); + return decode(result); + } + + /*! This is used for translation of the word that will possibly + * be followed by a single name or by a list of names + * of the category. + */ + virtual QCString trGroup(bool first_capital, bool singular) + { + first_capital = first_capital; + singular = singular; + QCString result("グループ"); + return decode(result); + } + + /*! This is used for translation of the word that will possibly + * be followed by a single name or by a list of names + * of the category. + */ + virtual QCString trPage(bool first_capital, bool singular) + { + first_capital = first_capital; + singular = singular; + QCString result("ページ"); + return decode(result); + } + + /*! This is used for translation of the word that will possibly + * be followed by a single name or by a list of names + * of the category. + */ + virtual QCString trMember(bool first_capital, bool singular) + { + first_capital = first_capital; + singular = singular; + QCString result("メンバ"); + return decode(result); + } + + /*! This is used for translation of the word that will possibly + * be followed by a single name or by a list of names + * of the category. + */ + virtual QCString trField(bool first_capital, bool singular) + { + first_capital = first_capital; + singular = singular; + QCString result("フィールド"); + return decode(result); + } + + /*! This is used for translation of the word that will possibly + * be followed by a single name or by a list of names + * of the category. + */ + virtual QCString trGlobal(bool first_capital, bool singular) + { + first_capital = first_capital; + singular = singular; + QCString result("グローバル"); + return decode(result); + } + +////////////////////////////////////////////////////////////////////////// +// new since 1.2.7 +////////////////////////////////////////////////////////////////////////// + + /*! This text is generated when the \\author command is used and + * for the author section in man pages. */ + virtual QCString trAuthor(bool first_capital, bool singular) + { + first_capital = first_capital; + singular = singular; + QCString result("作者"); + return decode(result); + } + +////////////////////////////////////////////////////////////////////////// +// new since 1.2.11 +////////////////////////////////////////////////////////////////////////// + + /*! This text is put before the list of members referenced by a member + */ + virtual QCString trReferences() + { + return decode("参照"); + } + }; + + + + #endif |