/****************************************************************************** * * * * Copyright (C) 1997-2005 by Dimitri van Heesch. * * Permission to use, copy, modify, and distribute this software and its * documentation under the terms of the GNU General Public License is hereby * granted. No representations are made about the suitability of this software * for any purpose. It is provided "as is" without express or implied warranty. * See the GNU General Public License for more details. * * Documents produced by Doxygen are derivative works derived from the * input used in their production; they are not affected by this license. * */ /* * 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 class TranslatorJapanese : public TranslatorAdapter_1_3_9 { private: /*! The decode() can change euc into sjis */ inline QCString decode(const QCString & sInput) { if (Config_getBool("USE_WINDOWS_ENCODING")) { return JapaneseEucToSjis(sInput); } else { return sInput; } } public: virtual QCString idLanguage() { return "japanese"; } virtual QCString latexLanguageSupportCommand() { return ""; } /*! returns the name of the package that is included by LaTeX */ virtual QCString idLanguageCharset() { if (Config_getBool("USE_WINDOWS_ENCODING")) { return "Shift_JIS"; } else { return "euc-jp"; } } /*! used in the compound documentation before a list of related functions. */ virtual QCString trRelatedFunctions() { return decode("関連する関数"); } /*! subscript for the related functions. */ virtual QCString trRelatedSubscript() { return decode("(これらはメソッドでないことに注意)"); } /*! header that is put before the detailed description of files, classes and namespaces. */ virtual QCString trDetailedDescription() { return decode("説明"); } /*! header that is put before the list of typedefs. */ virtual QCString trMemberTypedefDocumentation() { return decode("型定義"); } /*! header that is put before the list of enumerations. */ virtual QCString trMemberEnumerationDocumentation() { return decode("列挙型"); } /*! header that is put before the list of member functions. */ virtual QCString trMemberFunctionDocumentation() { if( Config_getBool("OPTIMIZE_OUTPUT_JAVA")) { return decode("メソッド"); } else { return decode("関数"); } } /*! header that is put before the list of member attributes. */ 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. */ virtual QCString trMore() { return decode("[詳細]"); } /*! put in the class documentation */ virtual QCString trListOfAllMembers() { return decode("すべてのメンバ一覧"); } /*! used as the title of the "list of all members" page of a class */ virtual QCString trMemberList() { return decode("メンバ一覧"); } /*! this is the first part of a sentence that is followed by a class name */ virtual QCString trThisIsTheListOfAllMembers() { return decode("これは全メンバの一覧です。"); } /*! this is the remainder of the sentence after the class name */ 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. */ virtual QCString trGeneratedAutomatically(const char *s) { QCString result; if (s) result=(QCString)s+decode("の"); result+=decode("ソースから Doxygen により生成しました。"); return result; } /*! put after an enum name in the list of all members */ virtual QCString trEnumName() { return decode("Enum"); } /*! put after an enum value in the list of all members */ virtual QCString trEnumValue() { return decode("Enum 値"); } /*! put after an undocumented member in the list of all members */ 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). */ virtual QCString trModules() { return decode("モジュール"); } /*! This is put above each page as a link to the class hierarchy */ virtual QCString trClassHierarchy() { return decode("クラス階層"); } /*! This is put above each page as a link to the list of annotated classes */ 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 */ virtual QCString trFileList() { return decode("ファイル一覧"); } /*! This is put above each page as a link to the list of all verbatim headers */ virtual QCString trHeaderFiles() { return decode("ヘッダファイル"); } /*! This is put above each page as a link to all members of compounds. */ 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. */ 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. */ virtual QCString trRelatedPages() { return decode("関連ページ"); } /*! This is put above each page as a link to all examples. */ virtual QCString trExamples() { return decode("例"); } /*! This is put above each page as a link to the search engine. */ virtual QCString trSearch() { return decode("検索"); } /*! This is an introduction to the class hierarchy. */ virtual QCString trClassHierarchyDescription() { return decode("この継承一覧はおおまかにはソートされていますが、" "完全にアルファベット順でソートされてはいません。"); } /*! This is an introduction to the list with all files. */ virtual QCString trFileListDescription(bool /*extractAll*/) { QCString result=decode("これは"); result+=decode("ファイル一覧です。"); return result; } /*! This is an introduction to the annotated compound list. */ 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. */ virtual QCString trCompoundMembersDescription(bool extractAll) { QCString result=decode("これは"); if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C")) { result+=decode("フィールドの一覧でそれぞれ"); if (extractAll) result+=decode("が属している構造体/共用体"); } else { result+=decode("クラスメンバの一覧で、それぞれ"); if (extractAll) result+=decode("が属しているクラス"); } result+=decode("の説明へリンクしています。"); return result; } /*! This is an introduction to the page with all file members. */ virtual QCString trFileMembersDescription(bool /*extractAll*/) { QCString result=decode("これは"); if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C")) { result+=decode("関数、変数、マクロ、Enum、Typedef の"); } else { result+=decode("ファイルメンバの"); } result+=decode("一覧です。それぞれが属しているファイルの説明へリンクしています。"); return result; } /*! This is an introduction to the page with the list of all header files. */ virtual QCString trHeaderFilesDescription() { return decode("APIを構成するヘッダファイルです。"); } /*! This is an introduction to the page with the list of all examples */ virtual QCString trExamplesDescription() { return decode("すべての例の一覧です。"); } /*! This is an introduction to the page with the list of related pages */ virtual QCString trRelatedPagesDescription() { return decode("関連ページの一覧です。"); } /*! This is an introduction to the page with the list of class/file groups */ virtual QCString trModulesDescription() { return decode("すべてのモジュールの一覧です。"); } /*! This sentences is used in the annotated class/file lists if no brief * description is given. */ 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. */ virtual QCString trDocumentation() { return decode("ドキュメント"); } /*! This is used in LaTeX as the title of the chapter with the * index of all groups. */ virtual QCString trModuleIndex() { return decode("モジュール索引"); } /*! This is used in LaTeX as the title of the chapter with the * class hierarchy. */ virtual QCString trHierarchicalIndex() { return decode("階層索引"); } /*! This is used in LaTeX as the title of the chapter with the * annotated compound index. */ 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. */ virtual QCString trFileIndex() { return decode("ファイル索引"); } /*! This is used in LaTeX as the title of the chapter containing * the documentation of all groups. */ 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. */ 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. */ virtual QCString trFileDocumentation() { return decode("ファイル"); } /*! This is used in LaTeX as the title of the chapter containing * the documentation of all examples. */ virtual QCString trExampleDocumentation() { return decode("例"); } /*! This is used in LaTeX as the title of the chapter containing * the documentation of all related pages. */ virtual QCString trPageDocumentation() { return decode("ページ"); } /*! This is used in LaTeX as the title of the document */ virtual QCString trReferenceManual() { return decode("リファレンスマニュアル"); } /*! This is used in the documentation of a file as a header before the * list of defines */ virtual QCString trDefines() { return decode("マクロ定義"); } /*! This is used in the documentation of a file as a header before the * list of function prototypes */ virtual QCString trFuncProtos() { return decode("関数プロトタイプ"); } /*! This is used in the documentation of a file as a header before the * list of typedefs */ virtual QCString trTypedefs() { return decode("型定義"); } /*! This is used in the documentation of a file as a header before the * list of enumerations */ virtual QCString trEnumerations() { return decode("列挙型"); } /*! This is used in the documentation of a file as a header before the * list of (global) functions */ virtual QCString trFunctions() { return decode("関数"); } /*! This is used in the documentation of a file as a header before the * list of (global) variables */ virtual QCString trVariables() { return decode("変数"); } /*! This is used in the documentation of a file as a header before the * list of (global) variables */ virtual QCString trEnumerationValues() { return decode("列挙型の値"); } /*! This is used in the documentation of a file before the list of * documentation blocks for defines */ virtual QCString trDefineDocumentation() { return decode("マクロ定義"); } /*! This is used in the documentation of a file/namespace before the list * of documentation blocks for function prototypes */ virtual QCString trFunctionPrototypeDocumentation() { return decode("関数プロトタイプ"); } /*! This is used in the documentation of a file/namespace before the list * of documentation blocks for typedefs */ virtual QCString trTypedefDocumentation() { return decode("型定義"); } /*! This is used in the documentation of a file/namespace before the list * of documentation blocks for enumeration types */ virtual QCString trEnumerationTypeDocumentation() { return decode("列挙型"); } /*! This is used in the documentation of a file/namespace before the list * of documentation blocks for enumeration values */ virtual QCString trEnumerationValueDocumentation() { return decode("列挙型の値"); } /*! This is used in the documentation of a file/namespace before the list * of documentation blocks for functions */ virtual QCString trFunctionDocumentation() { return decode("関数"); } /*! This is used in the documentation of a file/namespace before the list * of documentation blocks for variables */ virtual QCString trVariableDocumentation() { return decode("変数"); } /*! This is used in the documentation of a file/namespace/group before * the list of links to documented compounds */ 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 */ virtual QCString trGeneratedAt(const char *date,const char *projName) { QCString result; if (projName) result+=(QCString)projName+decode("に対して"); result+=(QCString)date+decode("に生成されました。"); return result; } /*! This is part of the sentence used in the standard footer of each page. */ virtual QCString trWrittenBy() { return decode("作者"); } /*! this text is put before a class diagram */ virtual QCString trClassDiagram(const char *clName) { return (QCString)clName+decode("に対する継承グラフ"); } /*! this text is generated when the \\internal command is used. */ virtual QCString trForInternalUseOnly() { return decode("内部使用のみ。"); } /*! this text is generated when the \\reimp command is used. */ virtual QCString trReimplementedForInternalReasons() { return decode("内部的な理由により再実装されましたが、APIには影響しません。"); } /*! this text is generated when the \\warning command is used. */ virtual QCString trWarning() { return decode("警告"); } /*! this text is generated when the \\bug command is used. */ virtual QCString trBugsAndLimitations() { return decode("バグと制限"); } /*! this text is generated when the \\version command is used. */ virtual QCString trVersion() { return decode("バージョン"); } /*! this text is generated when the \\date command is used. */ virtual QCString trDate() { return decode("日付"); } /*! this text is generated when the \\return command is used. */ virtual QCString trReturns() { return decode("戻り値"); } /*! this text is generated when the \\sa command is used. */ virtual QCString trSeeAlso() { return decode("参照"); } /*! this text is generated when the \\param command is used. */ virtual QCString trParameters() { return decode("引数"); } /*! this text is generated when the \\exception command is used. */ virtual QCString trExceptions() { return decode("例外"); } /*! this text is used in the title page of a LaTeX document. */ virtual QCString trGeneratedBy() { return decode("作成:"); } ////////////////////////////////////////////////////////////////////////// // new since 0.49-990307 ////////////////////////////////////////////////////////////////////////// /*! used as the title of page containing all the index of all namespaces. */ virtual QCString trNamespaceList() { return decode("ネームスペース一覧"); } /*! used as an introduction to the namespace list */ virtual QCString trNamespaceListDescription(bool /*extractAll*/) { QCString result=decode(""); result+=decode("ネームスペースの一覧です。"); return result; } /*! used in the class documentation as a header before the list of all * friends of a class */ virtual QCString trFriends() { return decode("フレンド"); } ////////////////////////////////////////////////////////////////////////// // new since 0.49-990405 ////////////////////////////////////////////////////////////////////////// /*! used in the class documentation as a header before the list of all * related classes */ virtual QCString trRelatedFunctionDocumentation() { return decode("フレンドと関連する関数"); } ////////////////////////////////////////////////////////////////////////// // new since 0.49-990425 ////////////////////////////////////////////////////////////////////////// /*! used as the title of the HTML page of a class/struct/union */ virtual QCString trCompoundReference(const char *clName, ClassDef::CompoundType compType, bool isTemplate) { QCString result=""; switch(compType) { case ClassDef::Class: result+=decode("クラス "); break; case ClassDef::Struct: result+=decode("構造体 "); break; case ClassDef::Union: result+=decode("共用体 "); break; case ClassDef::Interface: result+=decode("インタフェース "); break; case ClassDef::Protocol: result+=decode("プロトコル "); break; case ClassDef::Category: result+=decode("カテゴリ "); break; case ClassDef::Exception: result+=decode("例外 "); break; } if (isTemplate) result+=decode("テンプレート "); result+=(QCString)clName; return result; } /*! used as the title of the HTML page of a file */ virtual QCString trFileReference(const char *fileName) { QCString result=decode("")+(QCString)fileName; return result; } /*! used as the title of the HTML page of a namespace */ virtual QCString trNamespaceReference(const char *namespaceName) { QCString result=decode("ネームスペース ")+(QCString)namespaceName; return result; } /* these are for the member sections of a class, struct or union */ virtual QCString trPublicMembers() { return decode("Public メソッド"); } virtual QCString trPublicSlots() { return decode("Public スロット"); } virtual QCString trSignals() { return decode("シグナル"); } virtual QCString trStaticPublicMembers() { return decode("Static Public メソッド"); } virtual QCString trProtectedMembers() { return decode("Protected メソッド"); } virtual QCString trProtectedSlots() { return decode("Protected スロット"); } virtual QCString trStaticProtectedMembers() { return decode("Static Protected メソッド"); } virtual QCString trPrivateMembers() { return decode("Private メソッド"); } virtual QCString trPrivateSlots() { return decode("Private スロット"); } virtual QCString trStaticPrivateMembers() { return decode("Static Private メソッド"); } /*! this function is used to produce a comma-separated list of items. * use generateMarker(i) to indicate where item i should be put. */ virtual QCString trWriteList(int numEntries) { QCString result; int i; // the inherits list contain `numEntries' classes for (i=0;i