Doxygen
Loading...
Searching...
No Matches
translator_cn.h
Go to the documentation of this file.
1/******************************************************************************
2 *
3 *
4 *
5 * Copyright (C) 1997-2015 by Dimitri van Heesch.
6 *
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.
12 *
13 * Documents produced by Doxygen are derivative works derived from the
14 * input used in their production; they are not affected by this license.
15 *
16 */
17
18#ifndef TRANSLATOR_CN_H
19#define TRANSLATOR_CN_H
20
21/*!
22 If you want insert a space whenever Chinese meets English characters, set
23 CN_SPC to " ", else null.
24*/
25#define CN_SPC " "
26
28{
29 public:
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 should be equal to
34 * the identification used in the language.cpp.
35 */
36
37 QCString idLanguage() override
38 { return "chinese"; }
39
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"
44 * </pre>
45 * or
46 * <pre>"\\usepackage{polski}\n"
47 * "\\usepackage[latin2]{inputenc}\n"
48 * "\\usepackage[T1]{fontenc}\n"
49 * </pre>
50 *
51 * The English LaTeX does not use such commands. Because of this
52 * the empty string is returned in this implementation.
53 */
54 QCString latexLanguageSupportCommand() override
55 {
56 return "\\usepackage{CJKutf8}\n";
57 }
58 QCString trISOLang() override
59 {
60 return "zh";
61 }
62 QCString getLanguageString() override
63 {
64 return "0x804 Chinese (PRC)";
65 }
66 QCString latexFontenc() override
67 {
68 return "";
69 }
70 QCString latexDocumentPre() override
71 {
72 return "\\begin{CJK}{UTF8}{gbsn}\n";
73 }
74 QCString latexDocumentPost() override
75 {
76 return "\\end{CJK}\n";
77 }
78 bool needsPunctuation() override
79 {
80 return false;
81 }
82 // --- Language translation methods -------------------
83
84 /*! used in the compound documentation before a list of related functions.
85 */
86 QCString trRelatedFunctions() override
87 { return "相关函数"; }
88
89 /*! subscript for the related functions. */
90 QCString trRelatedSubscript() override
91 { return "(请注意: 这些不是成员函数.)"; }
92
93 /*! header that is put before the detailed description of files,
94 * classes and namespaces.
95 */
96 QCString trDetailedDescription() override
97 { return "详细描述"; }
98
99 /*! header that is used when the summary tag is missing inside the details tag */
100 QCString trDetails() override
101 { return "详细信息"; }
102
103 /*! header that is put before the list of typedefs. */
105 { return "成员类型定义说明"; }
106
107 /*! header that is put before the list of enumerations. */
109 { return "成员枚举类型说明"; }
110
111 /*! header that is put before the list of member function. */
113 {
114 if (Config_getBool(OPTIMIZE_OUTPUT_VHDL))
115 {
116 return "成员函数/过程/进程说明";
117 }
118 else
119 {
120 return "成员函数说明";
121 }
122 }
123
124 /*! header that is put before the list of member attributes. */
125 QCString trMemberDataDocumentation() override
126 {
127 if (Config_getBool(OPTIMIZE_OUTPUT_FOR_C))
128 {
129 return "结构体成员变量说明";
130 }
131 else
132 {
133 return "类成员变量说明";
134 }
135 }
136
137 /*! this is the text of a link put after brief descriptions. */
138 QCString trMore() override
139 { return "更多..."; }
140
141 /*! put in the class documentation */
142 QCString trListOfAllMembers() override
143 { return "所有成员列表"; }
144
145 /*! used as the title of the "list of all members" page of a class */
146 QCString trMemberList() override
147 { return "成员列表"; }
148
149 /*! this is the first part of a sentence that is followed by a class name */
150 QCString trThisIsTheListOfAllMembers() override
151 { return "成员的完整列表,这些成员属于"; }
152
153 /*! this is the remainder of the sentence after the class name */
154 QCString trIncludingInheritedMembers() override
155 { return ",包括所有继承而来的类成员"; }
156
157 /*! this is put at the author sections at the bottom of man pages.
158 * parameter s is name of the project name.
159 */
160 QCString trGeneratedAutomatically(const QCString &s) override
161 { QCString result;
162 result = "由" CN_SPC "Doyxgen" CN_SPC "通过分析" CN_SPC;
163 if (!s.isEmpty()) result += (s+CN_SPC "的" CN_SPC);
164 result+= "源代码自动生成.";
165 return result;
166 }
167
168 /*! put after an enum name in the list of all members */
169 QCString trEnumName() override
170 { return "枚举名称"; }
171
172 /*! put after an enum value in the list of all members */
173 QCString trEnumValue() override
174 { return "枚举值"; }
175
176 /*! put after an undocumented member in the list of all members */
177 QCString trDefinedIn() override
178 { return "定义于" CN_SPC; }
179
180 // quick reference sections
181
182 /*! This is put above each page as a link to the list of all groups of
183 * compounds or files (see the \\group command).
184 */
185 QCString trModules() override
186 { return "模块"; }
187
188 /*! This is put above each page as a link to the class hierarchy */
189 QCString trClassHierarchy() override
190 { return "类继承关系"; }
191
192 /*! This is put above each page as a link to the list of annotated class */
193 QCString trCompoundList() override
194 {
195 if (Config_getBool(OPTIMIZE_OUTPUT_FOR_C)) {
196 return "结构体";
197 }
198 else {
199 return "类列表";
200 }
201 }
202
203 /*! This is put above each page as a link to the list of documented files */
204 QCString trFileList() override
205 { return "文件列表"; }
206
207 /*! This is put above each page as a link to all members of compounds. */
208 QCString trCompoundMembers() override
209 {
210 if (Config_getBool(OPTIMIZE_OUTPUT_FOR_C)) {
211 return "成员变量";
212 }
213 else {
214 return "类成员";
215 }
216 }
217
218 /*! This is put above each page as a link to all member of files. */
219 QCString trFileMembers() override
220 {
221 if (Config_getBool(OPTIMIZE_OUTPUT_FOR_C)) {
222 return "全局定义";
223 } else {
224 return "文件成员";
225 }
226 }
227
228 /*! This is put above each page as a link to all related pages. */
229 QCString trRelatedPages() override
230 { return "相关页面"; }
231
232 /*! This is put above each page as a link to all examples. */
233 QCString trExamples() override
234 { return "示例"; }
235
236 /*! This is put above each page as a link to the search engine. */
237 QCString trSearch() override
238 { return "搜索"; }
239
240 /*! This is an introduction to the class hierarchy. */
241 QCString trClassHierarchyDescription() override
242 {
243 if (Config_getBool(OPTIMIZE_OUTPUT_VHDL))
244 {
245 return "这里给出了所有实体的层次化列表:";
246 }
247 else
248 {
249 return "此继承关系列表按字典顺序粗略的排序:" CN_SPC;
250 }
251 }
252
253 /*! This is an introduction to the list with all files. */
254 QCString trFileListDescription(bool extractAll) override
255 {
256 QCString result="这里列出了所有";
257 if (!extractAll) result+="文档化的";
258 result+="文件,并附带简要说明:";
259 return result;
260 }
261
262 /*! This is an introduction to the annotated compound list. */
263 QCString trCompoundListDescription() override
264 {
265 if (Config_getBool(OPTIMIZE_OUTPUT_FOR_C))
266 {
267 return "这里列出了所有结构体,并附带简要说明:";
268 }
269 else if (Config_getBool(OPTIMIZE_OUTPUT_SLICE))
270 {
271 return "这里列出了所有类并附带简要说明:";
272 }
273 else
274 {
275 return "这里列出了所有类、结构、联合以及接口定义等,并附带简要说明:";
276 }
277 }
278
279 /*! This is an introduction to the page with all class members. */
280 QCString trCompoundMembersDescription(bool extractAll) override
281 {
282 QCString result="这里列出了所有";
283 if (!extractAll) {
284 result+="文档化的";
285 }
286 if (Config_getBool(OPTIMIZE_OUTPUT_FOR_C)) {
287 result+="结构体和联合体的成员变量";
288 }
289 else {
290 result+="类成员";
291 }
292 result+=",并附带";
293 if (extractAll) {
294 if (Config_getBool(OPTIMIZE_OUTPUT_FOR_C)) {
295 result+="结构体或联合的详细说明:";
296 }
297 else {
298 result+="类的详细说明:";
299 }
300 }
301 else {
302 if (Config_getBool(OPTIMIZE_OUTPUT_FOR_C)) {
303 result+="结构或联合所属的文件:";
304 }
305 else {
306 result+="类所属的文件:";
307 }
308 }
309 return result;
310 }
311
312 /*! This is an introduction to the page with all file members. */
313 QCString trFileMembersDescription(bool extractAll) override
314 {
315 QCString result="这里列出了所有";
316 if (!extractAll)
317 result +="文档化的";
318 if (Config_getBool(OPTIMIZE_OUTPUT_FOR_C)) {
319 result +="函数、变量、宏、枚举和类型定义等";
320 }
321 else {
322 result +="文件成员";
323 }
324 result+=",并附带";
325
326 if (extractAll)
327 result+="其所属的文件:";
328 else
329 result+="其详细说明:";
330 return result;
331 }
332
333 /*! This is an introduction to the page with the list of all examples */
334 QCString trExamplesDescription() override
335 { return "这里列出了所有示例:"; }
336
337 /*! This is an introduction to the page with the list of related pages */
338 QCString trRelatedPagesDescription() override
339 { return "这里列出了所有相关页面:"; }
340
341 /*! This is an introduction to the page with the list of class/file groups */
342 QCString trModulesDescription() override
343 { return "这里列出了所有模块:"; }
344
345 // index titles (the project name is prepended for these)
346
347 /*! This is used in HTML as the title of index.html. */
348 QCString trDocumentation(const QCString &projName) override
349 { return (!projName.isEmpty()?projName + " " : "") + "文档"; }
350
351 /*! This is used in LaTeX as the title of the chapter with the
352 * index of all groups.
353 */
354 QCString trModuleIndex() override
355 { return "模块索引"; }
356
357 /*! This is used in LaTeX as the title of the chapter with the
358 * class hierarchy.
359 */
360 QCString trHierarchicalIndex() override
361 { return "继承关系索引"; }
362
363 /*! This is used in LaTeX as the title of the chapter with the
364 * annotated compound index.
365 */
366 QCString trCompoundIndex() override
367 {
368 if (Config_getBool(OPTIMIZE_OUTPUT_FOR_C))
369 {
370 return "结构体索引";
371 }
372 else {
373 return "类索引";
374 }
375 }
376
377 /*! This is used in LaTeX as the title of the chapter with the
378 * list of all files.
379 */
380 QCString trFileIndex() override
381 { return "文件索引"; }
382
383 /*! This is used in LaTeX as the title of the chapter containing
384 * the documentation of all groups.
385 */
386 QCString trModuleDocumentation() override
387 { return "模块说明"; }
388
389 /*! This is used in LaTeX as the title of the chapter containing
390 * the documentation of all classes, structs and unions.
391 */
392 QCString trClassDocumentation() override
393 {
394 if (Config_getBool(OPTIMIZE_OUTPUT_FOR_C))
395 {
396 return "结构体说明";
397 }
398 else if (Config_getBool(OPTIMIZE_OUTPUT_VHDL))
399 {
401 }
402 else {
403 return "类说明";
404 }
405 }
406
407 /*! This is used in LaTeX as the title of the chapter containing
408 * the documentation of all classes, structs and unions.
409 */
410 QCString trFileDocumentation() override
411 { return "文件说明"; }
412
413 /*! This is used in LaTeX as the title of the document */
414 QCString trReferenceManual() override
415 { return "参考手册"; }
416
417 /*! This is used in the documentation of a file as a header before the
418 * list of defines
419 */
420 QCString trDefines() override
421 { return "宏定义"; }
422
423 /*! This is used in the documentation of a file as a header before the
424 * list of typedefs
425 */
426 QCString trTypedefs() override
427 { return "类型定义"; }
428
429 /*! This is used in the documentation of a file as a header before the
430 * list of enumerations
431 */
432 QCString trEnumerations() override
433 { return "枚举"; }
434
435 /*! This is used in the documentation of a file as a header before the
436 * list of (global) functions
437 */
438 QCString trFunctions() override
439 { return "函数"; }
440
441 /*! This is used in the documentation of a file as a header before the
442 * list of (global) variables
443 */
444 QCString trVariables() override
445 { return "变量"; }
446
447 /*! This is used in the documentation of a file as a header before the
448 * list of (global) variables
449 */
450 QCString trEnumerationValues() override
451 { return "枚举值"; }
452
453 /*! This is used in the documentation of a file before the list of
454 * documentation blocks for defines
455 */
456 QCString trDefineDocumentation() override
457 { return "宏定义说明"; }
458
459 /*! This is used in the documentation of a file/namespace before the list
460 * of documentation blocks for typedefs
461 */
462 QCString trTypedefDocumentation() override
463 { return "类型定义说明"; }
464
465 /*! This is used in the documentation of a file/namespace before the list
466 * of documentation blocks for enumeration types
467 */
469 { return "枚举类型说明"; }
470
471 /*! This is used in the documentation of a file/namespace before the list
472 * of documentation blocks for functions
473 */
474 QCString trFunctionDocumentation() override
475 { return "函数说明"; }
476
477 /*! This is used in the documentation of a file/namespace before the list
478 * of documentation blocks for variables
479 */
480 QCString trVariableDocumentation() override
481 { return "变量说明"; }
482
483 /*! This is used in the documentation of a file/namespace/group before
484 * the list of links to documented compounds
485 */
486 QCString trCompounds() override
487 {
488 if (Config_getBool(OPTIMIZE_OUTPUT_FOR_C))
489 {
490 return "结构体";
491 }
492 else {
493 return "类";
494 }
495 }
496
497 /*! This is used in the standard footer of each page and indicates when
498 * the page was generated
499 */
500 QCString trGeneratedAt(const QCString &date,const QCString &projName) override
501 {
502 QCString result="生成于" CN_SPC+date;
503 if (!projName.isEmpty()) result+=CN_SPC ", 为" CN_SPC+projName;
504 result+="使用" CN_SPC;
505 return result;
506 }
507
508 /*! this text is put before a class diagram */
509 QCString trClassDiagram(const QCString &clName) override
510 {
511 return "类" CN_SPC+clName+CN_SPC "继承关系图:";
512 }
513
514 /*! this text is generated when the \\warning command is used. */
515 QCString trWarning() override
516 { return "警告"; }
517
518 /*! this text is generated when the \\version command is used. */
519 QCString trVersion() override
520 { return "版本"; }
521
522 /*! this text is generated when the \\date command is used. */
523 QCString trDate() override
524 { return "日期"; }
525
526 /*! this text is generated when the \\return command is used. */
527 QCString trReturns() override
528 { return "返回"; }
529
530 /*! this text is generated when the \\sa command is used. */
531 QCString trSeeAlso() override
532 { return "参见"; }
533
534 /*! this text is generated when the \\param command is used. */
535 QCString trParameters() override
536 { return "参数"; }
537
538 /*! this text is generated when the \\exception command is used. */
539 QCString trExceptions() override
540 { return "异常"; }
541
542 /*! this text is used in the title page of a LaTeX document. */
543 QCString trGeneratedBy() override
544 { return "制作者"; }
545
546//////////////////////////////////////////////////////////////////////////
547// new since 0.49-990307
548//////////////////////////////////////////////////////////////////////////
549
550 /*! used as the title of page containing all the index of all namespaces. */
551 QCString trNamespaceList() override
552 { return "命名空间列表"; }
553
554 /*! used as an introduction to the namespace list */
555 QCString trNamespaceListDescription(bool extractAll) override
556 {
557 QCString result="这里列出了所有";
558 if (!extractAll) result+="文档化的";
559 result+="命名空间定义,附带简要说明:";
560 return result;
561 }
562
563 /*! used in the class documentation as a header before the list of all
564 * friends of a class
565 */
566 QCString trFriends() override
567 { return "友元"; }
568
569//////////////////////////////////////////////////////////////////////////
570// new since 0.49-990405
571//////////////////////////////////////////////////////////////////////////
572
573 /*! used in the class documentation as a header before the list of all
574 * related classes
575 */
577 { return "友元及相关函数文档"; }
578
579//////////////////////////////////////////////////////////////////////////
580// new since 0.49-990425
581//////////////////////////////////////////////////////////////////////////
582
583 /*! used as the title of the HTML page of a class/struct/union */
584 QCString trCompoundReference(const QCString &clName,
585 ClassDef::CompoundType compType,
586 bool isTemplate) override
587 {
588 QCString result=clName;
589 if (isTemplate) result+=CN_SPC "模板";
590 switch(compType)
591 {
592 case ClassDef::Class: result+="类"; break;
593 case ClassDef::Struct: result+="结构体"; break;
594 case ClassDef::Union: result+="联合体"; break;
595 case ClassDef::Interface: result+="接口"; break;
596 case ClassDef::Protocol: result+="协议"; break;
597 case ClassDef::Category: result+="分类"; break;
598 case ClassDef::Exception: result+="异常"; break;
599 default: break;
600 }
601 result+=CN_SPC "参考";
602 return result;
603 }
604
605 /*! used as the title of the HTML page of a file */
606 QCString trFileReference(const QCString &fileName) override
607 {
608 QCString result=fileName;
609 result+=CN_SPC "文件参考";
610 return result;
611 }
612
613 /*! used as the title of the HTML page of a namespace */
614 QCString trNamespaceReference(const QCString &namespaceName) override
615 { QCString result=namespaceName;
616 result+=CN_SPC "命名空间参考";
617 return result;
618 }
619
620 // these are for the member sections of a class, struct or union
621 QCString trPublicMembers() override
622 { return "Public 成员函数"; }
623
624 QCString trPublicSlots() override
625 { return "Public 槽"; }
626
627 QCString trSignals() override
628 { return "信号"; }
629
630 QCString trStaticPublicMembers() override
631 { return "静态 Public 成员函数"; }
632
633 QCString trProtectedMembers() override
634 { return "Protected 成员函数"; }
635
636 QCString trProtectedSlots() override
637 { return "Protected 槽"; }
638
639 QCString trStaticProtectedMembers() override
640 { return "静态 Protected 成员函数"; }
641
642 QCString trPrivateMembers() override
643 { return "Private 成员函数"; }
644
645 QCString trPrivateSlots() override
646 { return "Private 槽"; }
647
648 QCString trStaticPrivateMembers() override
649 { return "静态 Private 成员函数"; }
650
651 // end of member sections
652
653 /*! this function is used to produce a comma-separated list of items.
654 * use generateMarker(i) to indicate where item i should be put.
655 */
656 QCString trWriteList(int numEntries) override
657 {
658 QCString result;
659 // the inherits list contain `numEntries' classes
660 for (int i=0;i<numEntries;i++)
661 {
662 // use generateMarker to generate placeholders for the class links!
663 result+=generateMarker(i); // generate marker for entry i in the list
664 // (order is left to right)
665
666 if (i!=numEntries-1) // not the last entry, so we need a separator
667 {
668 if (i<numEntries-2) // not the fore last entry
669 result+="," CN_SPC;
670 else // the fore last entry
671 result+=CN_SPC ", 以及" CN_SPC;
672 }
673 }
674 return result;
675 }
676
677 /*! used in class documentation to produce a list of base classes,
678 * if class diagrams are disabled.
679 */
680 QCString trInheritsList(int numEntries) override
681 { return "继承自" CN_SPC+trWriteList(numEntries)+CN_SPC "."; }
682
683 /*! used in class documentation to produce a list of super classes,
684 * if class diagrams are disabled.
685 */
686 QCString trInheritedByList(int numEntries) override
687 {
688 return "被" CN_SPC+trWriteList(numEntries)+CN_SPC "继承.";
689 }
690
691 /*! used in member documentation blocks to produce a list of
692 * members that are hidden by this one.
693 */
694 QCString trReimplementedFromList(int numEntries) override
695 {
696 return "重载" CN_SPC+trWriteList(numEntries)+CN_SPC ".";
697 }
698
699 /*! used in member documentation blocks to produce a list of
700 * all member that overwrite the implementation of this member.
701 */
702 QCString trReimplementedInList(int numEntries) override
703 {
704 return "被" CN_SPC+trWriteList(numEntries)+CN_SPC "重载.";
705 }
706
707 /*! This is put above each page as a link to all members of namespaces. */
708 QCString trNamespaceMembers() override
709 { return "命名空间成员"; }
710
711 /*! This is an introduction to the page with all namespace members */
712 QCString trNamespaceMemberDescription(bool extractAll) override
713 {
714 QCString result="这里列出了所有";
715 if (!extractAll) result+="文档化的";
716 result+="命名空间成员,并附带";
717 if (extractAll)
718 result+="其对应命名空间的说明文档:";
719 else
720 result+="其所属的命名空间:";
721 return result;
722 }
723
724 /*! This is used in LaTeX as the title of the chapter with the
725 * index of all namespaces.
726 */
727 QCString trNamespaceIndex() override
728 { return "命名空间索引"; }
729
730 /*! This is used in LaTeX as the title of the chapter containing
731 * the documentation of all namespaces.
732 */
733 QCString trNamespaceDocumentation() override
734 { return "命名空间文档"; }
735
736//////////////////////////////////////////////////////////////////////////
737// new since 0.49-990522
738//////////////////////////////////////////////////////////////////////////
739
740 /*! This is used in the documentation before the list of all
741 * namespaces in a file.
742 */
743 QCString trNamespaces() override
744 {
745 return "命名空间";
746 }
747
748//////////////////////////////////////////////////////////////////////////
749// new since 0.49-990728
750//////////////////////////////////////////////////////////////////////////
751
752 /*! This is put at the bottom of a class documentation page and is
753 * followed by a list of files that were used to generate the page.
754 */
756 bool) override
757 { // single is true implies a single file
758 bool vhdlOpt = Config_getBool(OPTIMIZE_OUTPUT_VHDL);
759 QCString result="该";
760 switch(compType)
761 {
762 case ClassDef::Class: result+=vhdlOpt?"设计单元":"类"; break;
763 case ClassDef::Struct: result+="结构体"; break;
764 case ClassDef::Union: result+="联合体"; break;
765 case ClassDef::Interface: result+="接口"; break;
766 case ClassDef::Protocol: result+="协议"; break;
767 case ClassDef::Category: result+="分类"; break;
768 case ClassDef::Exception: result+="异常"; break;
769 default: break;
770 }
771 result+="的文档由以下文件生成:";
772 return result;
773 }
774
775//////////////////////////////////////////////////////////////////////////
776// new since 0.49-990901
777//////////////////////////////////////////////////////////////////////////
778
779 /*! This is used as the heading text for the retval command. */
780 QCString trReturnValues() override
781 { return "返回值"; }
782
783 /*! This is in the (quick) index as a link to the main page (index.html)
784 */
785 QCString trMainPage() override
786 { return "首页"; }
787
788 /*! This is used in references to page that are put in the LaTeX
789 * documentation. It should be an abbreviation of the word page.
790 */
791 QCString trPageAbbreviation() override
792 { return "p."; }
793
794//////////////////////////////////////////////////////////////////////////
795// new since 0.49-991106
796//////////////////////////////////////////////////////////////////////////
797
798 QCString trDefinedAtLineInSourceFile() override
799 {
800 return "在文件" CN_SPC "@1" CN_SPC "第" CN_SPC "@0" CN_SPC "行定义.";
801 }
802
803 QCString trDefinedInSourceFile() override
804 {
805 return "在文件" CN_SPC "@0" CN_SPC "中定义.";
806 }
807
808//////////////////////////////////////////////////////////////////////////
809// new since 0.49-991205
810//////////////////////////////////////////////////////////////////////////
811
812 QCString trDeprecated() override
813 {
814 return "弃用";
815 }
816
817//////////////////////////////////////////////////////////////////////////
818// new since 1.0.0
819//////////////////////////////////////////////////////////////////////////
820
821 /*! this text is put before a collaboration diagram */
822 QCString trCollaborationDiagram(const QCString &clName) override
823 {
824 return clName+CN_SPC "的协作图:";
825 }
826
827 /*! this text is put before an include dependency graph */
828 QCString trInclDepGraph(const QCString &fName) override
829 {
830 return fName+CN_SPC "的引用(Include)关系图:";
831 }
832
833 /*! header that is put before the list of constructor/destructors. */
834 QCString trConstructorDocumentation() override
835 {
836 return "构造及析构函数说明";
837 }
838
839 /*! Used in the file documentation to point to the corresponding sources. */
840 QCString trGotoSourceCode() override
841 {
842 return "浏览该文件的源代码.";
843 }
844
845 /*! Used in the file sources to point to the corresponding documentation. */
846 QCString trGotoDocumentation() override
847 {
848 return "浏览该文件的文档.";
849 }
850
851 /*! Text for the \\pre command */
852 QCString trPrecondition() override
853 {
854 return "前置条件";
855 }
856
857 /*! Text for the \\post command */
858 QCString trPostcondition() override
859 {
860 return "后置条件";
861 }
862
863 /*! Text for the \\invariant command */
864 QCString trInvariant() override
865 {
866 return "不变性";
867 }
868
869 /*! Text shown before a multi-line variable/enum initialization */
870 QCString trInitialValue() override
871 {
872 return "初始值:";
873 }
874
875 /*! Text used the source code in the file index */
876 QCString trCode() override
877 {
878 return "代码";
879 }
880
881 QCString trGraphicalHierarchy() override
882 {
883 return "类继承关系图";
884 }
885
886 QCString trGotoGraphicalHierarchy() override
887 {
888 return "浏览类继承关系图";
889 }
890
891 QCString trGotoTextualHierarchy() override
892 {
893 return "浏览类继承关系表";
894 }
895
896 QCString trPageIndex() override
897 {
898 return "页面索引";
899 }
900
901//////////////////////////////////////////////////////////////////////////
902// new since 1.1.0
903//////////////////////////////////////////////////////////////////////////
904
905 QCString trNote() override
906 {
907 return "注解";
908 }
909
910 QCString trPublicTypes() override
911 {
912 return "Public 类型";
913 }
914
915 QCString trPublicAttribs() override
916 {
917 if (Config_getBool(OPTIMIZE_OUTPUT_FOR_C))
918 {
919 return "成员变量";
920 }
921 else
922 {
923 return "Public 属性";
924 }
925 }
926
927 QCString trStaticPublicAttribs() override
928 {
929 return "静态 Public 属性";
930 }
931
932 QCString trProtectedTypes() override
933 {
934 return "Protected 类型";
935 }
936
937 QCString trProtectedAttribs() override
938 {
939 return "Protected 属性";
940 }
941
942 QCString trStaticProtectedAttribs() override
943 {
944 return "静态 Protected 属性";
945 }
946
947 QCString trPrivateTypes() override
948 {
949 return "Private 类型";
950 }
951
952 QCString trPrivateAttribs() override
953 {
954 return "Private 属性";
955 }
956
957 QCString trStaticPrivateAttribs() override
958 {
959 return "静态 Private 属性";
960 }
961
962
963//////////////////////////////////////////////////////////////////////////
964// new since 1.1.3
965//////////////////////////////////////////////////////////////////////////
966
967 /*! Used as a marker that is put before a todo item */
968 QCString trTodo() override
969 {
970 return "待办事项";
971 }
972
973 /*! Used as the header of the todo list */
974 QCString trTodoList() override
975 {
976 return "待办事项列表";
977 }
978
979//////////////////////////////////////////////////////////////////////////
980// new since 1.1.4
981//////////////////////////////////////////////////////////////////////////
982
983 QCString trReferencedBy() override
984 {
985 return "被这些函数引用";
986 }
987
988 QCString trRemarks() override
989 {
990 return "备注";
991 }
992
993 QCString trAttention() override
994 {
995 return "注意";
996 }
997
998 QCString trInclByDepGraph() override
999 {
1000 return "此图展示该文件被哪些文件直接或间接地引用了:";
1001 }
1002
1003 QCString trSince() override
1004 {
1005 return "自从";
1006 }
1007
1008//////////////////////////////////////////////////////////////////////////
1009// new since 1.1.5
1010//////////////////////////////////////////////////////////////////////////
1011
1012 /*! title of the graph legend page */
1013 QCString trLegendTitle() override
1014 {
1015 return "图例";
1016 }
1017
1018 /*! page explaining how the dot graph's should be interpreted
1019 * The %A in the text below are to prevent link to classes called "A".
1020 */
1021 QCString trLegendDocs() override
1022 {
1023 return
1024 "本页将向您解释如何理解由" CN_SPC "doxygen" CN_SPC "生成的图.<p>\n"
1025 "考虑如下例子:\n"
1026 "\\code\n"
1027 "/*! 由于截断而使" CN_SPC "Invisible" CN_SPC "不可见 */\n"
1028 "class Invisible { };\n\n"
1029 "/*! Truncated" CN_SPC "的继承关系将被隐藏 */\n"
1030 "class Truncated : public Invisible { };\n\n"
1031 "/* 没有被" CN_SPC "doxygen" CN_SPC "文档化的类 */\n"
1032 "class Undocumented { };\n\n"
1033 "/*! public" CN_SPC "继承关系的基类 */\n"
1034 "class PublicBase : public Truncated { };\n\n"
1035 "/*! 一个模板类 */\n"
1036 "template<class T> class Templ { };\n\n"
1037 "/*! protected" CN_SPC "继承关系的基类 */\n"
1038 "class ProtectedBase { };\n\n"
1039 "/*! private" CN_SPC "继承关系的基类 */\n"
1040 "class PrivateBase { };\n\n"
1041 "/*! 被" CN_SPC "Inherited" CN_SPC "使用的类 */\n"
1042 "class Used { };\n\n"
1043 "/*! 继承自其它若干类的超级类 */\n"
1044 "class Inherited : public PublicBase,\n"
1045 " protected ProtectedBase,\n"
1046 " private PrivateBase,\n"
1047 " public Undocumented,\n"
1048 " public Templ<int>\n"
1049 "{\n"
1050 " private:\n"
1051 " Used *m_usedClass;\n"
1052 "};\n"
1053 "\\endcode\n"
1054 "结果将会生成以下图:"
1055 "<p><center><img alt=\"\" src=\"graph_legend."+getDotImageExtension()+"\"></center></p>\n"
1056 "<p>\n"
1057 "上图中的矩形含义为:\n"
1058 "</p>\n"
1059 "<ul>\n"
1060 "<li>%灰色填充的矩形 表示生成上图的结构体或类.</li>\n"
1061 "<li>%黑色边框的矩形 表示已经被文档化的结构体或类.</li>\n"
1062 "<li>%灰色边框的矩形 表示未被文档化的结构体或类.</li>\n"
1063 "<li>%红色边框的矩形 表示该结构体或类的关系没有被完全显示."
1064 "%如果生成的图超出了指定的尺寸范围,有一些关系就会被截断而无法显示.</li>\n"
1065 "</ul>\n"
1066 "<p>\n"
1067 "箭头的含义为:\n"
1068 "</p>\n"
1069 "<ul>\n"
1070 "<li>%蓝色的箭头 表示" CN_SPC "public" CN_SPC "继承关系.</li>\n"
1071 "<li>%深绿色的箭头 表示" CN_SPC "protected" CN_SPC "继承关系.</li>\n"
1072 "<li>%深红色的箭头 表示" CN_SPC "private" CN_SPC "继承关系.</li>\n"
1073 "<li>%紫色虚线箭头 表示两个类之间的聚合关系. 可以通过箭头旁标明的变量访问箭头指向的类或结构体实例.</li>\n"
1074 "<li>%黄色虚线箭头 表示模板类实例和模板类之间的关系. 箭头旁边标明了模板类实例化时所用的模板参数.</li>\n"
1075 "</ul>\n";
1076 }
1077
1078 /*! text for the link to the legend page */
1079 QCString trLegend() override
1080 {
1081 return "图例";
1082 }
1083
1084//////////////////////////////////////////////////////////////////////////
1085// new since 1.2.0
1086//////////////////////////////////////////////////////////////////////////
1087
1088 /*! Used as a marker that is put before a test item */
1089 QCString trTest() override
1090 {
1091 return "测试";
1092 }
1093
1094 /*! Used as the header of the test list */
1095 QCString trTestList() override
1096 {
1097 return "测试列表";
1098 }
1099
1100//////////////////////////////////////////////////////////////////////////
1101//// new since 1.2.2
1102////////////////////////////////////////////////////////////////////////////
1103
1104 /*! Used as a section header for IDL properties */
1105 QCString trProperties() override
1106 {
1107 return "属性";
1108 }
1109
1110 /*! Used as a section header for IDL property documentation */
1111 QCString trPropertyDocumentation() override
1112 {
1113 return "属性说明";
1114 }
1115
1116//////////////////////////////////////////////////////////////////////////
1117// new since 1.2.4
1118//////////////////////////////////////////////////////////////////////////
1119
1120 /*! Used for Java classes in the summary section of Java packages */
1121 QCString trClasses() override
1122 {
1123 if (Config_getBool(OPTIMIZE_OUTPUT_FOR_C))
1124 {
1125 return "结构体";
1126 }
1127 else
1128 {
1129 return "类";
1130 }
1131 }
1132
1133 /*! Used as the title of a Java package */
1134 QCString trPackage(const QCString &name) override
1135 {
1136 return "包" CN_SPC+name;
1137 }
1138
1139
1140 /*! The description of the package index page */
1141 QCString trPackageListDescription() override
1142 {
1143 return "这里列出所有的包,附带简要说明(如果有的话):";
1144 }
1145
1146 /*! The link name in the Quick links header for each page */
1147 QCString trPackages() override
1148 {
1149 return "包";
1150 }
1151
1152 /*! Text shown before a multi-line define */
1153 QCString trDefineValue() override
1154 {
1155 return "值:";
1156 }
1157
1158////////////////////////////////////////////////////////////////////////////
1159//// new since 1.2.6
1160////////////////////////////////////////////////////////////////////////////
1161 /*! Used as a marker that is put before a \\bug item */
1162 QCString trBug () override
1163 {
1164 return "Bug";
1165 }
1166 /*! Used as the header of the bug list */
1167 QCString trBugList () override
1168 {
1169 return "Bug" CN_SPC "列表";
1170 }
1171
1172//////////////////////////////////////////////////////////////////////////
1173// new since 1.2.6
1174//////////////////////////////////////////////////////////////////////////
1175
1176 /*! Used as ansicpg for RTF file
1177 *
1178 * The following table shows the correlation of Charset name, Charset Value and
1179 * <pre>
1180 * Codepage number:
1181 * Charset Name Charset Value(hex) Codepage number
1182 * ------------------------------------------------------
1183 * DEFAULT_CHARSET 1 (x01)
1184 * SYMBOL_CHARSET 2 (x02)
1185 * OEM_CHARSET 255 (xFF)
1186 * ANSI_CHARSET 0 (x00) 1252
1187 * RUSSIAN_CHARSET 204 (xCC) 1251
1188 * EE_CHARSET 238 (xEE) 1250
1189 * GREEK_CHARSET 161 (xA1) 1253
1190 * TURKISH_CHARSET 162 (xA2) 1254
1191 * BALTIC_CHARSET 186 (xBA) 1257
1192 * HEBREW_CHARSET 177 (xB1) 1255
1193 * ARABIC _CHARSET 178 (xB2) 1256
1194 * SHIFTJIS_CHARSET 128 (x80) 932
1195 * HANGEUL_CHARSET 129 (x81) 949
1196 * GB2313_CHARSET 134 (x86) 936
1197 * CHINESEBIG5_CHARSET 136 (x88) 950
1198 * </pre>
1199 *
1200 */
1201 QCString trRTFansicp() override
1202 {
1203 return "936";
1204 }
1205
1206 /*! Used as ansicpg for RTF fcharset
1207 * \see trRTFansicp() for a table of possible values.
1208 */
1209 QCString trRTFCharSet() override
1210 {
1211 return "134";
1212 }
1213
1214
1215 /*! Used as header RTF general index */
1216 QCString trRTFGeneralIndex() override
1217 {
1218 return "索引";
1219 }
1220
1221 // Following translations (from trClass to trAuthor) are used for languages
1222 // having plural / singular form for nouns, but Chinese does not distinguish
1223 // plural form from singular form, so the returned value is constant.
1224
1225 /*! This is used for translation of the word that will possibly
1226 * be followed by a single name or by a list of names
1227 * of the category.
1228 */
1229 QCString trClass(bool /*first_capital*/, bool /*singular*/) override
1230 {
1231 return "类";
1232 }
1233
1234 /*! This is used for translation of the word that will possibly
1235 * be followed by a single name or by a list of names
1236 * of the category.
1237 */
1238 QCString trFile(bool /*first_capital*/, bool /*singular*/) override
1239 {
1240 return "文件";
1241
1242 }
1243
1244 /*! This is used for translation of the word that will possibly
1245 * be followed by a single name or by a list of names
1246 * of the category.
1247 */
1248 QCString trNamespace(bool /*first_capital*/, bool /*singular*/) override
1249 {
1250 return "命名空间";
1251 }
1252
1253 /*! This is used for translation of the word that will possibly
1254 * be followed by a single name or by a list of names
1255 * of the category.
1256 */
1257 QCString trGroup(bool /*first_capital*/, bool /*singular*/) override
1258 {
1259 return "组";
1260 }
1261
1262 /*! This is used for translation of the word that will possibly
1263 * be followed by a single name or by a list of names
1264 * of the category.
1265 */
1266 QCString trPage(bool /*first_capital*/, bool /*singular*/) override
1267 {
1268 return "页";
1269 }
1270
1271 /*! This is used for translation of the word that will possibly
1272 * be followed by a single name or by a list of names
1273 * of the category.
1274 */
1275 QCString trMember(bool /*first_capital*/, bool /*singular*/) override
1276 {
1277 return "成员";
1278 }
1279
1280 /*! This is used for translation of the word that will possibly
1281 * be followed by a single name or by a list of names
1282 * of the category.
1283 */
1284 QCString trGlobal(bool /*first_capital*/, bool /*singular*/) override
1285 {
1286 return "全局";
1287 }
1288
1289//////////////////////////////////////////////////////////////////////////
1290// new since 1.2.7
1291//////////////////////////////////////////////////////////////////////////
1292
1293 /*! This text is generated when the \\author command is used and
1294 * for the author section in man pages. */
1295 QCString trAuthor(bool /*first_capital*/, bool /*singular*/) override
1296 {
1297 return "作者";
1298 }
1299
1300//////////////////////////////////////////////////////////////////////////
1301// new since 1.2.11
1302//////////////////////////////////////////////////////////////////////////
1303
1304 /*! This text is put before the list of members referenced by a member
1305 */
1306 QCString trReferences() override
1307 {
1308 return "引用了";
1309 }
1310
1311//////////////////////////////////////////////////////////////////////////
1312// new since 1.2.13
1313//////////////////////////////////////////////////////////////////////////
1314
1315 /*! used in member documentation blocks to produce a list of
1316 * members that are implemented by this one.
1317 */
1318 QCString trImplementedFromList(int numEntries) override
1319 {
1320 return "实现了" CN_SPC+trWriteList(numEntries)+".";
1321 }
1322
1323 /*! used in member documentation blocks to produce a list of
1324 * all members that implement this abstract member.
1325 */
1326 QCString trImplementedInList(int numEntries) override
1327 {
1328 return "在" CN_SPC+trWriteList(numEntries)+CN_SPC "内被实现.";
1329 }
1330
1331//////////////////////////////////////////////////////////////////////////
1332// new since 1.2.16
1333//////////////////////////////////////////////////////////////////////////
1334
1335 /*! used in RTF documentation as a heading for the Table
1336 * of Contents.
1337 */
1338 QCString trRTFTableOfContents() override
1339 {
1340 return "目录";
1341 }
1342
1343//////////////////////////////////////////////////////////////////////////
1344// new since 1.2.17
1345//////////////////////////////////////////////////////////////////////////
1346
1347 /*! Used as the header of the list of item that have been
1348 * flagged deprecated
1349 */
1350 QCString trDeprecatedList() override
1351 {
1352 return "弃用列表";
1353 }
1354
1355//////////////////////////////////////////////////////////////////////////
1356// new since 1.2.18
1357//////////////////////////////////////////////////////////////////////////
1358
1359 /*! Used as a header for declaration section of the events found in
1360 * a C# program
1361 */
1362 QCString trEvents() override
1363 {
1364 return "事件";
1365 }
1366
1367 /*! Header used for the documentation section of a class' events. */
1368 QCString trEventDocumentation() override
1369 {
1370 return "事件说明";
1371 }
1372
1373//////////////////////////////////////////////////////////////////////////
1374// new since 1.3
1375//////////////////////////////////////////////////////////////////////////
1376
1377 /*! Used as a heading for a list of Java class types with package scope.
1378 */
1379 QCString trPackageTypes() override
1380 {
1381 return "包类型";
1382 }
1383
1384 /*! Used as a heading for a list of Java class functions with package
1385 * scope.
1386 */
1387 QCString trPackageFunctions() override
1388 {
1389 return "包函数";
1390 }
1391 QCString trPackageMembers() override
1392 {
1393 return "包成员";
1394 }
1395
1396 /*! Used as a heading for a list of static Java class functions with
1397 * package scope.
1398 */
1399 QCString trStaticPackageFunctions() override
1400 {
1401 return "静态包函数";
1402 }
1403
1404 /*! Used as a heading for a list of Java class variables with package
1405 * scope.
1406 */
1407 QCString trPackageAttribs() override
1408 {
1409 return "包属性";
1410 }
1411
1412 /*! Used as a heading for a list of static Java class variables with
1413 * package scope.
1414 */
1415 QCString trStaticPackageAttribs() override
1416 {
1417 return "静态包属性";
1418 }
1419
1420//////////////////////////////////////////////////////////////////////////
1421// new since 1.3.1
1422//////////////////////////////////////////////////////////////////////////
1423
1424 /*! Used in the quick index of a class/file/namespace member list page
1425 * to link to the unfiltered list of all members.
1426 */
1427 QCString trAll() override
1428 {
1429 return "全部";
1430 }
1431
1432 /*! Put in front of the call graph for a function. */
1433 QCString trCallGraph() override
1434 {
1435 return "函数调用图:";
1436 }
1437
1438//////////////////////////////////////////////////////////////////////////
1439// new since 1.3.3
1440//////////////////////////////////////////////////////////////////////////
1441
1442 /*! This string is used as the title for the page listing the search
1443 * results.
1444 */
1445 QCString trSearchResultsTitle() override
1446 {
1447 return "搜索结果";
1448 }
1449
1450 /*! This string is put just before listing the search results. The
1451 * text can be different depending on the number of documents found.
1452 * Inside the text you can put the special marker $num to insert
1453 * the number representing the actual number of search results.
1454 * The @a numDocuments parameter can be either 0, 1 or 2, where the
1455 * value 2 represents 2 or more matches. HTML markup is allowed inside
1456 * the returned string.
1457 */
1458 QCString trSearchResults(int numDocuments) override
1459 {
1460 if (numDocuments==0)
1461 {
1462 return "抱歉,未找到与您查询相符的文档.";
1463 }
1464 else if (numDocuments==1)
1465 {
1466 return "找到<b>1</b>篇与您查询相符的文档.";
1467 }
1468 else
1469 {
1470 return "找到<b>$num</b>篇与您查询相符的文档."
1471 "优先显示最符合的文档.";
1472 }
1473 }
1474 /*! This string is put before the list of matched words, for each search
1475 * result. What follows is the list of words that matched the query.
1476 */
1477 QCString trSearchMatches() override
1478 {
1479 return "符合的结果:";
1480 }
1481
1482//////////////////////////////////////////////////////////////////////////
1483// new since 1.3.8
1484//////////////////////////////////////////////////////////////////////////
1485
1486 /*! This is used in HTML as the title of page with source code for file filename
1487 */
1488 QCString trSourceFile(const QCString& filename) override
1489 {
1490 return filename + CN_SPC "源文件";
1491 }
1492//////////////////////////////////////////////////////////////////////////
1493// new since 1.3.9
1494//////////////////////////////////////////////////////////////////////////
1495
1496 /*! This is used as the name of the chapter containing the directory
1497 * hierarchy.
1498 */
1499 QCString trDirIndex() override
1500 {
1501 return "目录结构";
1502 }
1503
1504 /*! This is used as the name of the chapter containing the documentation
1505 * of the directories.
1506 */
1507 QCString trDirDocumentation() override
1508 {
1509 return "目录说明";
1510 }
1511
1512 /*! This is used as the title of the directory index and also in the
1513 * Quick links of an HTML page, to link to the directory hierarchy.
1514 */
1515 QCString trDirectories() override
1516 { return "目录"; }
1517
1518 /*! This returns the title of a directory page. The name of the
1519 * directory is passed via \a dirName.
1520 */
1521 QCString trDirReference(const QCString &dirName) override
1522 {
1523 QCString result=dirName;
1524 result+=CN_SPC "目录参考";
1525 return result;
1526 }
1527
1528 /*! This returns the word directory with or without starting capital
1529 * (\a first_capital) and in sigular or plural form (\a singular).
1530 */
1531 QCString trDir(bool /*first_capital*/, bool /*singular*/) override
1532 {
1533 return "目录";
1534 }
1535
1536//////////////////////////////////////////////////////////////////////////
1537// new since 1.4.1
1538//////////////////////////////////////////////////////////////////////////
1539
1540 /*! This text is added to the documentation when the \\overload command
1541 * is used for a overloaded function.
1542 */
1543 QCString trOverloadText() override
1544 {
1545 return "这是为便于使用而提供的一个重载成员函数."
1546 "与上面的函数相比,它接受不同类型的参数.";
1547 }
1548
1549//////////////////////////////////////////////////////////////////////////
1550// new since 1.4.6
1551//////////////////////////////////////////////////////////////////////////
1552
1553 /*! This is used to introduce a caller (or called-by) graph */
1554 QCString trCallerGraph() override
1555 {
1556 return "这是这个函数的调用关系图:";
1557 }
1558
1559 /*! This is used in the documentation of a file/namespace before the list
1560 * of documentation blocks for enumeration values
1561 */
1563 {
1564 return "枚举变量说明";
1565 }
1566
1567//////////////////////////////////////////////////////////////////////////
1568// new since 1.5.4 (mainly for Fortran)
1569//////////////////////////////////////////////////////////////////////////
1570
1571 /*! header that is put before the list of member subprograms (Fortran). */
1573 { return "成员函数/子程序说明"; }
1574
1575 /*! This is put above each page as a link to the list of annotated data types (Fortran). */
1576 QCString trCompoundListFortran() override
1577 { return "数据类型列表"; }
1578
1579 /*! This is put above each page as a link to all members of compounds (Fortran). */
1580 QCString trCompoundMembersFortran() override
1581 { return "数据项"; }
1582
1583 /*! This is an introduction to the annotated compound list (Fortran). */
1585 { return "带简要描述的数据类型列表:"; }
1586
1587 /*! This is an introduction to the page with all data types (Fortran). */
1588 QCString trCompoundMembersDescriptionFortran(bool extractAll) override
1589 {
1590 QCString result="这里列出了所有";
1591 if (!extractAll)
1592 {
1593 result+="文档化的";
1594 }
1595 result+="数据类型成员,并附带";
1596 if (!extractAll)
1597 {
1598 result+="其数据结构说明文档:";
1599 }
1600 else
1601 {
1602 result+="其所属的数据类型:";
1603 }
1604 return result;
1605 }
1606
1607 /*! This is used in LaTeX as the title of the chapter with the
1608 * annotated compound index (Fortran).
1609 */
1610 QCString trCompoundIndexFortran() override
1611 { return "数据类型索引"; }
1612
1613
1614 /*! This is used in LaTeX as the title of the chapter containing
1615 * the documentation of all data types (Fortran).
1616 */
1617 QCString trTypeDocumentation() override
1618 { return "数据类型文档"; }
1619
1620 /*! This is used in the documentation of a file as a header before the
1621 * list of (global) subprograms (Fortran).
1622 */
1623 QCString trSubprograms() override
1624 { return "函数/子程序"; }
1625
1626 /*! This is used in the documentation of a file/namespace before the list
1627 * of documentation blocks for subprograms (Fortran)
1628 */
1629 QCString trSubprogramDocumentation() override
1630 { return "函数/子程序说明"; }
1631
1632
1633 /*! This is used in the documentation of a file/namespace/group before
1634 * the list of links to documented compounds (Fortran)
1635 */
1636 QCString trDataTypes() override
1637 { return "数据类型"; }
1638
1639 /*! used as the title of page containing all the index of all modules (Fortran). */
1640 QCString trModulesList() override
1641 { return "模块列表"; }
1642
1643 /*! used as an introduction to the modules list (Fortran) */
1644 QCString trModulesListDescription(bool extractAll) override
1645 {
1646 QCString result="这里列出了所有";
1647 if (!extractAll) result+="文档化的";
1648 result+="模块,并附带简要说明:";
1649 return result;
1650 }
1651
1652 /*! used as the title of the HTML page of a module/type (Fortran) */
1653 QCString trCompoundReferenceFortran(const QCString &clName,
1654 ClassDef::CompoundType compType,
1655 bool isTemplate) override
1656 {
1657 QCString result=clName;
1658 switch(compType)
1659 {
1660 case ClassDef::Class: result+=CN_SPC "模块"; break;
1661 case ClassDef::Struct: result+=CN_SPC "类型"; break;
1662 case ClassDef::Union: result+=CN_SPC "联合体"; break;
1663 case ClassDef::Interface: result+=CN_SPC "接口"; break;
1664 case ClassDef::Protocol: result+=CN_SPC "协议"; break;
1665 case ClassDef::Category: result+=CN_SPC "目录"; break;
1666 case ClassDef::Exception: result+=CN_SPC "异常"; break;
1667 default: break;
1668 }
1669 if (isTemplate) result+="模板" CN_SPC;
1670 result+="参考手册";
1671 return result;
1672 }
1673
1674 /*! used as the title of the HTML page of a module (Fortran) */
1675 QCString trModuleReference(const QCString &namespaceName) override
1676 {
1677 QCString result=namespaceName;
1678 result += CN_SPC "模块参考手册";
1679 return result;
1680 }
1681
1682 /*! This is put above each page as a link to all members of modules. (Fortran) */
1683 QCString trModulesMembers() override
1684 { return "模块成员"; }
1685
1686 /*! This is an introduction to the page with all modules members (Fortran) */
1687 QCString trModulesMemberDescription(bool extractAll) override
1688 {
1689 if(!extractAll) {
1690 return "这里是所有文档化的模块成员列表,含有到每个成员所在模块的文档的链接:";
1691 } else {
1692 return "这里是模块成员列表,含有到成员所属的模块的链接:";
1693 }
1694 }
1695
1696 /*! This is used in LaTeX as the title of the chapter with the
1697 * index of all modules (Fortran).
1698 */
1699 QCString trModulesIndex() override
1700 { return "模块索引"; }
1701
1702 /*! This is used for translation of the word that will possibly
1703 * be followed by a single name or by a list of names
1704 * of the category.
1705 */
1706 QCString trModule(bool /*first_capital*/, bool /*singular*/) override
1707 {
1708 return "模块";
1709 }
1710 /*! This is put at the bottom of a module documentation page and is
1711 * followed by a list of files that were used to generate the page.
1712 */
1714 bool) override
1715 {
1716 QCString result="该";
1717 switch(compType)
1718 {
1719 case ClassDef::Class: result+=CN_SPC "模块"; break;
1720 case ClassDef::Struct: result+=CN_SPC "结构体"; break;
1721 case ClassDef::Union: result+=CN_SPC "联合体"; break;
1722 case ClassDef::Interface: result+=CN_SPC "接口"; break;
1723 case ClassDef::Protocol: result+=CN_SPC "协议"; break;
1724 case ClassDef::Category: result+=CN_SPC "目录"; break;
1725 case ClassDef::Exception: result+=CN_SPC "异常"; break;
1726 default: break;
1727 }
1728 result+=CN_SPC "的文档由以下文件生成:";
1729 return result;
1730 }
1731
1732 /*! This is used for translation of the word that will possibly
1733 * be followed by a single name or by a list of names
1734 * of the category.
1735 */
1736 QCString trType(bool /*first_capital*/, bool /*singular*/) override
1737 {
1738 return "类型";
1739 }
1740
1741 /*! This is used for translation of the word that will possibly
1742 * be followed by a single name or by a list of names
1743 * of the category.
1744 */
1745 QCString trSubprogram(bool /*first_capital*/, bool /*singular*/) override
1746 {
1747 return "子程序";
1748 }
1749
1750 /*! C# Type Constraint list */
1751 QCString trTypeConstraints() override
1752 {
1753 return "类型限制";
1754 }
1755
1756//////////////////////////////////////////////////////////////////////////
1757// new since 1.6.0
1758//////////////////////////////////////////////////////////////////////////
1759
1760 /*! directory relation for \a name */
1761 QCString trDirRelation(const QCString &name) override
1762 {
1763 // return QCString(name)+" Relation";
1764 // unsure
1765 return QCString(name)+CN_SPC "关系";
1766 }
1767
1768 /*! Loading message shown when loading search results */
1769 QCString trLoading() override
1770 {
1771 return "载入中...";
1772 }
1773
1774 /*! Label used for search results in the global namespace */
1775 QCString trGlobalNamespace() override
1776 {
1777 return "全局命名空间";
1778 }
1779
1780 /*! Message shown while searching */
1781 QCString trSearching() override
1782 {
1783 return "搜索中...";
1784 }
1785
1786 /*! Text shown when no search results are found */
1787 QCString trNoMatches() override
1788 {
1789 return "未找到";
1790 }
1791
1792//////////////////////////////////////////////////////////////////////////
1793// new since 1.6.3
1794//////////////////////////////////////////////////////////////////////////
1795
1796 /*! when clicking a directory dependency label, a page with a
1797 * table is shown. The heading for the first column mentions the
1798 * source file that has a relation to another file.
1799 */
1800 QCString trFileIn(const QCString &name) override
1801 {
1802 return QCString("文件在")+CN_SPC+name;
1803 }
1804
1805 /*! when clicking a directory dependency label, a page with a
1806 * table is shown. The heading for the second column mentions the
1807 * destination file that is included.
1808 */
1809 QCString trIncludesFileIn(const QCString &name) override
1810 {
1811 return "在" CN_SPC+name+CN_SPC "中引用";
1812 }
1813
1814 /** Compiles a date string.
1815 * @param year Year in 4 digits
1816 * @param month Month of the year: 1=January
1817 * @param day Day of the Month: 1..31
1818 * @param dayOfWeek Day of the week: 1=Monday..7=Sunday
1819 * @param hour Hour of the day: 0..23
1820 * @param minutes Minutes in the hour: 0..59
1821 * @param seconds Seconds within the minute: 0..59
1822 * @param includeTime Include time in the result string?
1823 */
1824 QCString trDateTime(int year,int month,int day,int dayOfWeek,
1825 int hour,int minutes,int seconds,
1826 DateTimeType includeTime) override
1827 {
1828 static const char *days[] = { "一","二","三","四","五","六","日" };
1829 static const char *months[] = { "一","二","三","四","五","六","七","八","九","十","十一","十二" };
1830
1831 QCString sdate;
1832
1833 if (includeTime == DateTimeType::DateTime || includeTime == DateTimeType::Date)
1834 {
1835 sdate.sprintf("%d年" CN_SPC "%s月" CN_SPC "%d日" CN_SPC "星期%s",year, months[month-1], day, days[dayOfWeek-1]);
1836 }
1837 if (includeTime == DateTimeType::DateTime) sdate += " ";
1838 if (includeTime == DateTimeType::DateTime || includeTime == DateTimeType::Time)
1839 {
1840 QCString stime;
1841 stime.sprintf("%.2d:%.2d:%.2d",hour,minutes,seconds);
1842 sdate+=stime;
1843 }
1844 return sdate;
1845 }
1846 QCString trDayOfWeek(int dayOfWeek, bool, bool full) override
1847 {
1848 static const char *days_short[] = { "周一", "周二", "周三", "周四", "周五", "周六", "周日" };
1849 static const char *days_full[] = { "星期一", "星期二", "星期三", "星期四", "星期五", "星期六", "星期日" };
1850 return full? days_full[dayOfWeek-1] : days_short[dayOfWeek-1];
1851 }
1852 QCString trMonth(int month, bool, bool full) override
1853 {
1854 static const char *months_short[] = { "1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月" };
1855 static const char *months_full[] = { "一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月" };
1856 return full? months_full[month-1] : months_short[month-1];
1857 }
1858 QCString trDayPeriod(bool period) override
1859 {
1860 static const char *dayPeriod[] = { "上午", "下午" };
1861 return dayPeriod[period?1:0];
1862 }
1863
1864//////////////////////////////////////////////////////////////////////////
1865// new since 1.7.5
1866//////////////////////////////////////////////////////////////////////////
1867
1868 /*! Header for the page with bibliographic citations */
1869 QCString trCiteReferences() override
1870 { return "参考文献"; }
1871
1872 /*! Text for copyright paragraph */
1873 QCString trCopyright() override
1874 { return "版权所有"; }
1875
1876 /*! Header for the graph showing the directory dependencies */
1877 QCString trDirDepGraph(const QCString &name) override
1878 {
1879 return QCString(name)+CN_SPC "的目录依赖关系图";
1880 }
1881
1882//////////////////////////////////////////////////////////////////////////
1883// new since 1.8.0
1884//////////////////////////////////////////////////////////////////////////
1885
1886 /*! Detail level selector shown for hierarchical indices */
1887 QCString trDetailLevel() override
1888 { return "详情级别"; }
1889
1890 /*! Section header for list of template parameters */
1891 QCString trTemplateParameters() override
1892 { return "模板参数"; }
1893
1894 /*! Used in dot graph when UML_LOOK is enabled and there are many fields */
1895 QCString trAndMore(const QCString &number) override
1896 { return "和" CN_SPC+number+CN_SPC "更多..."; }
1897
1898 /*! Used file list for a Java enum */
1899 QCString trEnumGeneratedFromFiles(bool /*single*/) override
1900 { return "枚举说明文档从下列文件生成:"; }
1901
1902 /*! Header of a Java enum page (Java enums are represented as classes). */
1903 QCString trEnumReference(const QCString &name) override
1904 { return QCString(name)+CN_SPC "枚举类型参考"; }
1905
1906 /*! Used for a section containing inherited members */
1907 QCString trInheritedFrom(const QCString &members,const QCString &what) override
1908 { return QCString(members)+CN_SPC "继承自" CN_SPC+what; }
1909
1910 /*! Header of the sections with inherited members specific for the
1911 * base class(es)
1912 */
1914 { return "额外继承的成员函数"; }
1915
1916//////////////////////////////////////////////////////////////////////////
1917
1918//////////////////////////////////////////////////////////////////////////
1919// new since 1.8.2
1920//////////////////////////////////////////////////////////////////////////
1921
1922 /*! Used as a tooltip for the toggle button that appears in the
1923 * navigation tree in the HTML output when GENERATE_TREEVIEW is
1924 * enabled. This tooltip explains the meaning of the button.
1925 */
1926 QCString trPanelSynchronisationTooltip(bool enable) override
1927 {
1928 QCString opt = enable ? "开启" : "关闭";
1929 return "点击" CN_SPC+opt+CN_SPC "面板同步";
1930 }
1931
1932 /*! Used in a method of an Objective-C class that is declared in a
1933 * a category. Note that the @1 marker is required and is replaced
1934 * by a link.
1935 */
1936 QCString trProvidedByCategory() override
1937 {
1938 return "由 category @0 提供.";
1939 }
1940
1941 /*! Used in a method of an Objective-C category that extends a class.
1942 * Note that the @1 marker is required and is replaced by a link to
1943 * the class method.
1944 */
1945 QCString trExtendsClass() override
1946 {
1947 return "扩展类 @0.";
1948 }
1949
1950 /*! Used as the header of a list of class methods in Objective-C.
1951 * These are similar to static public member functions in C++.
1952 */
1953 QCString trClassMethods() override
1954 {
1955 return "类方法";
1956 }
1957
1958 /*! Used as the header of a list of instance methods in Objective-C.
1959 * These are similar to public member functions in C++.
1960 */
1961 QCString trInstanceMethods() override
1962 {
1963 return "实例方法";
1964 }
1965
1966 /*! Used as the header of the member functions of an Objective-C class.
1967 */
1968 QCString trMethodDocumentation() override
1969 {
1970 return "成员函数文档";
1971 }
1972
1973//////////////////////////////////////////////////////////////////////////
1974// new since 1.8.4
1975//////////////////////////////////////////////////////////////////////////
1976
1977 /** old style UNO IDL services: implemented interfaces */
1978 QCString trInterfaces() override
1979 { return "导出的接口"; }
1980
1981 /** old style UNO IDL services: inherited services */
1982 QCString trServices() override
1983 { return "包含的服务"; }
1984
1985 /** UNO IDL constant groups */
1986 QCString trConstantGroups() override
1987 { return "常量组"; }
1988
1989 /** UNO IDL constant groups */
1990 QCString trConstantGroupReference(const QCString &namespaceName) override
1991 {
1992 QCString result=namespaceName;
1993 result+= CN_SPC "常量组参考";
1994 return result;
1995 }
1996 /** UNO IDL service page title */
1997 QCString trServiceReference(const QCString &sName) override
1998 {
1999 QCString result=sName;
2000 result+= CN_SPC "服务参考";
2001 return result;
2002 }
2003 /** UNO IDL singleton page title */
2004 QCString trSingletonReference(const QCString &sName) override
2005 {
2006 QCString result=sName;
2007 result+= CN_SPC "单例参考";
2008 return result;
2009 }
2010 /** UNO IDL service page */
2011 QCString trServiceGeneratedFromFiles(bool /* single */) override
2012 {
2013 // single is true implies a single file
2014 return "该服务的文档由下列文件生成:";
2015 }
2016 /** UNO IDL singleton page */
2017 QCString trSingletonGeneratedFromFiles(bool /* single */) override
2018 {
2019 // single is true implies a single file
2020 return "该单例的文档由下列文件生成:";
2021 }
2022
2023//////////////////////////////////////////////////////////////////////////
2024// new since 1.8.15
2025//////////////////////////////////////////////////////////////////////////
2026
2027 /** VHDL design unit hierarchy */
2028 QCString trDesignUnitHierarchy() override
2029 { return "设计单元层次结构"; }
2030 /** VHDL design unit list */
2031 QCString trDesignUnitList() override
2032 { return "设计单元列表"; }
2033 /** VHDL design unit members */
2034 QCString trDesignUnitMembers() override
2035 { return "设计单元成员"; }
2036 /** VHDL design unit list description */
2038 {
2039 return "这是所有设计单元成员的列表,以及指向他们所属实体的链接:";
2040 }
2041 /** VHDL design unit index */
2042 QCString trDesignUnitIndex() override
2043 { return "设计单元索引"; }
2044 /** VHDL design units */
2045 QCString trDesignUnits() override
2046 { return "设计单元"; }
2047 /** VHDL functions/procedures/processes */
2048 QCString trFunctionAndProc() override
2049 { return "函数/调用过程/进程语句"; }
2050 /** VHDL type */
2051 QCString trVhdlType(VhdlSpecifier type,bool /*single*/) override
2052 {
2053 switch(type)
2054 {
2056 return "库";
2058 return "包";
2060 return "信号";
2062 return "元件";
2064 return "常量";
2066 return "实体";
2068 return "类型";
2070 return "子类型";
2072 return "函数";
2074 return "记录";
2076 return "过程";
2078 return "结构体";
2080 return "属性";
2082 return "进程语句";
2084 return "端口";
2085 case VhdlSpecifier::USE:
2086 return "使用语句";
2088 return "类属";
2090 return "包体";
2092 return "单元";
2094 return "共享变量";
2096 return "文件";
2098 return "组";
2100 return "实例化";
2102 return "别名";
2104 return " 配置";
2106 return "混合运算";
2108 return "约束";
2109 default:
2110 return "类";
2111 }
2112 }
2113 QCString trCustomReference(const QCString &name) override
2114 { return QCString(name)+" 引用"; }
2115
2116 /* Slice */
2117 QCString trConstants() override
2118 {
2119 return "常量";
2120 }
2121 QCString trConstantDocumentation() override
2122 {
2123 return "常量文档";
2124 }
2125 QCString trSequences() override
2126 {
2127 return "序列";
2128 }
2129 QCString trSequenceDocumentation() override
2130 {
2131 return "序列文档";
2132 }
2133 QCString trDictionaries() override
2134 {
2135 return "字典";
2136 }
2137 QCString trDictionaryDocumentation() override
2138 {
2139 return "字典文档";
2140 }
2141 QCString trSliceInterfaces() override
2142 {
2143 return "接口";
2144 }
2145 QCString trInterfaceIndex() override
2146 {
2147 return "接口索引";
2148 }
2149 QCString trInterfaceList() override
2150 {
2151 return "接口列表";
2152 }
2153 QCString trInterfaceListDescription() override
2154 {
2155 return "以下是带有简要说明的接口:";
2156 }
2157 QCString trInterfaceHierarchy() override
2158 {
2159 return "接口层次结构";
2160 }
2162 {
2163 return "此继承列表大致按字母顺序排序:";
2164 }
2165 QCString trInterfaceDocumentation() override
2166 {
2167 return "接口文档";
2168 }
2169 QCString trStructs() override
2170 {
2171 return "结构";
2172 }
2173 QCString trStructIndex() override
2174 {
2175 return "结构索引";
2176 }
2177 QCString trStructList() override
2178 {
2179 return "结构列表";
2180 }
2181 QCString trStructListDescription() override
2182 {
2183 return "以下是带有简要说明的结构:";
2184 }
2185 QCString trStructDocumentation() override
2186 {
2187 return "结构文档";
2188 }
2189 QCString trExceptionIndex() override
2190 {
2191 return "异常索引";
2192 }
2193 QCString trExceptionList() override
2194 {
2195 return "异常列表";
2196 }
2197 QCString trExceptionListDescription() override
2198 {
2199 return "以下是带有简要说明的异常:";
2200 }
2201 QCString trExceptionHierarchy() override
2202 {
2203 return "异常层次结构";
2204 }
2206 {
2207 return "此继承列表大致按字母顺序排序:";
2208 }
2209 QCString trExceptionDocumentation() override
2210 {
2211 return "异常文档";
2212 }
2213 QCString trCompoundReferenceSlice(const QCString &clName, ClassDef::CompoundType compType, bool isLocal) override
2214 {
2215 QCString result=clName;
2216 if (isLocal) result+=CN_SPC "局部";
2217 switch(compType)
2218 {
2219 case ClassDef::Class: result+=CN_SPC "类"; break;
2220 case ClassDef::Struct: result+=CN_SPC "结构"; break;
2221 case ClassDef::Union: result+=CN_SPC "联合"; break;
2222 case ClassDef::Interface: result+=CN_SPC "接口"; break;
2223 case ClassDef::Protocol: result+=CN_SPC "协议"; break;
2224 case ClassDef::Category: result+=CN_SPC "类别"; break;
2225 case ClassDef::Exception: result+=CN_SPC "异常"; break;
2226 default: break;
2227 }
2228 result+="引用";
2229 return result;
2230 }
2231 QCString trOperations() override
2232 {
2233 return "操作";
2234 }
2235 QCString trOperationDocumentation() override
2236 {
2237 return "操作文档";
2238 }
2239 QCString trDataMembers() override
2240 {
2241 return "数据成员";
2242 }
2243 QCString trDataMemberDocumentation() override
2244 {
2245 return "数据成员文档";
2246 }
2247
2248//////////////////////////////////////////////////////////////////////////
2249// new since 1.8.19
2250//////////////////////////////////////////////////////////////////////////
2251
2252 /** VHDL design unit documentation */
2253 QCString trDesignUnitDocumentation() override
2254 { return "设计单元文档"; }
2255
2256//////////////////////////////////////////////////////////////////////////
2257// new since 1.9.2
2258//////////////////////////////////////////////////////////////////////////
2259
2260 /** C++20 concept */
2261 QCString trConcept(bool /* first_capital */, bool /* singular */) override
2262 {
2263 return "概念";
2264 }
2265 /*! used as the title of the HTML page of a C++20 concept page */
2266 QCString trConceptReference(const QCString &conceptName) override
2267 {
2268 QCString result=conceptName;
2269 result+=CN_SPC "概念参考";
2270 return result;
2271 }
2272
2273 /*! used as the title of page containing all the index of all concepts. */
2274 QCString trConceptList() override
2275 { return "概念列表"; }
2276
2277 /*! used as the title of chapter containing the index listing all concepts. */
2278 QCString trConceptIndex() override
2279 { return "概念索引"; }
2280
2281 /*! used as the title of chapter containing all information about concepts. */
2282 QCString trConceptDocumentation() override
2283 { return "概念文档"; }
2284
2285 /*! used as an introduction to the concept list */
2286 QCString trConceptListDescription(bool extractAll) override
2287 {
2288 QCString result="这里是所有";
2289 if (!extractAll) result+="文档化的";
2290 result+="概念, 并附有简要说明:";
2291 return result;
2292 }
2293
2294 /*! used to introduce the definition of the C++20 concept */
2295 QCString trConceptDefinition() override
2296 {
2297 return "概念定义";
2298 }
2299
2300//////////////////////////////////////////////////////////////////////////
2301// new since 1.9.4
2302//////////////////////////////////////////////////////////////////////////
2303
2304 QCString trPackageList() override
2305 { return "包列表"; }
2306
2307//////////////////////////////////////////////////////////////////////////
2308// new since 1.9.6
2309//////////////////////////////////////////////////////////////////////////
2310
2311 /*! This is used for translation of the word that will be
2312 * followed by a single name of the VHDL process flowchart.
2313 */
2314 QCString trFlowchart() override
2315 { return "流程图:"; }
2316
2317 /*! Please translate also updated body of the method
2318 * trMemberFunctionDocumentation(), now better adapted for
2319 * VHDL sources documentation.
2320 */
2321
2322//////////////////////////////////////////////////////////////////////////
2323// new since 1.9.7
2324//////////////////////////////////////////////////////////////////////////
2325 /*! used in the compound documentation before a list of related symbols.
2326 *
2327 * Supersedes trRelatedFunctions
2328 */
2329 QCString trRelatedSymbols() override
2330 { return "相关符号"; }
2331
2332 /*! subscript for the related symbols
2333 *
2334 * Supersedes trRelatedSubscript
2335 */
2336 QCString trRelatedSymbolsSubscript() override
2337 { return "(注意: 这些不是成员符号.)"; }
2338
2339 /*! used in the class documentation as a header before the list of all
2340 * related classes.
2341 *
2342 * Supersedes trRelatedFunctionDocumentation
2343 */
2345 { return "友元及相关符号说明"; }
2346
2347 /*! the compound type as used for the xrefitems */
2348 QCString trCompoundType(ClassDef::CompoundType compType, SrcLangExt lang) override
2349 {
2350 QCString result;
2351 switch(compType)
2352 {
2353 case ClassDef::Class:
2354 if (lang == SrcLangExt::Fortran) trType(true,true);
2355 else result=trClass(true,true);
2356 break;
2357 case ClassDef::Struct: result="结构体"; break;
2358 case ClassDef::Union: result="联合体"; break;
2359 case ClassDef::Interface: result="接口"; break;
2360 case ClassDef::Protocol: result="协议"; break;
2361 case ClassDef::Category: result="分类"; break;
2362 case ClassDef::Exception: result="异常"; break;
2363 case ClassDef::Service: result="服务"; break;
2364 case ClassDef::Singleton: result="单例"; break;
2365 default: break;
2366 }
2367 return result;
2368 }
2369
2371 {
2372 bool extractAll = Config_getBool(EXTRACT_ALL);
2373 QCString result="这里是所有";
2374 if (!extractAll) result+="文档化的";
2375
2376 switch (hl)
2377 {
2379 if (Config_getBool(OPTIMIZE_OUTPUT_FOR_C))
2380 {
2381 result+="函数、变量、定义、枚举和类型定义";
2382 }
2383 else
2384 {
2385 result+="文件成员";
2386 }
2387 break;
2389 result+="函数";
2390 break;
2392 result+="变量";
2393 break;
2395 result+="类型定义";
2396 break;
2398 result+="序列";
2399 break;
2401 result+="字典";
2402 break;
2404 result+="枚举";
2405 break;
2407 result+="枚举值";
2408 break;
2410 result+="宏";
2411 break;
2412 case FileMemberHighlight::Total: // for completeness
2413 break;
2414 }
2415 result+=", 及指向";
2416 if (extractAll)
2417 result+="其所属文件";
2418 else
2419 result+="其文档";
2420 result+="的链接:" CN_SPC;
2421 return result;
2422 }
2424 {
2425 bool extractAll = Config_getBool(EXTRACT_ALL);
2426 QCString result="这里是所有";
2427 if (!extractAll)
2428 {
2429 result+="文档化的";
2430 }
2431
2432 switch (hl)
2433 {
2435 if (Config_getBool(OPTIMIZE_OUTPUT_FOR_C))
2436 {
2437 result+="结构体及联合体成员";
2438 }
2439 else
2440 {
2441 result+="类成员";
2442 }
2443 break;
2445 result+="函数";
2446 break;
2448 result+="变量";
2449 break;
2451 result+="类型定义";
2452 break;
2454 result+="枚举";
2455 break;
2457 result+="枚举值";
2458 break;
2460 result+="属性";
2461 break;
2463 result+="事件";
2464 break;
2466 result+="相关符号";
2467 break;
2468 case ClassMemberHighlight::Total: // for completeness
2469 break;
2470 }
2471 result+=", 及指向";
2472 if (!extractAll)
2473 {
2474 if (Config_getBool(OPTIMIZE_OUTPUT_FOR_C))
2475 {
2476 result+="结构体 (或联合体) 中所有成员文档";
2477 }
2478 else
2479 {
2480 result+="类中所有成员文档";
2481 }
2482 }
2483 else
2484 {
2485 if (Config_getBool(OPTIMIZE_OUTPUT_FOR_C))
2486 {
2487 result+="其所属结构体 (或联合体)";
2488 }
2489 else
2490 {
2491 result+="其所属类";
2492 }
2493 }
2494 result+="的链接:" CN_SPC;
2495 return result;
2496 }
2498 {
2499 bool extractAll = Config_getBool(EXTRACT_ALL);
2500 QCString result="这里是所有";
2501 if (!extractAll) result+="文档化的";
2502 result+="命名空间";
2503 QCString singularResult = "";
2504 switch (hl)
2505 {
2507 singularResult="成员";
2508 break;
2510 singularResult="函数";
2511 break;
2513 singularResult="变量";
2514 break;
2516 singularResult="类型定义";
2517 break;
2519 singularResult="序列";
2520 break;
2522 singularResult="字典";
2523 break;
2525 singularResult="枚举";
2526 break;
2528 singularResult="枚举值";
2529 break;
2530 case NamespaceMemberHighlight::Total: // for completeness
2531 break;
2532 }
2533 result+=singularResult;
2534 result+=", 及指向";
2535 if (extractAll)
2536 result+="每个" + singularResult + "所属命名空间文档";
2537 else
2538 result+="其所属命名空间";
2539 result+="的链接:" CN_SPC;
2540 return result;
2541 }
2542 QCString trDefinition() override { return "定义";}
2543 QCString trDeclaration() override { return "声明";}
2544
2545//////////////////////////////////////////////////////////////////////////
2546// new since 1.9.8
2547//////////////////////////////////////////////////////////////////////////
2548
2549 QCString trTopics() override
2550 { return "专题"; }
2551 QCString trTopicDocumentation() override
2552 { return "专题文档"; }
2553 QCString trTopicList() override
2554 { return "专题列表"; }
2555 QCString trTopicIndex() override
2556 { return "专题索引"; }
2557 QCString trTopicListDescription() override
2558 { return "这里是所有专题及其简介:"; }
2560 {
2561 bool extractAll = Config_getBool(EXTRACT_ALL);
2562 QCString result="这里是所有";
2563 if (!extractAll) result+="文档化的";
2564 result+="模块";
2565 QCString singularResult = "";
2566 switch (hl)
2567 {
2569 singularResult="成员";
2570 break;
2572 singularResult="函数";
2573 break;
2575 singularResult="变量";
2576 break;
2578 singularResult="类型定义";
2579 break;
2581 singularResult="枚举";
2582 break;
2584 singularResult="枚举值";
2585 break;
2586 case ModuleMemberHighlight::Total: // for completeness
2587 break;
2588 }
2589 result+=singularResult;
2590 result+=", 及指向";
2591 if (extractAll)
2592 result+="每个" + singularResult + "的模块文档";
2593 else
2594 result+="其所属模块";
2595 result+="的链接:" CN_SPC;
2596 return result;
2597 }
2598 QCString trExportedModules() override
2599 {
2600 return "导出的模块";
2601 }
2602
2603//////////////////////////////////////////////////////////////////////////
2604// new since 1.10.0
2605//////////////////////////////////////////////////////////////////////////
2606
2607 QCString trCopyToClipboard() override
2608 {
2609 return "复制到剪贴板";
2610 }
2611//////////////////////////////////////////////////////////////////////////
2612// new since 1.11.0
2613//////////////////////////////////////////////////////////////////////////
2614 QCString trImportant() override
2615 {
2616 return "重要事项";
2617 }
2618};
2619
2620#endif
2621
CompoundType
The various compound types.
Definition classdef.h:109
@ Singleton
Definition classdef.h:117
@ Interface
Definition classdef.h:112
@ Exception
Definition classdef.h:115
bool isEmpty() const
Returns TRUE iff the string is empty.
Definition qcstring.h:150
QCString & sprintf(const char *format,...)
Definition qcstring.cpp:29
QCString trGotoGraphicalHierarchy() override
QCString trDirIndex() override
QCString trDictionaryDocumentation() override
QCString trLegendTitle() override
QCString trDesignUnitIndex() override
VHDL design unit index.
QCString trExportedModules() override
QCString trListOfAllMembers() override
QCString trMemberDataDocumentation() override
QCString trModule(bool, bool) override
QCString trDataTypes() override
QCString trConceptDocumentation() override
QCString trInvariant() override
QCString trRTFGeneralIndex() override
QCString trProtectedMembers() override
QCString trCompoundReferenceSlice(const QCString &clName, ClassDef::CompoundType compType, bool isLocal) override
QCString trTypedefs() override
QCString trEnumGeneratedFromFiles(bool) override
QCString trInheritedByList(int numEntries) override
QCString trClassDocumentation() override
QCString trPage(bool, bool) override
QCString trSubprograms() override
QCString trFileMembersDescription(bool extractAll) override
QCString trImplementedInList(int numEntries) override
QCString trNoMatches() override
QCString trClassMethods() override
QCString trPrivateSlots() override
QCString trDefines() override
QCString trBug() override
QCString trDayOfWeek(int dayOfWeek, bool, bool full) override
QCString trMemberFunctionDocumentationFortran() override
QCString trEnumerations() override
QCString trSingletonReference(const QCString &sName) override
UNO IDL singleton page title.
QCString trTopicListDescription() override
QCString trMemberFunctionDocumentation() override
QCString trModules() override
QCString trPageIndex() override
QCString trCompoundReferenceFortran(const QCString &clName, ClassDef::CompoundType compType, bool isTemplate) override
QCString trNamespaceMembers() override
QCString trStaticPrivateMembers() override
QCString trDefinedIn() override
QCString trNamespaceList() override
QCString trRTFansicp() override
QCString trConceptReference(const QCString &conceptName) override
QCString trGlobal(bool, bool) override
QCString trInterfaceList() override
QCString trDictionaries() override
QCString trEnumName() override
QCString trStructDocumentation() override
QCString getLanguageString() override
language codes for Html help
QCString trMore() override
QCString trTestList() override
QCString trLegend() override
QCString trExtendsClass() override
QCString trServiceReference(const QCString &sName) override
UNO IDL service page title.
QCString trTypedefDocumentation() override
QCString trModulesIndex() override
QCString trDir(bool, bool) override
QCString trRTFTableOfContents() override
QCString trDirReference(const QCString &dirName) override
QCString trPackageTypes() override
QCString trCompoundMembers() override
QCString trConcept(bool, bool) override
C++20 concept.
QCString trMethodDocumentation() override
QCString trEvents() override
QCString trGotoSourceCode() override
QCString trLegendDocs() override
QCString trRelatedFunctions() override
QCString trMemberList() override
QCString trCollaborationDiagram(const QCString &clName) override
QCString trTodo() override
QCString trDirectories() override
QCString trPublicAttribs() override
QCString trBugList() override
QCString trInterfaceIndex() override
QCString trReferenceManual() override
QCString trDirDepGraph(const QCString &name) override
QCString trCompoundListDescriptionFortran() override
QCString trProvidedByCategory() override
QCString trNamespace(bool, bool) override
QCString trStaticPackageFunctions() override
QCString trDate() override
QCString trOperationDocumentation() override
QCString trInstanceMethods() override
QCString trGeneratedAutomatically(const QCString &s) override
QCString trSince() override
QCString trType(bool, bool) override
QCString trConstantGroupReference(const QCString &namespaceName) override
UNO IDL constant groups.
QCString trCompoundIndexFortran() override
QCString trGeneratedBy() override
QCString trFunctions() override
QCString trRelatedFunctionDocumentation() override
QCString trCompoundMembersDescriptionFortran(bool extractAll) override
QCString trModuleReference(const QCString &namespaceName) override
QCString trDefineDocumentation() override
QCString trPrivateTypes() override
QCString trGotoTextualHierarchy() override
QCString trDirDocumentation() override
QCString trDesignUnitListDescription() override
VHDL design unit list description.
QCString trExceptionHierarchyDescription() override
QCString trAndMore(const QCString &number) override
QCString trMemberEnumerationDocumentation() override
QCString trSearchMatches() override
QCString trFunctionAndProc() override
VHDL functions/procedures/processes.
QCString trGeneratedFromFiles(ClassDef::CompoundType compType, bool) override
QCString trTopicIndex() override
QCString trInheritsList(int numEntries) override
QCString trEnumerationValueDocumentation() override
QCString trDefineValue() override
QCString trPackage(const QCString &name) override
QCString trMainPage() override
QCString trInterfaceListDescription() override
QCString trCompoundMembersFortran() override
QCString trMember(bool, bool) override
QCString trDetails() override
QCString trMemberTypedefDocumentation() override
QCString trReferences() override
QCString trCompoundListFortran() override
QCString trDesignUnitList() override
VHDL design unit list.
QCString trPageAbbreviation() override
QCString trTypeDocumentation() override
QCString trSubprogram(bool, bool) override
QCString trFileDocumentation() override
QCString trCompoundList() override
QCString trFileIn(const QCString &name) override
QCString trInclDepGraph(const QCString &fName) override
QCString trPackages() override
QCString trCompoundMembersDescription(bool extractAll) override
QCString trPublicSlots() override
QCString trFriends() override
QCString trCompoundMembersDescriptionTotal(ClassMemberHighlight::Enum hl) override
QCString trExceptionList() override
QCString trCompoundType(ClassDef::CompoundType compType, SrcLangExt lang) override
QCString trDetailedDescription() override
QCString trInitialValue() override
QCString trTemplateParameters() override
QCString trDesignUnitDocumentation() override
VHDL design unit documentation.
QCString trGotoDocumentation() override
QCString trDayPeriod(bool period) override
QCString trStaticPrivateAttribs() override
QCString idLanguage() override
QCString trCallGraph() override
QCString trClassDiagram(const QCString &clName) override
QCString trPrivateAttribs() override
QCString trConceptListDescription(bool extractAll) override
QCString trReturns() override
QCString trModulesListDescription(bool extractAll) override
QCString trReimplementedFromList(int numEntries) override
QCString trClassHierarchyDescription() override
QCString trPublicMembers() override
QCString trNamespaceListDescription(bool extractAll) override
QCString trFileMembers() override
QCString trISOLang() override
QCString trConstantDocumentation() override
QCString trParameters() override
QCString trFileReference(const QCString &fileName) override
QCString trReturnValues() override
QCString trEnumReference(const QCString &name) override
QCString trInterfaces() override
old style UNO IDL services: implemented interfaces
QCString trAdditionalInheritedMembers() override
QCString trPackageMembers() override
QCString trPublicTypes() override
QCString trRelatedSymbols() override
QCString trStructList() override
QCString trCiteReferences() override
QCString trTodoList() override
QCString trRTFCharSet() override
QCString latexLanguageSupportCommand() override
QCString trDetailLevel() override
QCString trThisIsTheListOfAllMembers() override
QCString trTopicList() override
QCString trCustomReference(const QCString &name) override
QCString trModulesList() override
QCString trEnumValue() override
QCString trNamespaces() override
QCString trExamples() override
QCString trRelatedSymbolsSubscript() override
QCString trPackageAttribs() override
QCString trReferencedBy() override
QCString trStaticPublicAttribs() override
QCString trFunctionDocumentation() override
QCString trExceptionIndex() override
QCString trStaticPackageAttribs() override
QCString trExceptionHierarchy() override
QCString trWarning() override
QCString trDeclaration() override
QCString trModulesDescription() override
QCString trModuleIndex() override
QCString trConstructorDocumentation() override
QCString trTopics() override
QCString trGeneratedFromFilesFortran(ClassDef::CompoundType compType, bool) override
QCString trRelatedPagesDescription() override
QCString trExamplesDescription() override
QCString trDesignUnits() override
VHDL design units.
QCString trExceptions() override
QCString trModulesMemberDescription(bool extractAll) override
QCString trStaticPublicMembers() override
QCString trDirRelation(const QCString &name) override
QCString trGroup(bool, bool) override
QCString trAttention() override
QCString trConstants() override
QCString trStructs() override
QCString trSignals() override
QCString trNamespaceDocumentation() override
QCString trRelatedSymbolDocumentation() override
QCString trCallerGraph() override
QCString trServiceGeneratedFromFiles(bool) override
UNO IDL service page.
QCString trPrecondition() override
QCString trOverloadText() override
QCString trFlowchart() override
QCString trVariables() override
QCString trNamespaceIndex() override
QCString trStructIndex() override
QCString trRelatedSubscript() override
QCString trTest() override
QCString trOperations() override
QCString latexDocumentPre() override
QCString trInterfaceHierarchy() override
QCString trNamespaceReference(const QCString &namespaceName) override
QCString trRelatedPages() override
QCString trProtectedTypes() override
QCString trPackageListDescription() override
QCString trEventDocumentation() override
QCString trExceptionListDescription() override
QCString trConstantGroups() override
UNO IDL constant groups.
QCString trConceptDefinition() override
QCString trDateTime(int year, int month, int day, int dayOfWeek, int hour, int minutes, int seconds, DateTimeType includeTime) override
Compiles a date string.
QCString trDefinition() override
QCString trInclByDepGraph() override
QCString trNamespaceMembersDescriptionTotal(NamespaceMemberHighlight::Enum hl) override
QCString trSliceInterfaces() override
QCString trStaticProtectedAttribs() override
QCString trImplementedFromList(int numEntries) override
QCString trDeprecatedList() override
QCString trCopyright() override
QCString trDocumentation(const QCString &projName) override
QCString trSingletonGeneratedFromFiles(bool) override
UNO IDL singleton page.
QCString trFileMembersDescriptionTotal(FileMemberHighlight::Enum hl) override
QCString trDeprecated() override
QCString trCompoundIndex() override
QCString trSubprogramDocumentation() override
QCString trSearchResultsTitle() override
QCString trStructListDescription() override
QCString trFileListDescription(bool extractAll) override
QCString trClassHierarchy() override
QCString trModuleMembersDescriptionTotal(ModuleMemberHighlight::Enum hl) override
QCString trAuthor(bool, bool) override
QCString trFile(bool, bool) override
QCString trTopicDocumentation() override
QCString trSearching() override
QCString trInterfaceDocumentation() override
QCString trCopyToClipboard() override
QCString trProtectedSlots() override
QCString trVersion() override
QCString trInheritedFrom(const QCString &members, const QCString &what) override
QCString trPropertyDocumentation() override
QCString trClass(bool, bool) override
QCString trServices() override
old style UNO IDL services: inherited services
QCString trGlobalNamespace() override
QCString trFileList() override
QCString trIncludesFileIn(const QCString &name) override
QCString trPackageFunctions() override
QCString trSequenceDocumentation() override
QCString trInterfaceHierarchyDescription() override
QCString trCompoundReference(const QCString &clName, ClassDef::CompoundType compType, bool isTemplate) override
QCString trImportant() override
QCString trPanelSynchronisationTooltip(bool enable) override
QCString trDefinedAtLineInSourceFile() override
QCString trNote() override
QCString trTypeConstraints() override
QCString latexDocumentPost() override
QCString trDesignUnitHierarchy() override
VHDL design unit hierarchy.
QCString trIncludingInheritedMembers() override
QCString trDefinedInSourceFile() override
QCString trReimplementedInList(int numEntries) override
QCString trModuleDocumentation() override
QCString trPackageList() override
QCString trGeneratedAt(const QCString &date, const QCString &projName) override
QCString trProperties() override
QCString trAll() override
QCString trConceptList() override
QCString trNamespaceMemberDescription(bool extractAll) override
QCString trDataMemberDocumentation() override
QCString trPostcondition() override
QCString trCode() override
QCString trEnumerationTypeDocumentation() override
QCString latexFontenc() override
QCString trMonth(int month, bool, bool full) override
QCString trPrivateMembers() override
QCString trDesignUnitMembers() override
VHDL design unit members.
QCString trCompounds() override
QCString trConceptIndex() override
QCString trProtectedAttribs() override
QCString trCompoundListDescription() override
QCString trStaticProtectedMembers() override
bool needsPunctuation() override
add punctuation at the end of a brief description when needed and supported by the language
QCString trFileIndex() override
QCString trSequences() override
QCString trGraphicalHierarchy() override
QCString trModulesMembers() override
QCString trSeeAlso() override
QCString trRemarks() override
QCString trSourceFile(const QCString &filename) override
QCString trExceptionDocumentation() override
QCString trClasses() override
QCString trHierarchicalIndex() override
QCString trSearch() override
QCString trWriteList(int numEntries) override
QCString trEnumerationValues() override
QCString trLoading() override
QCString trDataMembers() override
QCString trSearchResults(int numDocuments) override
QCString trVhdlType(VhdlSpecifier type, bool) override
VHDL type.
QCString trVariableDocumentation() override
Abstract base class for all translatable text fragments.
Definition translator.h:29
#define Config_getBool(name)
Definition config.h:33
DateTimeType
Definition datetime.h:38
#define CN_SPC
SrcLangExt
Language as given by extension.
Definition types.h:42
@ Fortran
Definition types.h:53
VhdlSpecifier
Definition types.h:548
@ INSTANTIATION
Definition types.h:569
@ MISCELLANEOUS
Definition types.h:575
@ SHAREDVARIABLE
Definition types.h:572
QCString generateMarker(int id)
Definition util.cpp:290
QCString getDotImageExtension()
Definition util.cpp:6616