1 /******************************************************************************
5 * Copyright (C) 1997-2012 by Dimitri van Heesch.
7 * Permission to use, copy, modify, and distribute this software and its
8 * documentation under the terms of the GNU General Public License is hereby
9 * granted. No representations are made about the suitability of this software
10 * for any purpose. It is provided "as is" without express or implied warranty.
11 * See the GNU General Public License for more details.
13 * Documents produced by Doxygen are derivative works derived from the
14 * input used in their production; they are not affected by this license.
18 #ifndef TRANSLATOR_CN_H
19 #define TRANSLATOR_CN_H
22 If you want insert a space whenever Chinese meets English charactors, set
23 CN_SPC to " ", else null.
27 class TranslatorChinese : public TranslatorAdapter_1_8_2
30 /*! Used for identification of the language. The identification
31 * should not be translated. It should be replaced by the name
32 * of the language in English using lower-case characters only
33 * (e.g. "czech", "japanese", "russian", etc.). It sould be equal to
34 * the identification used in the language.cpp.
37 virtual QCString idLanguage()
40 /*! Used to get the LaTeX command(s) for the language support.
41 * This method should return string with commands that switch
42 * LaTeX to the desired language. For example
43 * <pre>"\\usepackage[german]{babel}\n"
46 * <pre>"\\usepackage{polski}\n"
47 * "\\usepackage[latin2]{inputenc}\n"
48 * "\\usepackage[T1]{fontenc}\n"
51 * The English LaTeX does not use such commands. Because of this
52 * the empty string is returned in this implementation.
54 virtual QCString latexLanguageSupportCommand()
60 /*! return the language charset. This will be used for the HTML output */
61 virtual QCString idLanguageCharset()
64 /*! used in the compound documentation before a list of related functions.
66 virtual QCString trRelatedFunctions()
69 /*! subscript for the related functions. */
70 virtual QCString trRelatedSubscript()
71 { return "(请注意: 这些不是成员函数.)"; }
73 /*! header that is put before the detailed description of files,
74 * classes and namespaces.
76 virtual QCString trDetailedDescription()
79 /*! header that is put before the list of typedefs. */
80 virtual QCString trMemberTypedefDocumentation()
81 { return "成员类型定义说明"; }
83 /*! header that is put before the list of enumerations. */
84 virtual QCString trMemberEnumerationDocumentation()
85 { return "成员枚举类型说明"; }
87 /*! header that is put before the list of member function. */
88 virtual QCString trMemberFunctionDocumentation()
91 /*! header that is put before the list of member attributes. */
92 virtual QCString trMemberDataDocumentation()
94 if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C"))
104 /*! this is the text of a link put after brief descriptions. */
105 virtual QCString trMore()
108 /*! put in the class documention */
109 virtual QCString trListOfAllMembers()
112 /*! used as the title of the "list of all members" page of a class */
113 virtual QCString trMemberList()
116 /*! this is the first part of a sentence that is followed by a class name */
117 virtual QCString trThisIsTheListOfAllMembers()
118 { return "成员的完整列表,这些成员属于"CN_SPC; }
120 /*! this is the remainder of the sentence after the class name */
121 virtual QCString trIncludingInheritedMembers()
122 { return ",包括所有继承而来的类成员"; }
124 /*! this is put at the author sections at the bottom of man pages.
125 * parameter s is name of the project name.
127 virtual QCString trGeneratedAutomatically(const char *s)
129 result = "由"CN_SPC"Doyxgen"CN_SPC"通过分析"CN_SPC;
130 if (s) result += ((QCString)s+CN_SPC"的"CN_SPC);
135 /*! put after an enum name in the list of all members */
136 virtual QCString trEnumName()
139 /*! put after an enum value in the list of all members */
140 virtual QCString trEnumValue()
143 /*! put after an undocumented member in the list of all members */
144 virtual QCString trDefinedIn()
145 { return "定义于"CN_SPC; }
147 // quick reference sections
149 /*! This is put above each page as a link to the list of all groups of
150 * compounds or files (see the \\group command).
152 virtual QCString trModules()
155 /*! This is put above each page as a link to the class hierarchy */
156 virtual QCString trClassHierarchy()
159 /*! This is put above each page as a link to the list of annotated class */
160 virtual QCString trCompoundList()
162 if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C")) {
170 /*! This is put above each page as a link to the list of documented files */
171 virtual QCString trFileList()
174 /*! This is put above each page as a link to all members of compounds. */
175 virtual QCString trCompoundMembers()
177 if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C")) {
185 /*! This is put above each page as a link to all member of files. */
186 virtual QCString trFileMembers()
188 if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C")) {
195 /*! This is put above each page as a link to all related pages. */
196 virtual QCString trRelatedPages()
199 /*! This is put above each page as a link to all examples. */
200 virtual QCString trExamples()
203 virtual QCString trSearch()
206 virtual QCString trClassHierarchyDescription()
207 { return "此继承关系列表按字典顺序粗略的排序:"CN_SPC; }
209 virtual QCString trFileListDescription(bool extractAll)
211 QCString result="这里列出了所有";
212 if (!extractAll) result+="文档化的";
213 result+="文件,并附带简要说明:";
217 virtual QCString trCompoundListDescription()
219 if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C"))
221 return "这里列出了所有结构体,并附带简要说明:";
225 return "这里列出了所有类、结构、联合以及接口定义等,并附带简要说明:";
229 virtual QCString trCompoundMembersDescription(bool extractAll)
231 QCString result="这里列出了所有";
235 if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C")) {
236 result+="结构体和联合体的成员变量,并附带";
241 //result+=" with links to ";
243 if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C")) {
244 result+="结构体或联合的详细说明:";
251 if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C")) {
252 result+="结构或联合所属的文件:";
261 virtual QCString trFileMembersDescription(bool extractAll)
263 QCString result="这里列出了所有";
266 if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C")) {
267 result +="函数,变量,宏,枚举和类型定义等,并附带";
280 virtual QCString trExamplesDescription()
281 { return "这里列出了所有示例:"; }
283 virtual QCString trRelatedPagesDescription()
284 { return "这里列出了所有相关页面:"; }
286 virtual QCString trModulesDescription()
287 { return "这里列出了所有模块:"; }
289 virtual QCString trDocumentation()
292 virtual QCString trModuleIndex()
295 virtual QCString trHierarchicalIndex()
298 virtual QCString trCompoundIndex()
300 if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C"))
309 virtual QCString trFileIndex()
312 virtual QCString trModuleDocumentation()
315 virtual QCString trClassDocumentation()
317 if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C"))
326 virtual QCString trFileDocumentation()
329 virtual QCString trExampleDocumentation()
332 virtual QCString trPageDocumentation()
335 virtual QCString trReferenceManual()
338 virtual QCString trDefines()
341 virtual QCString trFuncProtos()
344 virtual QCString trTypedefs()
347 virtual QCString trEnumerations()
350 virtual QCString trFunctions()
353 virtual QCString trVariables()
356 virtual QCString trEnumerationValues()
360 virtual QCString trDefineDocumentation()
363 virtual QCString trFunctionPrototypeDocumentation()
366 virtual QCString trTypedefDocumentation()
369 virtual QCString trEnumerationTypeDocumentation()
372 virtual QCString trFunctionDocumentation()
375 virtual QCString trVariableDocumentation()
378 virtual QCString trCompounds()
380 if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C"))
389 virtual QCString trGeneratedAt(const char *date,const char *projName)
390 { QCString result=(QCString)"生成于"CN_SPC+date;
391 if (projName) result+=(QCString)CN_SPC", 为"CN_SPC+projName;
392 result+=(QCString)"使用"CN_SPC;
396 virtual QCString trWrittenBy()
401 virtual QCString trClassDiagram(const char *clName)
403 return (QCString)"类"CN_SPC+clName+CN_SPC"继承关系图:";
406 virtual QCString trForInternalUseOnly()
407 { return "仅限内部使用."; }
409 virtual QCString trWarning()
412 virtual QCString trVersion()
415 virtual QCString trDate()
418 virtual QCString trReturns()
421 virtual QCString trSeeAlso()
424 virtual QCString trParameters()
427 virtual QCString trExceptions()
430 virtual QCString trGeneratedBy()
433 //////////////////////////////////////////////////////////////////////////
434 // new since 0.49-990307
435 //////////////////////////////////////////////////////////////////////////
437 virtual QCString trNamespaceList()
440 virtual QCString trNamespaceListDescription(bool extractAll)
442 QCString result="这里列出了所有";
443 if (!extractAll) result+="文档化的";
444 result+="命名空间定义,附带简要说明:";
448 virtual QCString trFriends()
451 //////////////////////////////////////////////////////////////////////////
452 // new since 0.49-990405
453 //////////////////////////////////////////////////////////////////////////
455 virtual QCString trRelatedFunctionDocumentation()
456 { return "友元及相关函数文档"; }
458 //////////////////////////////////////////////////////////////////////////
459 // new since 0.49-990425
460 //////////////////////////////////////////////////////////////////////////
462 virtual QCString trCompoundReference(const char *clName,
463 ClassDef::CompoundType compType,
465 // used as the title of the HTML page of a class/struct/union
467 QCString result=(QCString)clName;
468 if (isTemplate) result+=CN_SPC"模板";
471 case ClassDef::Class: result+="类"; break;
472 case ClassDef::Struct: result+="结构体"; break;
473 case ClassDef::Union: result+="联合体"; break;
474 case ClassDef::Interface: result+="接口"; break;
475 case ClassDef::Protocol: result+="协议"; break;
476 case ClassDef::Category: result+="分类"; break;
477 case ClassDef::Exception: result+="异常"; break;
483 /*! used as the title of the HTML page of a file */
484 virtual QCString trFileReference(const char *fileName)
486 QCString result=fileName;
487 result+=CN_SPC"文件参考";
491 /*! used as the title of the HTML page of a namespace */
492 virtual QCString trNamespaceReference(const char *namespaceName)
493 { QCString result=namespaceName;
494 result+=CN_SPC"命名空间参考";
498 // these are for the member sections of a class, struct or union
499 virtual QCString trPublicMembers()
500 { return "Public 成员函数"; }
502 virtual QCString trPublicSlots()
503 { return "Public 槽"; }
505 virtual QCString trSignals()
508 virtual QCString trStaticPublicMembers()
509 { return "静态 Public 成员函数"; }
511 virtual QCString trProtectedMembers()
512 { return "Protected 成员函数"; }
514 virtual QCString trProtectedSlots()
515 { return "Protected 槽"; }
517 virtual QCString trStaticProtectedMembers()
518 { return "静态 Protected 成员函数"; }
520 virtual QCString trPrivateMembers()
521 { return "Private 成员函数"; }
523 virtual QCString trPrivateSlots()
524 { return "Private 槽"; }
526 virtual QCString trStaticPrivateMembers()
527 { return "静态 Private 成员函数"; }
529 // end of member sections
530 virtual QCString trWriteList(int numEntries)
532 // this function is used to produce a comma-separated list of items.
533 // use generateMarker(i) to indicate where item i should be put.
536 // the inherits list contain `numEntries' classes
537 for (i=0;i<numEntries;i++)
539 // use generateMarker to generate placeholders for the class links!
540 result+=generateMarker(i); // generate marker for entry i in the list
541 // (order is left to right)
543 if (i!=numEntries-1) // not the last entry, so we need a separator
545 if (i<numEntries-2) // not the fore last entry
547 else // the fore last entry
548 result+=CN_SPC", 以及"CN_SPC;
554 /*! used in class documentation to produce a list of base classes,
555 * if class diagrams are disabled.
557 virtual QCString trInheritsList(int numEntries)
558 { return "继承自"CN_SPC+trWriteList(numEntries)+CN_SPC"."; }
560 /*! used in class documentation to produce a list of super classes,
561 * if class diagrams are disabled.
563 virtual QCString trInheritedByList(int numEntries)
565 return "被"CN_SPC+trWriteList(numEntries)+CN_SPC"继承.";
568 /*! used in member documentation blocks to produce a list of
569 * members that are hidden by this one.
571 virtual QCString trReimplementedFromList(int numEntries)
573 return "重载"CN_SPC+trWriteList(numEntries)+CN_SPC".";
576 /*! used in member documentation blocks to produce a list of
577 * all member that overwrite the implementation of this member.
579 virtual QCString trReimplementedInList(int numEntries)
581 return "被"CN_SPC+trWriteList(numEntries)+CN_SPC"重载.";
584 /*! This is put above each page as a link to all members of namespaces. */
585 virtual QCString trNamespaceMembers()
588 /*! This is an introduction to the page with all namespace members */
589 virtual QCString trNamespaceMemberDescription(bool extractAll)
591 QCString result="这里列出了所有";
592 if (!extractAll) result+="文档化的";
593 result+="命名空间成员,并附带";
601 /*! This is used in LaTeX as the title of the chapter with the
602 * index of all namespaces.
604 virtual QCString trNamespaceIndex()
607 /*! This is used in LaTeX as the title of the chapter containing
608 * the documentation of all namespaces.
610 virtual QCString trNamespaceDocumentation()
613 //////////////////////////////////////////////////////////////////////////
614 // new since 0.49-990522
615 //////////////////////////////////////////////////////////////////////////
617 /*! This is used in the documentation before the list of all
618 * namespaces in a file.
620 virtual QCString trNamespaces()
625 //////////////////////////////////////////////////////////////////////////
626 // new since 0.49-990728
627 //////////////////////////////////////////////////////////////////////////
629 /*! This is put at the bottom of a class documentation page and is
630 * followed by a list of files that were used to generate the page.
632 virtual QCString trGeneratedFromFiles(ClassDef::CompoundType compType,
634 { // here s is one of " Class", " Struct" or " Union"
635 // single is true implies a single file
636 QCString result=(QCString)"该";
639 case ClassDef::Class: result+="类"; break;
640 case ClassDef::Struct: result+="结构体"; break;
641 case ClassDef::Union: result+="联合体"; break;
642 case ClassDef::Interface: result+="接口"; break;
643 case ClassDef::Protocol: result+="协议"; break;
644 case ClassDef::Category: result+="分类"; break;
645 case ClassDef::Exception: result+="异常"; break;
647 result+="的文档由以下文件生成:";
651 /*! This is in the (quick) index as a link to the alphabetical compound
654 virtual QCString trAlphabeticalList()
655 { return "按字典顺序排序的列表"; }
657 //////////////////////////////////////////////////////////////////////////
658 // new since 0.49-990901
659 //////////////////////////////////////////////////////////////////////////
661 /*! This is used as the heading text for the retval command. */
662 virtual QCString trReturnValues()
665 /*! This is in the (quick) index as a link to the main page (index.html)
667 virtual QCString trMainPage()
670 /*! This is used in references to page that are put in the LaTeX
671 * documentation. It should be an abbreviation of the word page.
673 virtual QCString trPageAbbreviation()
676 //////////////////////////////////////////////////////////////////////////
677 // new since 0.49-991106
678 //////////////////////////////////////////////////////////////////////////
680 virtual QCString trDefinedAtLineInSourceFile()
682 return "在文件"CN_SPC"@1"CN_SPC"第"CN_SPC"@0"CN_SPC"行定义.";
685 virtual QCString trDefinedInSourceFile()
687 return "在文件"CN_SPC"@0"CN_SPC"中定义.";
690 //////////////////////////////////////////////////////////////////////////
691 // new since 0.49-991205
692 //////////////////////////////////////////////////////////////////////////
694 virtual QCString trDeprecated()
699 //////////////////////////////////////////////////////////////////////////
701 //////////////////////////////////////////////////////////////////////////
703 /*! this text is put before a collaboration diagram */
704 virtual QCString trCollaborationDiagram(const char *clName)
706 return (QCString)clName+CN_SPC"的协作图:";
709 /*! this text is put before an include dependency graph */
710 virtual QCString trInclDepGraph(const char *fName)
712 return (QCString)fName+CN_SPC"的引用(Include)关系图:";
715 /*! header that is put before the list of constructor/destructors. */
716 virtual QCString trConstructorDocumentation()
721 /*! Used in the file documentation to point to the corresponding sources. */
722 virtual QCString trGotoSourceCode()
727 /*! Used in the file sources to point to the corresponding documentation. */
728 virtual QCString trGotoDocumentation()
733 /*! Text for the \\pre command */
734 virtual QCString trPrecondition()
739 /*! Text for the \\post command */
740 virtual QCString trPostcondition()
745 /*! Text for the \\invariant command */
746 virtual QCString trInvariant()
751 /*! Text shown before a multi-line variable/enum initialization */
752 virtual QCString trInitialValue()
757 /*! Text used the source code in the file index */
758 virtual QCString trCode()
763 virtual QCString trGraphicalHierarchy()
768 virtual QCString trGotoGraphicalHierarchy()
773 virtual QCString trGotoTextualHierarchy()
778 virtual QCString trPageIndex()
783 //////////////////////////////////////////////////////////////////////////
785 //////////////////////////////////////////////////////////////////////////
787 virtual QCString trNote()
792 virtual QCString trPublicTypes()
797 virtual QCString trPublicAttribs()
799 if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C"))
808 virtual QCString trStaticPublicAttribs()
810 return "静态 Public 属性";
813 virtual QCString trProtectedTypes()
815 return "Protected 类型";
818 virtual QCString trProtectedAttribs()
820 return "Protected 属性";
823 virtual QCString trStaticProtectedAttribs()
825 return "静态 Protected 属性";
828 virtual QCString trPrivateTypes()
833 virtual QCString trPrivateAttribs()
838 virtual QCString trStaticPrivateAttribs()
840 return "静态 Private 属性";
844 //////////////////////////////////////////////////////////////////////////
846 //////////////////////////////////////////////////////////////////////////
848 /*! Used as a marker that is put before a todo item */
849 virtual QCString trTodo()
854 /*! Used as the header of the todo list */
855 virtual QCString trTodoList()
860 //////////////////////////////////////////////////////////////////////////
862 //////////////////////////////////////////////////////////////////////////
864 virtual QCString trReferencedBy()
869 virtual QCString trRemarks()
874 virtual QCString trAttention()
879 virtual QCString trInclByDepGraph()
881 return "此图展示该文件直接或间接的被哪些文件引用了:";
884 virtual QCString trSince()
889 //////////////////////////////////////////////////////////////////////////
891 //////////////////////////////////////////////////////////////////////////
893 /*! title of the graph legend page */
894 virtual QCString trLegendTitle()
899 /*! page explaining how the dot graph's should be interpreted */
900 virtual QCString trLegendDocs()
902 return "本页将向您解释如何理解由"CN_SPC"doxygen"CN_SPC"生成的图.<p>\n"
905 "/*! 由于截断而使 Invisible 不可见 */\n"
906 "class Invisible { };\n\n"
907 "/*! Truncated 的继承关系将被隐藏 */\n"
908 "class Truncated : public Invisible { };\n\n"
909 "/* 没有被doxygen文档化的类 */\n"
910 "class Undocumented { };\n\n"
911 "/*! public 继承关系的类 */\n"
912 "class PublicBase : public Truncated { };\n\n"
914 "template<class T> class Templ { };\n\n"
915 "/*! protected 继承关系的类 */\n"
916 "class ProtectedBase { };\n\n"
917 "/*! private 继承关系的类 */\n"
918 "class PrivateBase { };\n\n"
919 "/*! 被 Inherited 使用的类 */\n"
920 "class Used { };\n\n"
921 "/*! 继承自其它若干类的超级类 */\n"
922 "class Inherited : public PublicBase,\n"
923 " protected ProtectedBase,\n"
924 " private PrivateBase,\n"
925 " public Undocumented,\n"
926 " public Templ<int>\n"
929 " Used *m_usedClass;\n"
933 "<p><center><img alt=\"\" src=\"graph_legend."+Config_getEnum("DOT_IMAGE_FORMAT")+"\"></center></p>\n"
938 "<li>%灰色填充的矩形 表示上图是由该结构体或类生成.</li>\n"
939 "<li>%黑色边框的矩形 表示已经被文档化的结构体或类.</li>\n"
940 "<li>%灰色边框的矩形 表示未被文档化的结构体或类.</li>\n"
941 "<li>%红色边框的矩形 表示该结构体或类的关系没有被完全显示."
942 "%如果生成的图不能调整到制定的尺寸,有一些关系就会被截断而不显示出来.</li>\n"
948 "<li>%深蓝色的箭头被用于展示 public 的继承关系.</li>\n"
949 "<li>%深绿色的箭头表示 protected 的继承关系.</li>\n"
950 "<li>%深红色的箭头说明了是 privated 的继承关系.</li>\n"
951 "<li>%紫色虚线箭头用来表示两个类之间的聚合关系. 被箭头指向的类的类型的变量,可以通过箭头旁标明的变量去访问.</li>\n"
952 "<li>%黄色虚线箭头表示模板类实例和模板类之间的关系. 箭头旁边标明了模板类实例化的参数.</li>\n"
956 /*! text for the link to the legend page */
957 virtual QCString trLegend()
962 //////////////////////////////////////////////////////////////////////////
964 //////////////////////////////////////////////////////////////////////////
966 /*! Used as a marker that is put before a test item */
967 virtual QCString trTest()
972 /*! Used as the header of the test list */
973 virtual QCString trTestList()
978 //////////////////////////////////////////////////////////////////////////
980 ////////////////////////////////////////////////////////////////////////////
981 /*! Used as a section header for KDE-2 IDL methods */
982 virtual QCString trDCOPMethods()
984 return "DCOP"CN_SPC"成员函数";
987 //////////////////////////////////////////////////////////////////////////
989 ////////////////////////////////////////////////////////////////////////////
991 /*! Used as a section header for IDL properties */
992 virtual QCString trProperties()
997 /*! Used as a section header for IDL property documentation */
998 virtual QCString trPropertyDocumentation()
1003 //////////////////////////////////////////////////////////////////////////
1005 //////////////////////////////////////////////////////////////////////////
1007 /*! Used for Java classes in the summary section of Java packages */
1008 virtual QCString trClasses()
1010 if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C"))
1020 /*! Used as the title of a Java package */
1021 virtual QCString trPackage(const char *name)
1023 return (QCString)"包"CN_SPC+name;
1026 /*! Title of the package index page */
1027 virtual QCString trPackageList()
1032 /*! The description of the package index page */
1033 virtual QCString trPackageListDescription()
1035 return "这里列出所有的包,附带简要说明(如果有的话):";
1038 /*! The link name in the Quick links header for each page */
1039 virtual QCString trPackages()
1044 /*! Text shown before a multi-line define */
1045 virtual QCString trDefineValue()
1050 ////////////////////////////////////////////////////////////////////////////
1051 //// new since 1.2.6
1052 ////////////////////////////////////////////////////////////////////////////
1053 virtual QCString trBug ()
1058 virtual QCString trBugList ()
1060 return "Bug"CN_SPC"列表";
1063 //////////////////////////////////////////////////////////////////////////
1065 //////////////////////////////////////////////////////////////////////////
1067 /*! Used as ansicpg for RTF file
1069 * The following table shows the correlation of Charset name, Charset Value and
1072 * Charset Name Charset Value(hex) Codepage number
1073 * ------------------------------------------------------
1074 * DEFAULT_CHARSET 1 (x01)
1075 * SYMBOL_CHARSET 2 (x02)
1076 * OEM_CHARSET 255 (xFF)
1077 * ANSI_CHARSET 0 (x00) 1252
1078 * RUSSIAN_CHARSET 204 (xCC) 1251
1079 * EE_CHARSET 238 (xEE) 1250
1080 * GREEK_CHARSET 161 (xA1) 1253
1081 * TURKISH_CHARSET 162 (xA2) 1254
1082 * BALTIC_CHARSET 186 (xBA) 1257
1083 * HEBREW_CHARSET 177 (xB1) 1255
1084 * ARABIC _CHARSET 178 (xB2) 1256
1085 * SHIFTJIS_CHARSET 128 (x80) 932
1086 * HANGEUL_CHARSET 129 (x81) 949
1087 * GB2313_CHARSET 134 (x86) 936
1088 * CHINESEBIG5_CHARSET 136 (x88) 950
1092 virtual QCString trRTFansicp()
1097 /*! Used as ansicpg for RTF fcharset
1098 * \see trRTFansicp() for a table of possible values.
1100 virtual QCString trRTFCharSet()
1106 /*! Used as header RTF general index */
1107 virtual QCString trRTFGeneralIndex()
1113 /*! This is used for translation of the word that will possibly
1114 * be followed by a single name or by a list of names
1117 virtual QCString trClass(bool /*first_capital*/, bool /*singular*/)
1120 QCString result((first_capital ? "Class" : "class"));
1121 if (!singular) result+="es";
1127 /*! This is used for translation of the word that will possibly
1128 * be followed by a single name or by a list of names
1131 virtual QCString trFile(bool /*first_capital*/, bool /*singular*/)
1134 QCString result((first_capital ? "File" : "file"));
1135 if (!singular) result+="s";
1142 /*! This is used for translation of the word that will possibly
1143 * be followed by a single name or by a list of names
1146 virtual QCString trNamespace(bool /*first_capital*/, bool /*singular*/)
1149 QCString result((first_capital ? "Namespace" : "namespace"));
1150 if (!singular) result+="s";
1156 /*! This is used for translation of the word that will possibly
1157 * be followed by a single name or by a list of names
1160 virtual QCString trGroup(bool /*first_capital*/, bool /*singular*/)
1163 QCString result((first_capital ? "Group" : "group"));
1164 if (!singular) result+="s";
1170 /*! This is used for translation of the word that will possibly
1171 * be followed by a single name or by a list of names
1174 virtual QCString trPage(bool /*first_capital*/, bool /*singular*/)
1177 QCString result((first_capital ? "Page" : "page"));
1178 if (!singular) result+="s";
1184 /*! This is used for translation of the word that will possibly
1185 * be followed by a single name or by a list of names
1188 virtual QCString trMember(bool /*first_capital*/, bool /*singular*/)
1191 QCString result((first_capital ? "Member" : "member"));
1192 if (!singular) result+="s";
1198 /*! This is used for translation of the word that will possibly
1199 * be followed by a single name or by a list of names
1202 virtual QCString trGlobal(bool /*first_capital*/, bool /*singular*/)
1205 QCString result((first_capital ? "Global" : "global"));
1206 if (!singular) result+="s";
1212 //////////////////////////////////////////////////////////////////////////
1214 //////////////////////////////////////////////////////////////////////////
1216 /*! This text is generated when the \\author command is used and
1217 * for the author section in man pages. */
1218 virtual QCString trAuthor(bool /*first_capital*/, bool /*singular*/)
1221 QCString result((first_capital ? "Author" : "author"));
1222 if (!singular) result+="s";
1228 //////////////////////////////////////////////////////////////////////////
1230 //////////////////////////////////////////////////////////////////////////
1232 /*! This text is put before the list of members referenced by a member
1234 virtual QCString trReferences()
1239 //////////////////////////////////////////////////////////////////////////
1241 //////////////////////////////////////////////////////////////////////////
1243 /*! used in member documentation blocks to produce a list of
1244 * members that are implemented by this one.
1246 virtual QCString trImplementedFromList(int numEntries)
1248 /* return "Implements "+trWriteList(numEntries)+"."; */
1249 return "实现了"CN_SPC+trWriteList(numEntries)+".";
1252 /*! used in member documentation blocks to produce a list of
1253 * all members that implement this abstract member.
1255 virtual QCString trImplementedInList(int numEntries)
1257 /* return "Implemented in "+trWriteList(numEntries)+"."; */
1258 return "在"CN_SPC+trWriteList(numEntries)+CN_SPC"内被实现.";
1261 //////////////////////////////////////////////////////////////////////////
1263 //////////////////////////////////////////////////////////////////////////
1265 /*! used in RTF documentation as a heading for the Table
1268 virtual QCString trRTFTableOfContents()
1270 /* return "Table of Contents"; */
1274 //////////////////////////////////////////////////////////////////////////
1276 //////////////////////////////////////////////////////////////////////////
1278 /*! Used as the header of the list of item that have been
1279 * flagged deprecated
1281 virtual QCString trDeprecatedList()
1286 //////////////////////////////////////////////////////////////////////////
1288 //////////////////////////////////////////////////////////////////////////
1290 /*! Used as a header for declaration section of the events found in
1293 virtual QCString trEvents()
1298 /*! Header used for the documentation section of a class' events. */
1299 virtual QCString trEventDocumentation()
1304 //////////////////////////////////////////////////////////////////////////
1306 //////////////////////////////////////////////////////////////////////////
1308 /*! Used as a heading for a list of Java class types with package scope.
1310 virtual QCString trPackageTypes()
1315 /*! Used as a heading for a list of Java class functions with package
1318 virtual QCString trPackageMembers()
1323 /*! Used as a heading for a list of static Java class functions with
1326 virtual QCString trStaticPackageMembers()
1331 /*! Used as a heading for a list of Java class variables with package
1334 virtual QCString trPackageAttribs()
1339 /*! Used as a heading for a list of static Java class variables with
1342 virtual QCString trStaticPackageAttribs()
1347 //////////////////////////////////////////////////////////////////////////
1349 //////////////////////////////////////////////////////////////////////////
1351 /*! Used in the quick index of a class/file/namespace member list page
1352 * to link to the unfiltered list of all members.
1354 virtual QCString trAll()
1359 /*! Put in front of the call graph for a function. */
1360 virtual QCString trCallGraph()
1365 //////////////////////////////////////////////////////////////////////////
1367 //////////////////////////////////////////////////////////////////////////
1369 /*! When the search engine is enabled this text is put in the header
1370 * of each page before the field where one can enter the text to search
1373 virtual QCString trSearchForIndex()
1377 /*! This string is used as the title for the page listing the search
1380 virtual QCString trSearchResultsTitle()
1385 /*! This string is put just before listing the search results. The
1386 * text can be different depending on the number of documents found.
1387 * Inside the text you can put the special marker $num to insert
1388 * the number representing the actual number of search results.
1389 * The @a numDocuments parameter can be either 0, 1 or 2, where the
1390 * value 2 represents 2 or more matches. HTML markup is allowed inside
1391 * the returned string.
1393 virtual QCString trSearchResults(int numDocuments)
1395 if (numDocuments==0)
1397 return "抱歉,未找到与您查询相符的文档.";
1399 else if (numDocuments==1)
1401 return "找到<b>1</b>篇与您查询相符的文档.";
1405 return "找到<b>$num</b>篇与您查询相符的文档."
1409 /*! This string is put before the list of matched words, for each search
1410 * result. What follows is the list of words that matched the query.
1412 virtual QCString trSearchMatches()
1417 //////////////////////////////////////////////////////////////////////////
1419 //////////////////////////////////////////////////////////////////////////
1421 /*! This is used in HTML as the title of page with source code for file filename
1423 virtual QCString trSourceFile(QCString& filename)
1425 /* return filename + " Source File"; */
1426 return filename + CN_SPC"源文件";
1428 //////////////////////////////////////////////////////////////////////////
1430 //////////////////////////////////////////////////////////////////////////
1432 /*! This is used as the name of the chapter containing the directory
1435 virtual QCString trDirIndex()
1440 /*! This is used as the name of the chapter containing the documentation
1441 * of the directories.
1443 virtual QCString trDirDocumentation()
1448 /*! This is used as the title of the directory index and also in the
1449 * Quick links of an HTML page, to link to the directory hierarchy.
1451 virtual QCString trDirectories()
1454 /*! This returns a sentences that introduces the directory hierarchy.
1455 * and the fact that it is sorted alphabetically per level
1457 virtual QCString trDirDescription()
1459 return "此继承关系列表按字典顺序粗略的排序:"CN_SPC;
1462 /*! This returns the title of a directory page. The name of the
1463 * directory is passed via \a dirName.
1465 virtual QCString trDirReference(const char *dirName)
1467 QCString result=dirName;
1468 result+=CN_SPC"目录参考";
1472 /*! This returns the word directory with or without starting capital
1473 * (\a first_capital) and in sigular or plural form (\a singular).
1475 virtual QCString trDir(bool /*first_capital*/, bool /*singular*/)
1480 //////////////////////////////////////////////////////////////////////////
1482 //////////////////////////////////////////////////////////////////////////
1484 /*! This text is added to the documentation when the \\overload command
1485 * is used for a overloaded function.
1487 virtual QCString trOverloadText()
1489 return "这是为便于使用而提供的一个重载成员函数."
1490 "与上面的函数相比,它接受不同类型的参数.";
1493 //////////////////////////////////////////////////////////////////////////
1495 //////////////////////////////////////////////////////////////////////////
1497 /*! This is used to introduce a caller (or called-by) graph */
1498 virtual QCString trCallerGraph()
1500 return "这是这个函数的调用关系图:";
1503 /*! This is used in the documentation of a file/namespace before the list
1504 * of documentation blocks for enumeration values
1506 virtual QCString trEnumerationValueDocumentation()
1511 //////////////////////////////////////////////////////////////////////////
1512 // new since 1.5.4 (mainly for Fortran)
1513 //////////////////////////////////////////////////////////////////////////
1515 /*! header that is put before the list of member subprograms (Fortran). */
1516 virtual QCString trMemberFunctionDocumentationFortran()
1517 { return "成员函数/子程序说明"; }
1519 /*! This is put above each page as a link to the list of annotated data types (Fortran). */
1520 virtual QCString trCompoundListFortran()
1521 { return "数据类型列表"; }
1523 /*! This is put above each page as a link to all members of compounds (Fortran). */
1524 virtual QCString trCompoundMembersFortran()
1527 /*! This is an introduction to the annotated compound list (Fortran). */
1528 virtual QCString trCompoundListDescriptionFortran()
1529 { return "带简要描述的数据类型列表:"; }
1531 /*! This is an introduction to the page with all data types (Fortran). */
1532 virtual QCString trCompoundMembersDescriptionFortran(bool extractAll)
1534 QCString result="这里列出了所有";
1539 result+="数据类型成员,并附带";
1540 //result+=" with links to ";
1552 /*! This is used in LaTeX as the title of the chapter with the
1553 * annotated compound index (Fortran).
1555 virtual QCString trCompoundIndexFortran()
1556 { return "数据类型索引"; }
1559 /*! This is used in LaTeX as the title of the chapter containing
1560 * the documentation of all data types (Fortran).
1562 virtual QCString trTypeDocumentation()
1563 { return "数据类型文档"; }
1565 /*! This is used in the documentation of a file as a header before the
1566 * list of (global) subprograms (Fortran).
1568 virtual QCString trSubprograms()
1569 { return "函数/子程序"; }
1571 /*! This is used in the documentation of a file/namespace before the list
1572 * of documentation blocks for subprograms (Fortran)
1574 virtual QCString trSubprogramDocumentation()
1575 { return "函数/子程序说明"; }
1578 /*! This is used in the documentation of a file/namespace/group before
1579 * the list of links to documented compounds (Fortran)
1581 virtual QCString trDataTypes()
1584 /*! used as the title of page containing all the index of all modules (Fortran). */
1585 virtual QCString trModulesList()
1588 /*! used as an introduction to the modules list (Fortran) */
1589 virtual QCString trModulesListDescription(bool extractAll)
1591 QCString result="这里列出了所有";
1592 if (!extractAll) result+="文档化的";
1593 result+="模块,并附带简要说明:";
1597 /*! used as the title of the HTML page of a module/type (Fortran) */
1598 virtual QCString trCompoundReferenceFortran(const char *clName,
1599 ClassDef::CompoundType compType,
1602 QCString result=(QCString)clName;
1605 case ClassDef::Class: result+=CN_SPC"模块"; break;
1606 case ClassDef::Struct: result+=CN_SPC"类型"; break;
1607 case ClassDef::Union: result+=CN_SPC"联合体"; break;
1608 case ClassDef::Interface: result+=CN_SPC"接口"; break;
1609 case ClassDef::Protocol: result+=CN_SPC"协议"; break;
1610 case ClassDef::Category: result+=CN_SPC"目录"; break;
1611 case ClassDef::Exception: result+=CN_SPC"异常"; break;
1613 if (isTemplate) result+="模板"CN_SPC;
1618 /*! used as the title of the HTML page of a module (Fortran) */
1619 virtual QCString trModuleReference(const char *namespaceName)
1621 QCString result=namespaceName;
1622 result += CN_SPC"模块参考手册";
1626 /*! This is put above each page as a link to all members of modules. (Fortran) */
1627 virtual QCString trModulesMembers()
1630 /*! This is an introduction to the page with all modules members (Fortran) */
1631 virtual QCString trModulesMemberDescription(bool extractAll)
1633 // QCString result="Here is a list of all ";
1634 // if (!extractAll) result+="documented ";
1635 // result+="module members with links to ";
1638 // result+="the module documentation for each member:";
1642 // result+="the modules they belong to:";
1646 return "这里是有文档的模块成员列表,含有到每个成员所在模块的文档的链接:";
1648 return "这里是模块成员列表,含有到成员所属的模块的链接:";
1652 /*! This is used in LaTeX as the title of the chapter with the
1653 * index of all modules (Fortran).
1655 virtual QCString trModulesIndex()
1656 // { return "Modules Index"; }
1659 /*! This is used for translation of the word that will possibly
1660 * be followed by a single name or by a list of names
1663 virtual QCString trModule(bool, bool)
1665 // QCString result((first_capital ? "Module" : "module"));
1666 // if (!singular) result+="s";
1670 /*! This is put at the bottom of a module documentation page and is
1671 * followed by a list of files that were used to generate the page.
1673 virtual QCString trGeneratedFromFilesFortran(ClassDef::CompoundType compType,
1676 QCString result="该";
1679 case ClassDef::Class: result+=CN_SPC"模块"; break;
1680 case ClassDef::Struct: result+=CN_SPC"结构体"; break;
1681 case ClassDef::Union: result+=CN_SPC"联合体"; break;
1682 case ClassDef::Interface: result+=CN_SPC"接口"; break;
1683 case ClassDef::Protocol: result+=CN_SPC"协议"; break;
1684 case ClassDef::Category: result+=CN_SPC"目录"; break;
1685 case ClassDef::Exception: result+=CN_SPC"异常"; break;
1687 result+=CN_SPC"的文档由以下文件生成:";
1691 /*! This is used for translation of the word that will possibly
1692 * be followed by a single name or by a list of names
1695 virtual QCString trType(bool, bool)
1700 /*! This is used for translation of the word that will possibly
1701 * be followed by a single name or by a list of names
1704 virtual QCString trSubprogram(bool, bool)
1709 /*! C# Type Constraint list */
1710 virtual QCString trTypeConstraints()
1715 //////////////////////////////////////////////////////////////////////////
1717 //////////////////////////////////////////////////////////////////////////
1718 virtual QCString trDirRelation(const char *name)
1720 // return QCString(name)+" Relation";
1722 return QCString(name)+CN_SPC"关系";
1725 virtual QCString trLoading()
1730 virtual QCString trGlobalNamespace()
1735 virtual QCString trSearching()
1740 virtual QCString trNoMatches()
1745 //////////////////////////////////////////////////////////////////////////
1747 //////////////////////////////////////////////////////////////////////////
1749 virtual QCString trDirDependency(const char *name)
1751 return QCString(name)+CN_SPC"的目录依赖关系图";
1754 virtual QCString trFileIn(const char *name)
1756 return (QCString)"文件在"+CN_SPC+name;
1759 virtual QCString trIncludesFileIn(const char *name)
1761 return (QCString)"在"CN_SPC+name+CN_SPC"中引用";
1764 virtual QCString trDateTime(int year,int month,int day,int dayOfWeek,
1765 int hour,int minutes,int seconds,
1768 static const char *days[] = { "一","二","三","四","五","六","日" };
1769 static const char *months[] = { "一","二","三","四","五","六","七","八","九","十","十一","十二" };
1773 sdate.sprintf("%d年"CN_SPC"%s月"CN_SPC"%d日"CN_SPC"星期%s",year, months[month-1], day, days[dayOfWeek-1]);
1778 stime.sprintf(" %.2d:%.2d:%.2d",hour,minutes,seconds);
1784 //////////////////////////////////////////////////////////////////////////
1786 //////////////////////////////////////////////////////////////////////////
1788 /*! Header for the page with bibliographic citations */
1789 virtual QCString trCiteReferences()
1792 /*! Text for copyright paragraph */
1793 virtual QCString trCopyright()
1796 /*! Header for the graph showing the directory dependencies */
1797 virtual QCString trDirDepGraph(const char *name)
1799 return QCString(name)+CN_SPC"的目录依赖关系图";
1802 //////////////////////////////////////////////////////////////////////////
1804 //////////////////////////////////////////////////////////////////////////
1806 /*! Detail level selector shown for hierarchical indices */
1807 virtual QCString trDetailLevel()
1810 /*! Section header for list of template parameters */
1811 virtual QCString trTemplateParameters()
1814 /*! Used in dot graph when UML_LOOK is enabled and there are many fields */
1815 virtual QCString trAndMore(const QCString &number)
1816 { return "和"CN_SPC+number+CN_SPC"更多..."; }
1818 /*! Used file list for a Java enum */
1819 virtual QCString trEnumGeneratedFromFiles(bool /*single*/)
1820 { return "枚举说明文档从下列文件生成:"; }
1822 /*! Header of a Java enum page (Java enums are represented as classes). */
1823 virtual QCString trEnumReference(const char *name)
1824 { return QCString(name)+CN_SPC"枚举类型参考"; }
1826 /*! Used for a section containing inherited members */
1827 virtual QCString trInheritedFrom(const char *members,const char *what)
1828 { return QCString(members)+CN_SPC"继承自"CN_SPC+what; }
1830 /*! Header of the sections with inherited members specific for the
1833 virtual QCString trAdditionalInheritedMembers()
1834 { return "额外继承的成员函数"; }
1836 //////////////////////////////////////////////////////////////////////////