translator_cn.h

Go to the documentation of this file.
00001 /******************************************************************************
00002  *
00003  * 
00004  *
00005  * Copyright (C) 1997-2008 by Dimitri van Heesch.
00006  *
00007  * Permission to use, copy, modify, and distribute this software and its
00008  * documentation under the terms of the GNU General Public License is hereby 
00009  * granted. No representations are made about the suitability of this software 
00010  * for any purpose. It is provided "as is" without express or implied warranty.
00011  * See the GNU General Public License for more details.
00012  *
00013  * Documents produced by Doxygen are derivative works derived from the
00014  * input used in their production; they are not affected by this license.
00015  *
00016  */
00017 
00018 #ifndef TRANSLATOR_CN_H
00019 #define TRANSLATOR_CN_H
00020 
00025 #define CN_SPC
00026 
00027 class TranslatorChinese : public Translator
00028 {
00029   public:
00037     virtual QCString idLanguage()
00038     { return "chinese"; }
00039 
00054     virtual QCString latexLanguageSupportCommand()
00055     {
00056       return "";
00057     }
00058 
00059 
00061     virtual QCString idLanguageCharset()
00062     { return "gb2312"; }
00063 
00066     virtual QCString trRelatedFunctions()
00067     { return "相关函数"; }
00068 
00070     virtual QCString trRelatedSubscript()
00071     { return "(注意:这些不是成员函数。)"; }
00072 
00076     virtual QCString trDetailedDescription()
00077     { return "详细描述"; }
00078 
00080     virtual QCString trMemberTypedefDocumentation()
00081     { return "成员类型定义文档"; }
00082 
00084     virtual QCString trMemberEnumerationDocumentation()
00085     { return "成员枚举类型文档"; }
00086 
00088     virtual QCString trMemberFunctionDocumentation()
00089     { return "成员函数文档"; }
00090 
00092     virtual QCString trMemberDataDocumentation()
00093     { 
00094                         if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C")) 
00095                         {
00096                                 return "字段文档"; 
00097                         }
00098                         else {
00099                                 return "成员数据文档"; 
00100                         }
00101                 }
00102 
00104     virtual QCString trMore()
00105     { return "更多..."; }
00106 
00108     virtual QCString trListOfAllMembers()
00109     { return "所有成员的列表。"; }
00110 
00112     virtual QCString trMemberList()
00113     { return "成员列表"; }
00114 
00116     virtual QCString trThisIsTheListOfAllMembers()
00117     { return "成员的完整列表,这些成员属于"CN_SPC; }
00118 
00120     virtual QCString trIncludingInheritedMembers()
00121     { return ",包括所有继承而来的成员"; }
00122 
00126     virtual QCString trGeneratedAutomatically(const char *s)
00127     {
00128                         QCString result;
00129       if (s) result=(QCString)"为"CN_SPC+s+",";
00130       result+="由"CN_SPC"Doyxgen"CN_SPC"通过分析源代码自动生成。"; 
00131       return result;
00132     }
00133 
00135     virtual QCString trEnumName()
00136     { return "枚举名称"; }
00137 
00139     virtual QCString trEnumValue()
00140     { return "枚举值"; }
00141 
00143     virtual QCString trDefinedIn()
00144     { return "定义于"CN_SPC; }
00145 
00146                 // quick reference sections
00147 
00148 
00152     virtual QCString trModules()
00153     { return "模块"; }
00154 
00156                 virtual QCString trClassHierarchy()
00157     { return "类继承关系"; }
00158 
00160                 virtual QCString trCompoundList()
00161     { 
00162                         if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C")) {
00163                                 return "数据结构"; 
00164                         }
00165                         else {
00166                                 return "组合类型列表"; 
00167                         }
00168                 }
00169 
00171     virtual QCString trFileList()
00172     { return "文件列表"; }
00173 
00175     virtual QCString trCompoundMembers()
00176     { 
00177                         if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C")) { 
00178                                 return "数据字段"; 
00179                         }
00180                         else {
00181                                 return "组合类型成员"; 
00182                         }
00183                 }
00184 
00186     virtual QCString trFileMembers()
00187     { 
00188                         if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C")) {
00189                                 return "全局定义"; 
00190                         } else {
00191                                 return "文件成员"; 
00192                         }
00193                 }
00194 
00196     virtual QCString trRelatedPages()
00197     { return "相关页面"; }
00198 
00200     virtual QCString trExamples()
00201     { return "示例"; }
00202 
00203     virtual QCString trSearch()
00204     { return "搜索"; }
00205 
00206     virtual QCString trClassHierarchyDescription()
00207     { return "此列表基本按字典顺序排序:"; }
00208 
00209     virtual QCString trFileListDescription(bool extractAll)
00210     {
00211                 QCString result="这里列出所有";
00212       if (!extractAll) result+="文档化的";
00213       result+="文件,附带简要说明:";
00214       return result;
00215     }
00216 
00217     virtual QCString trCompoundListDescription()
00218     { 
00219 
00220                         if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C"))
00221                         {
00222                                 return "这里列出所有数据结构,附带简要说明:"; 
00223                         }
00224                         else
00225                         {
00226                                 return "这里列出所有类、结构、联合以及接口定义,附带简要说明:"; 
00227                         }
00228     }
00229 
00230     virtual QCString trCompoundMembersDescription(bool extractAll)
00231     {
00232                 QCString result="这里列出所有";
00233       if (!extractAll) {
00234                                 result+="文档化的";
00235                         }
00236                         if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C")) {
00237                                 result+="结构和联合的成员,附带";
00238                         }
00239                         else {
00240                                 result+="类成员,附带";
00241                         }
00242 
00243       if (extractAll) {
00244                                 if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C")) {
00245                                         result+="所在结构/联合的文档的链接:";
00246                                 }
00247                                 else {
00248                                         result+="所在类的文档的链接:";
00249                                 }
00250                         }
00251       else {
00252                                 if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C")) {
00253                                         result+="所属结构/联合的链接:";
00254                                 }
00255                                 else {
00256                                         result+="所属类的链接:";
00257                                 }
00258                         }
00259       return result;
00260     }
00261 
00262     virtual QCString trFileMembersDescription(bool extractAll)
00263     {
00264                 QCString result="这里列出所有";
00265       if (!extractAll) 
00266                                 result +="文档化的";
00267 
00268                         if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C")) {
00269                                 result +="函数,变量,宏,枚举和类型定义,附带";
00270                         } 
00271                         else {
00272                                 result +="文件成员,附带";
00273                         }
00274 
00275       if (extractAll) 
00276                                 result+="所在文件的文档的链接:";
00277       else 
00278                                 result+="所在文件的链接:";
00279       return result;
00280     }
00281 
00282     virtual QCString trExamplesDescription()
00283     { return "这里列出所有示例:"; }
00284 
00285     virtual QCString trRelatedPagesDescription()
00286     { return "这里列出所有相关的页面:"; }
00287 
00288     virtual QCString trModulesDescription()
00289     { return "这里列出所有模块"; }
00290 
00291     virtual QCString trDocumentation()
00292     { return "文档"; }
00293 
00294     virtual QCString trModuleIndex()
00295     { return "模块索引"; }
00296 
00297     virtual QCString trHierarchicalIndex()
00298     { return "继承关系索引"; }
00299 
00300     virtual QCString trCompoundIndex()
00301     { 
00302                         if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C"))
00303                         {
00304                                 return "数据结构索引"; 
00305                         } 
00306                         else {
00307                                 return "组合类型索引"; 
00308                         }
00309                 }
00310 
00311     virtual QCString trFileIndex() 
00312     { return "文件索引"; }
00313 
00314     virtual QCString trModuleDocumentation()
00315     { return "模块文档"; }
00316 
00317     virtual QCString trClassDocumentation()
00318     { 
00319                         if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C"))
00320                         {
00321                                 return "数据结构文档";
00322                         }
00323                         else {
00324                                 return "类文档"; 
00325                         }
00326                 }
00327 
00328     virtual QCString trFileDocumentation()
00329     { return "文件文档"; }
00330 
00331     virtual QCString trExampleDocumentation()
00332     { return "示例文档"; }
00333 
00334     virtual QCString trPageDocumentation()
00335     { return "页面文档"; }
00336 
00337     virtual QCString trReferenceManual()
00338     { return "参考手册"; }
00339 
00340     virtual QCString trDefines()
00341     { return "宏定义"; }
00342 
00343     virtual QCString trFuncProtos()
00344     { return "函数原型"; }
00345 
00346     virtual QCString trTypedefs()
00347     { return "类型定义"; }
00348 
00349     virtual QCString trEnumerations()
00350     { return "枚举"; }
00351 
00352     virtual QCString trFunctions()
00353     { return "函数"; }
00354 
00355     virtual QCString trVariables()
00356     { return "变量"; }
00357 
00358     virtual QCString trEnumerationValues()
00359     { return "枚举值"; }
00360 
00361 
00362                 virtual QCString trDefineDocumentation()
00363     { return "宏定义文档"; }
00364 
00365                 virtual QCString trFunctionPrototypeDocumentation()
00366     { return "函数原型文档"; }
00367 
00368                 virtual QCString trTypedefDocumentation()
00369     { return "类型定义文档"; }
00370 
00371                 virtual QCString trEnumerationTypeDocumentation()
00372     { return "枚举类型文档"; }
00373 
00374                 virtual QCString trFunctionDocumentation()
00375     { return "函数文档"; }
00376 
00377                 virtual QCString trVariableDocumentation()
00378     { return "变量文档"; }
00379 
00380                 virtual QCString trCompounds()
00381     { 
00382                         if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C"))
00383                         { 
00384                                 return "数据结构";
00385                         }
00386                         else {
00387                                 return "组合类型"; 
00388                         }
00389                 }
00390 
00391                 virtual QCString trGeneratedAt(const char *date,const char *projName)
00392     { 
00393                 QCString result=(QCString)"Generated at "+date;
00394       if (projName) result+=(QCString)" for "+projName;
00395       result+=(QCString)" by";
00396       return result;
00397     }
00398 
00399                 virtual QCString trWrittenBy()
00400     {
00401       return "written by";
00402     }
00403 
00404                 virtual QCString trClassDiagram(const char *clName)
00405     {
00406       return (QCString)"继承图,类"CN_SPC+clName;
00407     }
00408 
00409                 virtual QCString trForInternalUseOnly()
00410     { return "仅限内部使用。"; }
00411 
00412                 virtual QCString trWarning()
00413     { return "警告"; }
00414 
00415                 virtual QCString trVersion()
00416     { return "版本"; }
00417 
00418                 virtual QCString trDate()
00419     { return "日期"; }
00420 
00421                 virtual QCString trReturns()
00422     { return "返回"; }
00423 
00424                 virtual QCString trSeeAlso()
00425     { return "参见"; }
00426 
00427                 virtual QCString trParameters()
00428     { return "参数"; }
00429 
00430                 virtual QCString trExceptions()
00431     { return "异常"; }
00432 
00433                 virtual QCString trGeneratedBy()
00434     { return "制作者"; }
00435     
00437 // new since 0.49-990307 
00439     
00440                 virtual QCString trNamespaceList()
00441     { return "名字空间列表"; }
00442 
00443                 virtual QCString trNamespaceListDescription(bool extractAll)
00444     {
00445                 QCString result="这里列出所有";
00446       if (!extractAll) result+="文档化的";
00447       result+="名字空间定义,附带简要说明:";
00448       return result;
00449     }
00450 
00451                 virtual QCString trFriends()
00452     { return "友元"; }
00453 
00455 // new since 0.49-990405
00457     
00458                 virtual QCString trRelatedFunctionDocumentation()
00459     { return "友元及相关函数文档"; }
00460     
00462 // new since 0.49-990425
00464 
00465                 virtual QCString trCompoundReference(const char *clName,
00466                                  ClassDef::CompoundType compType,
00467                                  bool isTemplate)
00468       // used as the title of the HTML page of a class/struct/union
00469     {
00470                 QCString result=(QCString)clName;
00471       if (isTemplate) result+=CN_SPC"模板";
00472       switch(compType)
00473       {
00474         case ClassDef::Class:  result+="类"; break;
00475         case ClassDef::Struct: result+="结构"; break;
00476         case ClassDef::Union:  result+="联合"; break;
00477         case ClassDef::Interface:  result+="接口"; break;
00478         case ClassDef::Protocol:   result+="协议"; break;
00479         case ClassDef::Category:   result+="分类"; break;
00480         case ClassDef::Exception:  result+="异常"; break;
00481       }
00482       result+="参考";
00483       return result;
00484     }
00485 
00486                 virtual QCString trFileReference(const char *fileName)
00487       // used as the title of the HTML page of a file
00488     {
00489                 QCString result=fileName;
00490       result+=CN_SPC"文件参考"; 
00491       return result;
00492     }
00493 
00494                 virtual QCString trNamespaceReference(const char *namespaceName)
00495       // used as the title of the HTML page of a namespace
00496     {
00497                 QCString result=namespaceName;
00498       result+=CN_SPC"名字空间参考";
00499       return result;
00500     }
00501     
00502     // these are for the member sections of a class, struct or union 
00503                 virtual QCString trPublicMembers()
00504     { return "公有成员"; }
00505 
00506                 virtual QCString trPublicSlots()
00507     { return "公有槽"; }
00508 
00509                 virtual QCString trSignals()
00510     { return "信号"; }
00511 
00512                 virtual QCString trStaticPublicMembers()
00513     { return "静态公有成员"; }
00514 
00515                 virtual QCString trProtectedMembers()
00516     { return "保护成员"; }
00517 
00518                 virtual QCString trProtectedSlots()
00519     { return "保护槽"; }
00520 
00521                 virtual QCString trStaticProtectedMembers()
00522     { return "静态保护成员"; }
00523                 
00524                 virtual QCString trPrivateMembers()
00525     { return "私有成员"; }
00526                 
00527                 virtual QCString trPrivateSlots()
00528     { return "私有槽"; }
00529                 
00530                 virtual QCString trStaticPrivateMembers()
00531     { return "静态私有成员"; }
00532                 
00533     // end of member sections 
00534     
00535                 virtual QCString trWriteList(int numEntries)
00536     {
00537       // this function is used to produce a comma-separated list of items.
00538       // use generateMarker(i) to indicate where item i should be put.
00539                 QCString result;
00540       int i;
00541       // the inherits list contain `numEntries' classes
00542       for (i=0;i<numEntries;i++) 
00543       {
00544         // use generateMarker to generate placeholders for the class links!
00545         result+=generateMarker(i); // generate marker for entry i in the list 
00546                                    // (order is left to right)
00547         
00548         if (i!=numEntries-1)  // not the last entry, so we need a separator
00549         {
00550           if (i<numEntries-2) // not the fore last entry 
00551             result+="、";
00552           else                // the fore last entry
00553             result+=CN_SPC"及"CN_SPC;
00554         }
00555       }
00556       return result; 
00557     }
00558     
00559                 virtual QCString trInheritsList(int numEntries)
00560       // used in class documentation to produce a list of base classes,
00561       // if class diagrams are disabled.
00562     {
00563       return "继承自"CN_SPC+trWriteList(numEntries)+"。";
00564     }
00565 
00566                 virtual QCString trInheritedByList(int numEntries)
00567       // used in class documentation to produce a list of super classes,
00568       // if class diagrams are disabled.
00569     {
00570       return "被"CN_SPC+trWriteList(numEntries)+CN_SPC"继承.";
00571     }
00572                 
00573                 virtual QCString trReimplementedFromList(int numEntries)
00574       // used in member documentation blocks to produce a list of 
00575       // members that are hidden by this one.
00576     {
00577       return "重载"CN_SPC+trWriteList(numEntries)+"。";
00578     }
00579                 
00580                 virtual QCString trReimplementedInList(int numEntries)
00581     {
00582       // used in member documentation blocks to produce a list of
00583       // all member that overwrite the implementation of this member.
00584       return "被"CN_SPC+trWriteList(numEntries)+CN_SPC"重载。";
00585     }
00586 
00587                 virtual QCString trNamespaceMembers()
00588       // This is put above each page as a link to all members of namespaces.
00589     { return "名字空间成员"; }
00590                 
00591                 virtual QCString trNamespaceMemberDescription(bool extractAll)
00592       // This is an introduction to the page with all namespace members
00593     { 
00594                 QCString result="这里列出了所有";
00595       if (!extractAll) result+="文档化的";
00596       result+="名字空间成员,附带";
00597       if (extractAll) 
00598         result+="所在类的文档的链接:";
00599       else 
00600         result+="所在类的链接:";
00601       return result;
00602     }
00603 
00604                 virtual QCString trNamespaceIndex()
00605       // This is used in LaTeX as the title of the chapter with the 
00606       // index of all namespaces.
00607     { return "名字空间索引"; }
00608 
00609                 virtual QCString trNamespaceDocumentation()
00610       // This is used in LaTeX as the title of the chapter containing
00611       // the documentation of all namespaces.
00612     { return "名字空间文档"; }
00613 
00615 // new since 0.49-990522
00617 
00621                 virtual QCString trNamespaces()
00622     {
00623       // return "Namespaces";
00624       return "名字空间";
00625     }
00626 
00628 // new since 0.49-990728
00630 
00634                 virtual QCString trGeneratedFromFiles(ClassDef::CompoundType compType,
00635         bool)
00636     { // here s is one of " Class", " Struct" or " Union"
00637       // single is true implies a single file
00638                 QCString result=(QCString)"该";
00639       switch(compType)
00640       {
00641         case ClassDef::Class:      result+="类"; break;
00642         case ClassDef::Struct:     result+="结构"; break;
00643         case ClassDef::Union:      result+="联合"; break;
00644         case ClassDef::Interface:  result+="接口"; break;
00645         case ClassDef::Protocol:   result+="协议"; break;
00646         case ClassDef::Category:   result+="分类"; break;
00647         case ClassDef::Exception:  result+="异常"; break;
00648       }
00649       result+="的文档由以下文件生成:";
00650       return result;
00651     }
00652 
00656                 virtual QCString trAlphabeticalList()
00657     { return "按字典顺序排序的列表"; }
00658 
00660 // new since 0.49-990901
00662 
00664                 virtual QCString trReturnValues()
00665     { return "返回值"; }
00666 
00669                 virtual QCString trMainPage()
00670     { return "首页"; }
00671 
00675                 virtual QCString trPageAbbreviation()
00676     { return "p."; }
00677 
00679 // new since 0.49-991106
00681 
00682                 virtual QCString trDefinedAtLineInSourceFile()
00683     {
00684       return "在文件"CN_SPC"@1"CN_SPC"第"CN_SPC"@0"CN_SPC"行定义。";
00685     }
00686 
00687                 virtual QCString trDefinedInSourceFile()
00688     {
00689       return "在文件"CN_SPC"@0"CN_SPC"中定义。";
00690     }
00691 
00693 // new since 0.49-991205
00695 
00696                 virtual QCString trDeprecated()
00697     {
00698       return "Deprecated";
00699     }
00700 
00702 // new since 1.0.0
00704 
00706                 virtual QCString trCollaborationDiagram(const char *clName)
00707     {
00708       return (QCString)clName+CN_SPC"合作图:";
00709     }
00710 
00712                 virtual QCString trInclDepGraph(const char *fName)
00713     {
00714       return (QCString)fName+CN_SPC"包含/依赖关系图:";
00715     }
00716 
00718                 virtual QCString trConstructorDocumentation()
00719     {
00720       return "构造及析构函数文档"; 
00721     }
00722 
00724                 virtual QCString trGotoSourceCode()
00725     {
00726       return "浏览该文件的源代码。";
00727     }
00728 
00730                 virtual QCString trGotoDocumentation()
00731     {
00732       return "浏览该文件的文档。";
00733     }
00734 
00736                 virtual QCString trPrecondition()
00737     {
00738       return "前置条件";
00739     }
00740 
00742                 virtual QCString trPostcondition()
00743     {
00744       return "后置条件";
00745     }
00746 
00748                 virtual QCString trInvariant()
00749     {
00750       return "不变性";
00751     }
00752 
00754                 virtual QCString trInitialValue()
00755     {
00756       return "初始化序列:";
00757     }
00758 
00760                 virtual QCString trCode()
00761     {
00762       return "代码";
00763     }
00764 
00765                 virtual QCString trGraphicalHierarchy()
00766     {
00767       return "类继承关系图";
00768     }
00769 
00770                 virtual QCString trGotoGraphicalHierarchy()
00771     {
00772       return "浏览类继承关系图";
00773     }
00774 
00775                 virtual QCString trGotoTextualHierarchy()
00776     {
00777       return "浏览类继承关系表";
00778     }
00779 
00780                 virtual QCString trPageIndex()
00781     {
00782       return "页面索引";
00783     }
00784 
00786 // new since 1.1.0
00788     
00789                 virtual QCString trNote()
00790     {
00791       return "注解";
00792     }
00793 
00794                 virtual QCString trPublicTypes()
00795     {
00796       return "公有类型";
00797     }
00798 
00799                 virtual QCString trPublicAttribs()
00800     {
00801                          if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C"))
00802                          { 
00803                                  return "数据成员";
00804                          }
00805                          else {
00806                                  return "公有属性";
00807                          }
00808     }
00809 
00810                 virtual QCString trStaticPublicAttribs()
00811     {
00812       return "静态公有属性";
00813     }
00814 
00815                 virtual QCString trProtectedTypes()
00816     {
00817       return "保护类型";
00818     }
00819 
00820                 virtual QCString trProtectedAttribs()
00821     {
00822       return "保护属性";
00823     }
00824 
00825                 virtual QCString trStaticProtectedAttribs()
00826     {
00827       return "静态保护属性";
00828     }
00829 
00830                 virtual QCString trPrivateTypes()
00831     {
00832       return "私有类型";
00833     }
00834 
00835                 virtual QCString trPrivateAttribs()
00836     {
00837       return "私有属性";
00838     }
00839 
00840                 virtual QCString trStaticPrivateAttribs()
00841     {
00842       return "静态私有属性";
00843     }
00844 
00845 
00847 // new since 1.1.3
00849 
00851                 virtual QCString trTodo()
00852     {
00853       return "TODO";
00854     }
00855 
00857                 virtual QCString trTodoList()
00858     {
00859       return "TODO"CN_SPC"列表";
00860     }
00861 
00863 // new since 1.1.4
00865 
00866                 virtual QCString trReferencedBy()
00867     {
00868       return "参考自";
00869     }
00870 
00871                 virtual QCString trRemarks()
00872     {
00873       return "评论";
00874     }
00875 
00876                 virtual QCString trAttention()
00877     {
00878       return "注意";
00879     }
00880 
00881                 virtual QCString trInclByDepGraph()
00882     {
00883       return "此图展示直接或间接包含该文件的文件:";
00884     }
00885 
00886                 virtual QCString trSince()
00887     {
00888       return "自从";
00889     }
00890     
00892 // new since 1.1.5
00894 
00896                 virtual QCString trLegendTitle()
00897     {
00898       return "图例";
00899     }
00900 
00902                 virtual QCString trLegendDocs()
00903     {
00904       return 
00905         "本页向您展示如何理解由"CN_SPC"Doxygen"CN_SPC"生成的图形。<p>\n"
00906         "请考虑如下示例:\n"
00907         "\\code\n"
00908         "/*! 由于截取而使该类不可见 */\n"
00909         "class Invisible { };\n\n"
00910         "/*! 被截取的类,继承关系被隐藏起来了 */\n"
00911         "class Truncated : public Invisible { };\n\n"
00912         "/* 没有被"CN_SPC"doxygen"CN_SPC"的注释文档化的类 */\n"
00913         "class Undocumented { };\n\n"
00914         "/*! 被公有继承的类 */\n"
00915         "class PublicBase : public Truncated { };\n\n"
00916         "/*! A template class */\n"
00917         "template<class T> class Templ { };\n\n"
00918         "/*! 被保护继承的类 */\n"
00919         "class ProtectedBase { };\n\n"
00920         "/*! 被私有继承的类 */\n"
00921         "class PrivateBase { };\n\n"
00922         "/*! 被使用的类 */\n"
00923         "class Used { };\n\n"
00924         "/*! 继承了若干其它类的类 */\n"
00925         "class Inherited : public PublicBase,\n"
00926         "                  protected ProtectedBase,\n"
00927         "                  private PrivateBase,\n"
00928         "                  public Undocumented,\n"
00929         "                  public Templ<int>\n"
00930         "{\n"
00931         "  private:\n"
00932         "    Used *m_usedClass;\n"
00933         "};\n"
00934         "\\endcode\n"
00935         "如果在配置文件中指定了"CN_SPC"MAX_DOT_GRAPH_HEIGHT"CN_SPC"的值为200,"
00936         "则Doxygen将生成如下的图形:"
00937         "<p><center><img src=\"graph_legend."+Config_getEnum("DOT_IMAGE_FORMAT")+"\"></center>\n"
00938         "<p>\n"
00939         "以上图形中的矩形有如下的含义:\n"
00940         "<ul>\n"
00941         "<li>被黑色填充的矩形代表当前的类或结构。\n"
00942         "<li>黑色边框的矩形代表<i>文档化</i>的类或结构。\n"
00943         "<li>灰色边框的矩形代表没有<i>文档化</i>的类或结构。\n"
00944         "<li>红色边框的矩形代表继承/包含关系没有被完整显示出的类或结构。如果一幅图像的尺"
00945         "寸大于指定尺寸,它将被截取。"
00946         "</ul>\n"
00947         "各个箭头有如下的含义:\n"
00948         "<ul>\n"
00949         "<li>深蓝色的箭头用于显示两个类之间的公有继承关系。\n"
00950         "<li>深绿色的箭头用于显示保护继承关系。\n"
00951         "<li>深红色的箭头用于显示私有继承关系。\n"
00952         "<li>紫色点状线条的箭头用于显示两个类之间包含或者使用的关系。通过箭头旁边的变量可以"
00953         "访问到箭头所指的类或结构。\n"
00954         "</ul>\n";
00955     }
00957                 virtual QCString trLegend()
00958     {
00959       return "图例";
00960     }
00961 
00963 // new since 1.2.0
00965     
00967     virtual QCString trTest()
00968     {
00969       return "测试";
00970     }
00971 
00973     virtual QCString trTestList()
00974     {
00975       return "测试列表";
00976     }
00977 
00981 
00982                 virtual QCString trDCOPMethods()
00983                 {
00984                         return "DCOP"CN_SPC"方法";
00985                 }
00986 
00990 
00992                 virtual QCString trProperties()
00993                 {
00994                         return "属性";
00995                 }
00996 
00998                 virtual QCString trPropertyDocumentation()
00999                 {
01000                         return "属性文档";
01001                 }
01002 
01004 // new since 1.2.4
01006 
01008     virtual QCString trClasses()
01009     {
01010                         if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C"))
01011                         {
01012                                 return "数据结构";
01013                         }
01014                         else
01015                         {
01016                                 return "类";
01017                         }
01018     }
01019 
01021     virtual QCString trPackage(const char *name)
01022     {
01023       return (QCString)"包 "+name;
01024     }
01025                 
01027     virtual QCString trPackageList()
01028     {
01029       return "包列表";
01030     }
01031 
01033     virtual QCString trPackageListDescription()
01034     {
01035                          return "这里列出所有的包,附带简要说明(如果有的话):"; 
01036     }
01037 
01039     virtual QCString trPackages()
01040     {
01041       return "包";
01042     }
01043 
01045     virtual QCString trDefineValue()
01046     {
01047       return    "值:";
01048     }
01049 
01053                 virtual QCString trBug ()
01054                 {
01055                         return "缺陷";
01056                 }
01057 
01058                 virtual QCString trBugList ()
01059                 {
01060                         return "缺陷列表";
01061                 }
01062 
01064 // new since 1.2.6
01066 
01092     virtual QCString trRTFansicp()
01093     {
01094       return "936";
01095     }
01096 
01100     virtual QCString trRTFCharSet()
01101     {
01102       return "134";
01103     }
01104 
01105 
01107     virtual QCString trRTFGeneralIndex()
01108     {
01109       return "索引";
01110     }
01111 
01112    
01117     virtual QCString trClass(bool /*first_capital*/, bool /*singular*/)
01118     { 
01119                         /*
01120                 QCString result((first_capital ? "Class" : "class"));
01121       if (!singular)  result+="es";
01122       return result; 
01123                         */
01124                         return "类";
01125     }
01126 
01131     virtual QCString trFile(bool /*first_capital*/, bool /*singular*/)
01132     { 
01133                         /*
01134                 QCString result((first_capital ? "File" : "file"));
01135       if (!singular)  result+="s";
01136       return result; 
01137                         */
01138                         return "文件";
01139 
01140     }
01141 
01146     virtual QCString trNamespace(bool /*first_capital*/, bool /*singular*/)
01147     { 
01148                         /*
01149                 QCString result((first_capital ? "Namespace" : "namespace"));
01150       if (!singular)  result+="s";
01151       return result; 
01152                         */
01153                         return "名字空间";
01154     }
01155 
01160     virtual QCString trGroup(bool /*first_capital*/, bool /*singular*/)
01161     { 
01162                         /*
01163                 QCString result((first_capital ? "Group" : "group"));
01164       if (!singular)  result+="s";
01165       return result; 
01166                         */
01167                         return "组";
01168     }
01169 
01174     virtual QCString trPage(bool /*first_capital*/, bool /*singular*/)
01175     { 
01176                         /*
01177                 QCString result((first_capital ? "Page" : "page"));
01178       if (!singular)  result+="s";
01179       return result; 
01180                         */
01181                         return "页";
01182     }
01183 
01188     virtual QCString trMember(bool /*first_capital*/, bool /*singular*/)
01189     { 
01190                         /*
01191                 QCString result((first_capital ? "Member" : "member"));
01192       if (!singular)  result+="s";
01193       return result; 
01194                         */
01195                         return "成员";
01196     }
01197    
01202     virtual QCString trGlobal(bool /*first_capital*/, bool /*singular*/)
01203     { 
01204                         /*
01205                 QCString result((first_capital ? "Global" : "global"));
01206       if (!singular)  result+="s";
01207       return result; 
01208                         */
01209                         return "全局定义";
01210     }
01211 
01213 // new since 1.2.7
01215 
01218     virtual QCString trAuthor(bool /*first_capital*/, bool /*singular*/)
01219     {                                                                         
01220                         /*
01221                 QCString result((first_capital ? "Author" : "author"));
01222       if (!singular)  result+="s";
01223       return result; 
01224                         */
01225                         return "作者";
01226     }
01227 
01229 // new since 1.2.11
01231 
01234     virtual QCString trReferences()
01235     {
01236       return "参考";
01237     }
01238 
01240 // new since 1.2.13
01242 
01246     virtual QCString trImplementedFromList(int numEntries)
01247     {
01248       /* return "Implements "+trWriteList(numEntries)+"."; */
01249       return "实现了"CN_SPC+trWriteList(numEntries)+"。";
01250     }
01251 
01255     virtual QCString trImplementedInList(int numEntries)
01256     {
01257       /* return "Implemented in "+trWriteList(numEntries)+"."; */
01258       return "在"CN_SPC+trWriteList(numEntries)+CN_SPC"内被实现。";
01259     }
01260 
01262 // new since 1.2.16
01264 
01268     virtual QCString trRTFTableOfContents()
01269     {
01270       /* return "Table of Contents"; */
01271       return "目录";
01272     }
01273 
01275 // new since 1.2.17
01277 
01281     virtual QCString trDeprecatedList()
01282     {
01283 /*    return "Deprecated List";  */
01284       return "过时列表";
01285     }
01286 
01288 // new since 1.2.18
01290 
01294     virtual QCString trEvents()
01295     {
01296       /*      return "Events"; */
01297       return "事件";
01298     }
01300     virtual QCString trEventDocumentation()
01301     {
01302       /* return "Event Documentation"; */
01303       return "事件文档";
01304     }
01305 
01307 // new since 1.3
01309 
01312     virtual QCString trPackageTypes()
01313     { 
01314       /* return "Package Types"; */
01315       return "模块类型";
01316     }
01320     virtual QCString trPackageMembers()
01321     { 
01322       /* return "Package Functions"; */
01323       return "模块函数";
01324     }
01328     virtual QCString trStaticPackageMembers()
01329     { 
01330       /* return "Static Package Functions"; */
01331       return "静态模块函数";
01332     }
01336     virtual QCString trPackageAttribs()
01337     { 
01338       /* return "Package Attributes"; */
01339       return "模块属性";
01340     }
01344     virtual QCString trStaticPackageAttribs()
01345     { 
01346       /* return "Static Package Attributes"; */
01347       return "静态模块属性";
01348     }
01349     
01351 // new since 1.3.1
01353 
01357     virtual QCString trAll()
01358     {
01359       /* return "All"; */
01360       return "全部";
01361     }
01363     virtual QCString trCallGraph()
01364     {
01365       /* return "Here is the call graph for this function:"; */
01366       return "函数调用图:";
01367     }
01368 
01370 // new since 1.3.3
01372 
01377     virtual QCString trSearchForIndex()
01378     {
01379       /* return "Search for"; */
01380       return "搜索";
01381     }
01385     virtual QCString trSearchResultsTitle()
01386     {
01387       /* return "Search Results"; */
01388       return "搜索结果";
01389     }
01398     virtual QCString trSearchResults(int numDocuments)
01399     {
01400       if (numDocuments==0)
01401       {
01402         /* return "Sorry, no documents matching your query."; */
01403         return "对不起,找不到与你的查询相符的文档。";
01404       }
01405       else if (numDocuments==1)
01406       {
01407         /* return "Found <b>1</b> document matching your query."; */
01408         return "找到<b>1</b>篇与你的查询相符的文档。";
01409       }
01410       else 
01411       {
01412         /* return "Found <b>$num</b> documents matching your query. "
01413                "Showing best matches first."; */
01414         return "找到<b>$num</b>篇与你的查询相符的文档。"
01415                "先显示最吻合的文档。";
01416       }
01417     }
01421     virtual QCString trSearchMatches()
01422     {
01423       /* return "Matches:"; */
01424       return "符合的结果:";
01425     }
01426 
01428 // new since 1.3.8
01430 
01433     virtual QCString trSourceFile(QCString& filename)
01434     {
01435       /* return filename + " Source File"; */
01436       return filename + CN_SPC"源文件";
01437     }
01439 // new since 1.3.9
01441 
01445     virtual QCString trDirIndex()
01446     /*     { return "Directory Hierarchy"; } */
01447     {
01448       return "目录结构";
01449     }
01450 
01454     virtual QCString trDirDocumentation()
01455     /*     { return "Directory Documentation"; } */
01456     {
01457       return "目录文档";
01458     }
01459 
01463     virtual QCString trDirectories()
01464     /*     { return "Directories"; } */
01465     {
01466       return "目录";
01467     }
01468 
01472     virtual QCString trDirDescription()
01473 /*     { return "This directory hierarchy is sorted roughly, " */
01474 /*              "but not completely, alphabetically:"; */
01475 /*     } */
01476     {
01477       return "目录结构仅经过粗略的排序";
01478     }
01479 
01483     virtual QCString trDirReference(const char *dirName)
01484     /*     { QCString result=dirName; result+=" Directory Reference"; return result; } */
01485     {
01486       QCString result=dirName;
01487       result+=CN_SPC"目录参考"; 
01488       return result;
01489     }
01490 
01494     virtual QCString trDir(bool, bool)
01495     { 
01496       /*       QCString result((first_capital ? "Director" : "director")); */
01497       /*       if (singular) result+="y"; else result+="ies"; */
01498       /*       return result;  */
01499       return "目录";
01500     }
01501     
01503 // new since 1.4.1
01505 
01509     virtual QCString trOverloadText()
01510     {
01511        /* return "This is an overloaded member function, "
01512               "provided for convenience. It differs from the above "
01513               "function only in what argument(s) it accepts."; */
01514       return "这是为便于使用而提供的一个重载成员函数。"
01515              "与上面的函数相比,它接受不同类型的参数。";
01516     }
01517 
01519 // new since 1.4.6
01521 
01523     virtual QCString trCallerGraph()
01524     {
01525       /* return "Here is the caller graph for this function:"; */
01526       return "这是这个函数的调用图。";
01527     }
01528 
01532     virtual QCString trEnumerationValueDocumentation()
01533     { 
01534       /* return "Enumerator Documentation"; */
01535       return "枚举变量文档";
01536     }
01537 
01539 // new since 1.5.4 (mainly for Fortran)
01541     
01543     virtual QCString trMemberFunctionDocumentationFortran()
01544     // { return "Member Function/Subroutine Documentation"; }
01545     { return "成员函数及过程文档"; }
01546 
01548     virtual QCString trCompoundListFortran()
01549     // { return "Data Types List"; }
01550     { return "数据类型列表"; }
01551 
01553     virtual QCString trCompoundMembersFortran()
01554     // { return "Data Fields"; }
01555     { return "数据项"; }
01556 
01558     virtual QCString trCompoundListDescriptionFortran()
01559     // { return "Here are the data types with brief descriptions:"; }
01560     { return "带简要描述的数据类型列表:"; }
01561 
01563     virtual QCString trCompoundMembersDescriptionFortran(bool extractAll)
01564     {
01565     //   QCString result="Here is a list of all ";
01566     //   if (!extractAll)
01567     //   {
01568     //     result+="documented ";
01569     //   }
01570     //   result+="data types members";
01571     //   result+=" with links to ";
01572     //   if (!extractAll) 
01573     //   {
01574     //      result+="the data structure documentation for each member";
01575     //   }
01576     //   else 
01577     //   {
01578     //      result+="the data types they belong to:";
01579     //   }
01580     //   return result;
01581       if(!extractAll) {
01582         return "这里是有文档的数据类型成员列表,含有到每个成员的数据结构文档的链接";
01583       } else {
01584         return "这里是数据类型成员列表,含有到成员所属的数据类型的链接:";
01585       }
01586 
01587     }
01588 
01592     virtual QCString trCompoundIndexFortran()
01593     // { return "Data Type Index"; }
01594     { return "数据类型索引"; }
01595 
01596 
01600     virtual QCString trTypeDocumentation()
01601     // { return "Data Type Documentation"; }
01602     { return "数据类型文档"; }
01603 
01607     virtual QCString trSubprograms()
01608     //{ return "Functions/Subroutines"; }
01609     { return "函数/过程"; }
01610 
01614     virtual QCString trSubprogramDocumentation()
01615     //{ return "Function/Subroutine Documentation"; }
01616     { return "函数/过程文档"; }
01617 
01618 
01622      virtual QCString trDataTypes()
01623     // { return "Data Types"; }
01624     { return "数据类型"; }
01625     
01627     virtual QCString trModulesList()
01628     // { return "Modules List"; }
01629     { return "模块列表"; }
01630 
01632     virtual QCString trModulesListDescription(bool extractAll)
01633     {
01634       // QCString result="Here is a list of all ";
01635       // if (!extractAll) result+="documented ";
01636       // result+="modules with brief descriptions:";
01637       // return result;
01638       if(!extractAll) {
01639         return "带简要描述的有文档的模块列表:";
01640       } else {
01641         return "带简要描述的模块列表:";
01642       }
01643     }
01644 
01646     virtual QCString trCompoundReferenceFortran(const char *clName,
01647                                     ClassDef::CompoundType compType,
01648                                     bool isTemplate)
01649     {
01650       // QCString result=(QCString)clName;
01651       // switch(compType)
01652       // {
01653       //   case ClassDef::Class:      result+=" Module"; break;
01654       //   case ClassDef::Struct:     result+=" Type"; break;
01655       //   case ClassDef::Union:      result+=" Union"; break;
01656       //   case ClassDef::Interface:  result+=" Interface"; break;
01657       //   case ClassDef::Protocol:   result+=" Protocol"; break;
01658       //   case ClassDef::Category:   result+=" Category"; break;
01659       //   case ClassDef::Exception:  result+=" Exception"; break;
01660       // }
01661       // if (isTemplate) result+=" Template";
01662       // result+=" Reference";
01663       // return result;
01664       QCString result=(QCString)clName;
01665       switch(compType)
01666       {
01667         case ClassDef::Class:      result+=CN_SPC"模块"; break;
01668         case ClassDef::Struct:     result+=CN_SPC"类型"; break;
01669         case ClassDef::Union:      result+=CN_SPC"联合"; break;
01670         case ClassDef::Interface:  result+=CN_SPC"界面"; break;
01671         case ClassDef::Protocol:   result+=CN_SPC"接口"; break;
01672         case ClassDef::Category:   result+=CN_SPC"目录"; break;
01673         case ClassDef::Exception:  result+=CN_SPC"异常"; break;
01674       }
01675       if (isTemplate) result+="模板";
01676       result+="参考手册";
01677       return result;
01678     }
01680     virtual QCString trModuleReference(const char *namespaceName)
01681     {
01682       QCString result=namespaceName;
01683       // result+=" Module Reference";        
01684       result += CN_SPC"模块参考手册";
01685       return result;
01686     }
01687     
01689     virtual QCString trModulesMembers()
01690     // { return "Module Members"; }
01691     { return "模块成员"; }
01692 
01694     virtual QCString trModulesMemberDescription(bool extractAll)
01695     { 
01696       // QCString result="Here is a list of all ";
01697       // if (!extractAll) result+="documented ";
01698       // result+="module members with links to ";
01699       // if (extractAll) 
01700       // {
01701       //   result+="the module documentation for each member:";
01702       // }
01703       // else 
01704       // {
01705       //   result+="the modules they belong to:";
01706       // }
01707       // return result;
01708       if(!extractAll) {
01709         return "这里是有文档的模块成员列表,含有到每个成员所在模块的文档的链接";
01710       } else {
01711         return "这里是模块成员列表,含有到成员所属的模块的链接:";
01712       }
01713     }
01714 
01718     virtual QCString trModulesIndex()
01719     // { return "Modules Index"; }
01720     { return "模块索引"; }
01721     
01726     virtual QCString trModule(bool, bool)
01727     {       
01728       // QCString result((first_capital ? "Module" : "module"));
01729       // if (!singular)  result+="s";
01730       // return result; 
01731       return "模块";
01732     }
01736     virtual QCString trGeneratedFromFilesFortran(ClassDef::CompoundType compType,
01737         bool)
01738     { // here s is one of " Module", " Struct" or " Union"
01739       // single is true implies a single file
01740       // QCString result=(QCString)"The documentation for this ";
01741       // switch(compType)
01742       // {
01743       //   case ClassDef::Class:      result+="module"; break;
01744       //   case ClassDef::Struct:     result+="type"; break;
01745       //   case ClassDef::Union:      result+="union"; break;
01746       //   case ClassDef::Interface:  result+="interface"; break;
01747       //   case ClassDef::Protocol:   result+="protocol"; break;
01748       //   case ClassDef::Category:   result+="category"; break;
01749       //   case ClassDef::Exception:  result+="exception"; break;
01750       // }
01751       // result+=" was generated from the following file";
01752       // if (single) result+=":"; else result+="s:";
01753       // return result;
01754       QCString result="该";
01755       switch(compType)
01756       {
01757         case ClassDef::Class:      result+=CN_SPC"模块"; break;
01758         case ClassDef::Struct:     result+=CN_SPC"类型"; break;
01759         case ClassDef::Union:      result+=CN_SPC"联合"; break;
01760         case ClassDef::Interface:  result+=CN_SPC"界面"; break;
01761         case ClassDef::Protocol:   result+=CN_SPC"接口"; break;
01762         case ClassDef::Category:   result+=CN_SPC"目录"; break;
01763         case ClassDef::Exception:  result+=CN_SPC"异常"; break;
01764       }
01765       result+="的文档由以下文件生成:";
01766       return result;
01767     }
01772     virtual QCString trType(bool, bool)
01773     { 
01774       return "类型";
01775     }
01780     virtual QCString trSubprogram(bool, bool)
01781     { 
01782       return "子程序";
01783     }
01784 
01786     virtual QCString trTypeConstraints()
01787     {
01788       return "类型限制";
01789     }
01790 };
01791 
01792 #endif
01793 



Generated on Mon Mar 31 10:58:44 2008 by  doxygen 1.5.1