/****************************************************************************** * * * * Copyright (C) 1997-2001 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. * */ #ifndef TRANSLATOR_CN_H #define TRANSLATOR_CN_H #include "translator_adapter.h" /*! If you want insert a space whenever Chinese meets English charactors, set CN_SPC to " ", else null. */ #define CN_SPC class TranslatorChinese : public TranslatorAdapter_1_2_1 { public: QCString idLanguage() { return "chinese"; } QCString idLanguageCharset() { return "gb2312"; } QCString latexBabelPackage() { return "chinese"; } QCString trRelatedFunctions() { return "相关函数"; } QCString trRelatedSubscript() { return "(注意:这些不是成员函数)"; } QCString trDetailedDescription() { return "详悉描述"; } QCString trMemberTypedefDocumentation() { return "成员类型定义文档"; } QCString trMemberEnumerationDocumentation() { return "成员枚举类型文档"; } QCString trEnumerationValueDocumentation() { return "成员枚举值文档"; } QCString trMemberFunctionDocumentation() { return "成员函数文档"; } QCString trMemberDataDocumentation() { return "成员数据文档"; } QCString trMore() { return "更多..."; } QCString trListOfAllMembers() { return "所有成员的列表。"; } QCString trMemberList() { return "成员列表"; } QCString trThisIsTheListOfAllMembers() { return "成员的完整列表,这些成员属于"CN_SPC; } QCString trIncludingInheritedMembers() { return ",包括所有继承而来的成员"; } QCString trGeneratedAutomatically(const char *s) { QCString result; if (s) result=(QCString)"为"CN_SPC+s+","; result+="由"CN_SPC"Doyxgen"CN_SPC"通过分析源代码自动生成。"; return result; } QCString trEnumName() { return "枚举名称"; } QCString trEnumValue() { return "枚举值"; } QCString trDefinedIn() { return "定义于"CN_SPC; } QCString trVerbatimText(const char *f) { return (QCString)"这是头文件"CN_SPC+f+CN_SPC"的源代码。"; } QCString trModules() { return "模块"; } QCString trClassHierarchy() { return "类继承关系"; } QCString trCompoundList() { return "组合类型列表"; } QCString trFileList() { return "文件列表"; } QCString trHeaderFiles() { return "头文件"; } QCString trCompoundMembers() { return "组合类型成员"; } QCString trFileMembers() { return "文件成员"; } QCString trRelatedPages() { return "相关页面"; } QCString trExamples() { return "示例"; } QCString trSearch() { return "搜索"; } QCString trClassHierarchyDescription() { return "此列表基本按字典顺序排序:"; } QCString trFileListDescription(bool extractAll) { QCString result="这里列出所有"; if (!extractAll) result+="文档化的"; result+="文件,附带简要说明:"; return result; } QCString trCompoundListDescription() { return "这里列出所有类、结构、联合以及接口定义,附带简要说明:"; } QCString trCompoundMembersDescription(bool extractAll) { QCString result="这里列出所有"; if (!extractAll) result+="文档化的"; result+="类成员,附带"; if (extractAll) result+="所在类的文档的链接:"; else result+="所在类的链接:"; return result; } QCString trFileMembersDescription(bool extractAll) { QCString result="这里列出所有"; if (!extractAll) result+="文档化的"; result+="文件成员,附带"; if (extractAll) result+="所在文件的文档的链接:"; else result+="所在文件的链接:"; return result; } QCString trHeaderFilesDescription() { return "这里列出组成API的头文件:"; } QCString trExamplesDescription() { return "这里列出所有示例:"; } QCString trRelatedPagesDescription() { return "这里列出所有相关的页面:"; } QCString trModulesDescription() { return "这里列出所有模块"; } QCString trNoDescriptionAvailable() { return "无可用文档"; } QCString trDocumentation() { return "文档"; } QCString trModuleIndex() { return "模块索引"; } QCString trHierarchicalIndex() { return "继承关系索引"; } QCString trCompoundIndex() { return "组合类型索引"; } QCString trFileIndex() { return "文件索引"; } QCString trModuleDocumentation() { return "模块文档"; } QCString trClassDocumentation() { return "类文档"; } QCString trFileDocumentation() { return "文件文档"; } QCString trExampleDocumentation() { return "示例文档"; } QCString trPageDocumentation() { return "页面文档"; } QCString trReferenceManual() { return "参考手册"; } QCString trDefines() { return "宏定义"; } QCString trFuncProtos() { return "函数原型"; } QCString trTypedefs() { return "类型定义"; } QCString trEnumerations() { return "枚举"; } QCString trFunctions() { return "函数"; } QCString trVariables() { return "变量"; } QCString trEnumerationValues() { return "枚举值"; } QCString trAuthor() { return "作者"; } QCString trDefineDocumentation() { return "宏定义文档"; } QCString trFunctionPrototypeDocumentation() { return "函数原型文档"; } QCString trTypedefDocumentation() { return "类型定义文档"; } QCString trEnumerationTypeDocumentation() { return "枚举类型文档"; } QCString trFunctionDocumentation() { return "函数文档"; } QCString trVariableDocumentation() { return "变量文档"; } QCString trCompounds() { return "组合类型"; } QCString trFiles() { return "文件"; } QCString trGeneratedAt(const char *date,const char *projName) { QCString result=(QCString)"Generated at "+date; if (projName) result+=(QCString)" for "+projName; result+=(QCString)" by"; return result; } QCString trWrittenBy() { return "written by"; } QCString trClassDiagram(const char *clName) { return (QCString)"继承图,类"CN_SPC+clName; } QCString trForInternalUseOnly() { return "仅限内部使用。"; } QCString trReimplementedForInternalReasons() { return "由于内部原因被重载;但不影响API"; } QCString trWarning() { return "警告"; } QCString trBugsAndLimitations() { return "BUG"CN_SPC"与局限"; } QCString trVersion() { return "版本"; } QCString trDate() { return "日期"; } QCString trAuthors() { return "作者"; } QCString trReturns() { return "返回"; } QCString trSeeAlso() { return "参见"; } QCString trParameters() { return "参数"; } QCString trExceptions() { return "异常"; } QCString trGeneratedBy() { return "制作者"; } ////////////////////////////////////////////////////////////////////////// // new since 0.49-990307 ////////////////////////////////////////////////////////////////////////// QCString trNamespaceList() { return "命名空间列表"; } QCString trNamespaceListDescription(bool extractAll) { QCString result="这里列出所有"; if (!extractAll) result+="文档化的"; result+="命名空间定义,附带简要说明:"; return result; } QCString trFriends() { return "友元"; } ////////////////////////////////////////////////////////////////////////// // new since 0.49-990405 ////////////////////////////////////////////////////////////////////////// QCString trRelatedFunctionDocumentation() { return "友元及相关函数文档"; } ////////////////////////////////////////////////////////////////////////// // new since 0.49-990425 ////////////////////////////////////////////////////////////////////////// QCString trCompoundReference(const char *clName, ClassDef::CompoundType compType, bool isTemplate) // used as the title of the HTML page of a class/struct/union { QCString result=(QCString)clName; if (isTemplate) result+=CN_SPC"模板"; switch(compType) { case ClassDef::Class: result+="类"; break; case ClassDef::Struct: result+="结构"; break; case ClassDef::Union: result+="联合"; break; case ClassDef::Interface: result+="接口"; break; case ClassDef::Exception: result+="异常"; break; } result+="参考"; return result; } QCString trFileReference(const char *fileName) // used as the title of the HTML page of a file { QCString result=fileName; result+=CN_SPC"文件参考"; return result; } QCString trNamespaceReference(const char *namespaceName) // used as the title of the HTML page of a namespace { QCString result=namespaceName; result+=CN_SPC"命名空间参考"; return 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 "静态私有成员"; } // end of member sections QCString trWriteList(int numEntries) { // this function is used to produce a comma-separated list of items. // use generateMarker(i) to indicate where item i should be put. QCString result; int i; // the inherits list contain `numEntries' classes for (i=0;i