Imported Upstream version 1.8.15
[platform/upstream/doxygen.git] / src / translator_tw.h
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  * The translation into Chinesetraditional was provided by
17  *   Daniel YC Lin (dlin.tw <at> gmail.com) since v1.2.16-v1.5.5
18  */
19
20 #ifndef TRANSLATOR_TW_H
21 #define TRANSLATOR_TW_H
22
23 // When defining a translator class for the new language, follow
24 // the description in the documentation.  One of the steps says
25 // that you should copy the translator_en.h (this) file to your
26 // translator_xx.h new file.  Your new language should use the
27 // Translator class as the base class.  This means that you need to
28 // implement exactly the same (pure virtual) methods as the
29 // TranslatorEnglish does.  Because of this, it is a good idea to
30 // start with the copy of TranslatorEnglish and replace the strings
31 // one by one.
32 //
33 // It is not necessary to include "translator.h" or
34 // "translator_adapter.h" here.  The files are included in the
35 // language.cpp correctly.  Not including any of the mentioned
36 // files frees the maintainer from thinking about whether the
37 // first, the second, or both files should be included or not, and
38 // why.  This holds namely for localized translators because their
39 // base class is changed occasionaly to adapter classes when the
40 // Translator class changes the interface, or back to the
41 // Translator class (by the local maintainer) when the localized
42 // translator is made up-to-date again.
43
44 class TranslatorChinesetraditional : public TranslatorAdapter_1_8_15
45 {
46   public:
47
48     // --- Language control methods -------------------
49
50     /*! Used for identification of the language. The identification
51      * should not be translated. It should be replaced by the name
52      * of the language in English using lower-case characters only
53      * (e.g. "czech", "japanese", "russian", etc.). It should be equal to
54      * the identification used in language.cpp.
55      */
56     virtual QCString idLanguage()
57     { return "chinese-traditional"; }
58
59     /*! Used to get the LaTeX command(s) for the language support.
60      *  This method should return string with commands that switch
61      *  LaTeX to the desired language.  For example
62      *  <pre>"\\usepackage[german]{babel}\n"
63      *  </pre>
64      *  or
65      *  <pre>"\\usepackage{polski}\n"
66      *  "\\usepackage[latin2]{inputenc}\n"
67      *  "\\usepackage[T1]{fontenc}\n"
68      *  </pre>
69      *
70      * The English LaTeX does not use such commands.  Because of this
71      * the empty string is returned in this implementation.
72      */
73     virtual QCString latexLanguageSupportCommand()
74     {
75       return "\\usepackage{CJKutf8}\n";
76     }
77     virtual QCString latexFontenc()
78     {
79       return "";
80     }
81     virtual QCString latexDocumentPre()
82     {
83       return "\\begin{CJK}{UTF8}{min}\n";
84     }
85     virtual QCString latexDocumentPost()
86     {
87       return "\\end{CJK}\n";
88     }
89
90     // --- Language translation methods -------------------
91
92     /*! used in the compound documentation before a list of related functions. */
93     virtual QCString trRelatedFunctions()
94     { return "相關函式"; }
95
96     /*! subscript for the related functions. */
97     virtual QCString trRelatedSubscript()
98     { return "(註:這些不是成員函式)"; }
99
100     /*! header that is put before the detailed description of files, classes and namespaces. */
101     virtual QCString trDetailedDescription()
102     { return "詳細描述"; }
103
104     /*! header that is put before the list of typedefs. */
105     virtual QCString trMemberTypedefDocumentation()
106     { return "型態定義成員說明文件"; }
107
108     /*! header that is put before the list of enumerations. */
109     virtual QCString trMemberEnumerationDocumentation()
110     { return "列舉型態成員說明文件"; }
111
112     /*! header that is put before the list of member functions. */
113     virtual QCString trMemberFunctionDocumentation()
114     { return "函式成員說明文件"; }
115
116     /*! header that is put before the list of member attributes. */
117     virtual QCString trMemberDataDocumentation()
118     {
119       if (Config_getBool(OPTIMIZE_OUTPUT_FOR_C))
120       {
121         return "欄位說明文件";
122       }
123       else
124       {
125         return "資料成員說明文件";
126       }
127     }
128
129     /*! this is the text of a link put after brief descriptions. */
130     virtual QCString trMore()
131     { return "更多..."; }
132
133     /*! put in the class documentation */
134     virtual QCString trListOfAllMembers()
135     { return "全部成員列表"; }
136
137     /*! used as the title of the "list of all members" page of a class */
138     virtual QCString trMemberList()
139     { return "成員列表"; }
140
141     /*! this is the first part of a sentence that is followed by a class name */
142     virtual QCString trThisIsTheListOfAllMembers()
143     { return "完整成員列表,類別為"; }
144
145     /*! this is the remainder of the sentence after the class name */
146     virtual QCString trIncludingInheritedMembers()
147     { return ", 包含所有繼承的成員"; }
148
149     /*! this is put at the author sections at the bottom of man pages.
150      *  parameter s is name of the project name.
151      */
152     virtual QCString trGeneratedAutomatically(const char *s)
153     { QCString result="本文件由Doxygen";
154       if (s) result+=(QCString)" 自 "+s;
155       result+=" 的原始碼中自動產生.";
156       return result;
157     }
158
159     /*! put after an enum name in the list of all members */
160     virtual QCString trEnumName()
161     { return "列舉型態名稱"; }
162
163     /*! put after an enum value in the list of all members */
164     virtual QCString trEnumValue()
165     { return "列舉值"; }
166
167     /*! put after an undocumented member in the list of all members */
168     virtual QCString trDefinedIn()
169     { return "被定義於"; }
170
171     // quick reference sections
172
173     /*! This is put above each page as a link to the list of all groups of
174      *  compounds or files (see the \\group command).
175      */
176     virtual QCString trModules()
177     { return "模組"; }
178
179     /*! This is put above each page as a link to the class hierarchy */
180     virtual QCString trClassHierarchy()
181     { return "類別階層"; }
182
183     /*! This is put above each page as a link to the list of annotated classes */
184     virtual QCString trCompoundList()
185     {
186       if (Config_getBool(OPTIMIZE_OUTPUT_FOR_C))
187       {
188         return "資料結構";
189       }
190       else
191       {
192         return "複合列表";
193       }
194     }
195
196     /*! This is put above each page as a link to the list of documented files */
197     virtual QCString trFileList()
198     { return "檔案列表"; }
199
200     /*! This is put above each page as a link to all members of compounds. */
201     virtual QCString trCompoundMembers()
202     {
203       if (Config_getBool(OPTIMIZE_OUTPUT_FOR_C))
204       {
205         return "資料欄位";
206       }
207       else
208       {
209         return "複合成員";
210       }
211     }
212
213     /*! This is put above each page as a link to all members of files. */
214     virtual QCString trFileMembers()
215     {
216       if (Config_getBool(OPTIMIZE_OUTPUT_FOR_C))
217       {
218         return "全域資料";
219       }
220       else
221       {
222         return "檔案成員";
223       }
224     }
225
226     /*! This is put above each page as a link to all related pages. */
227     virtual QCString trRelatedPages()
228     { return "相關頁面"; }
229
230     /*! This is put above each page as a link to all examples. */
231     virtual QCString trExamples()
232     { return "範例"; }
233
234     /*! This is put above each page as a link to the search engine. */
235     virtual QCString trSearch()
236     { return "搜尋"; }
237
238     /*! This is an introduction to the class hierarchy. */
239     virtual QCString trClassHierarchyDescription()
240     { return "這個繼承列表經過簡略的字母排序: ";
241     }
242
243     /*! This is an introduction to the list with all files. */
244     virtual QCString trFileListDescription(bool extractAll)
245     {
246       QCString result="這是附帶簡略說明";
247       if (!extractAll) result+="且經過文件化";
248       result+="的檔案列表:";
249       return result;
250     }
251
252     /*! This is an introduction to the annotated compound list. */
253     virtual QCString trCompoundListDescription()
254     {
255
256       if (Config_getBool(OPTIMIZE_OUTPUT_FOR_C))
257       {
258         return "這是附帶簡略說明的資料結構:";
259       }
260       else
261       {
262         return "這是附帶簡略說明的類別,結構,"
263                "聯合型態(unions)及介面(interfaces):";
264       }
265     }
266
267     /*! This is an introduction to the page with all class members. */
268     virtual QCString trCompoundMembersDescription(bool extractAll)
269     {
270       QCString result="這是全部";
271       if (!extractAll)
272       {
273         result+="文件化過";
274       }
275       if (Config_getBool(OPTIMIZE_OUTPUT_FOR_C))
276       {
277         result+="結構及聯合型態欄位";
278       }
279       else
280       {
281         result+="類別成員";
282       }
283       result+=", 並且帶有連結至";
284       if (!extractAll)
285       {
286         if (Config_getBool(OPTIMIZE_OUTPUT_FOR_C))
287         {
288           result+="每個欄位的結構/聯合型態說明文件:";
289         }
290         else
291         {
292           result+="每個成員的類別說明文件:";
293         }
294       }
295       else
296       {
297         if (Config_getBool(OPTIMIZE_OUTPUT_FOR_C))
298         {
299           result+="這些結構/聯合型態所屬:";
300         }
301         else
302         {
303           result+="這些類別所屬:";
304         }
305       }
306       return result;
307     }
308
309     /*! This is an introduction to the page with all file members. */
310     virtual QCString trFileMembersDescription(bool extractAll)
311     {
312       QCString result="這是全部";
313       if (!extractAll) result+="文件化的";
314
315       if (Config_getBool(OPTIMIZE_OUTPUT_FOR_C))
316       {
317         result+="函式,變數,定義,列舉,及型態定義";
318       }
319       else
320       {
321         result+="檔案成員";
322       }
323       result+=",並且帶有連結至";
324       if (extractAll)
325         result+="這些檔案所屬:";
326       else
327         result+="說明文件:";
328       return result;
329     }
330
331     /*! This is an introduction to the page with the list of all examples */
332     virtual QCString trExamplesDescription()
333     { return "所有範例列表:"; }
334
335     /*! This is an introduction to the page with the list of related pages */
336     virtual QCString trRelatedPagesDescription()
337     { return "所有相關文件頁面列表:"; }
338
339     /*! This is an introduction to the page with the list of class/file groups */
340     virtual QCString trModulesDescription()
341     { return "所有模組列表:"; }
342
343     // index titles (the project name is prepended for these)
344
345
346     /*! This is used in HTML as the title of index.html. */
347     virtual QCString trDocumentation()
348     { return "說明文件"; }
349
350     /*! This is used in LaTeX as the title of the chapter with the
351      * index of all groups.
352      */
353     virtual QCString trModuleIndex()
354     { return "模組索引"; }
355
356     /*! This is used in LaTeX as the title of the chapter with the
357      * class hierarchy.
358      */
359     virtual QCString trHierarchicalIndex()
360     { return "階層索引"; }
361
362     /*! This is used in LaTeX as the title of the chapter with the
363      * annotated compound index.
364      */
365     virtual QCString trCompoundIndex()
366     {
367       if (Config_getBool(OPTIMIZE_OUTPUT_FOR_C))
368       {
369         return "資料結構索引";
370       }
371       else
372       {
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     virtual QCString trFileIndex()
381     { return "檔案索引"; }
382
383     /*! This is used in LaTeX as the title of the chapter containing
384      *  the documentation of all groups.
385      */
386     virtual QCString trModuleDocumentation()
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     virtual QCString trClassDocumentation()
393     {
394       if (Config_getBool(OPTIMIZE_OUTPUT_FOR_C))
395       {
396         return "資料結構說明文件";
397       }
398       else
399       {
400         return "類別說明文件";
401       }
402     }
403
404     /*! This is used in LaTeX as the title of the chapter containing
405      *  the documentation of all files.
406      */
407     virtual QCString trFileDocumentation()
408     { return "檔案說明文件"; }
409
410     /*! This is used in LaTeX as the title of the chapter containing
411      *  the documentation of all examples.
412      */
413     virtual QCString trExampleDocumentation()
414     { return "範例說明文件"; }
415
416     /*! This is used in LaTeX as the title of the chapter containing
417      *  the documentation of all related pages.
418      */
419     virtual QCString trPageDocumentation()
420     { return "頁面說明文件"; }
421
422     /*! This is used in LaTeX as the title of the document */
423     virtual QCString trReferenceManual()
424     { return "參考手冊"; }
425
426     /*! This is used in the documentation of a file as a header before the
427      *  list of defines
428      */
429     virtual QCString trDefines()
430     { return "定義"; }
431
432     /*! This is used in the documentation of a file as a header before the
433      *  list of typedefs
434      */
435     virtual QCString trTypedefs()
436     { return "型態定義"; }
437
438     /*! This is used in the documentation of a file as a header before the
439      *  list of enumerations
440      */
441     virtual QCString trEnumerations()
442     { return "列舉型態"; }
443
444     /*! This is used in the documentation of a file as a header before the
445      *  list of (global) functions
446      */
447     virtual QCString trFunctions()
448     { return "函式"; }
449
450     /*! This is used in the documentation of a file as a header before the
451      *  list of (global) variables
452      */
453     virtual QCString trVariables()
454     { return "變數"; }
455
456     /*! This is used in the documentation of a file as a header before the
457      *  list of (global) variables
458      */
459     virtual QCString trEnumerationValues()
460     { return "列舉值"; }
461
462     /*! This is used in the documentation of a file before the list of
463      *  documentation blocks for defines
464      */
465     virtual QCString trDefineDocumentation()
466     { return "定義巨集說明文件"; }
467
468     /*! This is used in the documentation of a file/namespace before the list
469      *  of documentation blocks for typedefs
470      */
471     virtual QCString trTypedefDocumentation()
472     { return "型態定義說明文件"; }
473
474     /*! This is used in the documentation of a file/namespace before the list
475      *  of documentation blocks for enumeration types
476      */
477     virtual QCString trEnumerationTypeDocumentation()
478     { return "列舉型態說明文件"; }
479
480     /*! This is used in the documentation of a file/namespace before the list
481      *  of documentation blocks for enumeration values
482      */
483     virtual QCString trEnumerationValueDocumentation()
484     { return "列舉值說明文件"; }
485
486     /*! This is used in the documentation of a file/namespace before the list
487      *  of documentation blocks for functions
488      */
489     virtual QCString trFunctionDocumentation()
490     { return "函式說明文件"; }
491
492     /*! This is used in the documentation of a file/namespace before the list
493      *  of documentation blocks for variables
494      */
495     virtual QCString trVariableDocumentation()
496     { return "變數說明文件"; }
497
498     /*! This is used in the documentation of a file/namespace/group before
499      *  the list of links to documented compounds
500      */
501     virtual QCString trCompounds()
502     {
503       if (Config_getBool(OPTIMIZE_OUTPUT_FOR_C))
504       {
505         return "資料結構";
506       }
507       else
508       {
509         return "複合項目";
510       }
511     }
512
513     /*! This is used in the standard footer of each page and indicates when
514      *  the page was generated
515      */
516     virtual QCString trGeneratedAt(const char *date,const char *projName)
517     {
518       QCString result=(QCString)"產生日期:"+date;
519       if (projName) result+=(QCString)", 專案:"+projName;
520       result+=(QCString)", 產生器:";
521       return result;
522     }
523
524     /*! this text is put before a class diagram */
525     virtual QCString trClassDiagram(const char *clName)
526     {
527       return (QCString)"類別"+clName+"的繼承圖:";
528     }
529
530     /*! this text is generated when the \\internal command is used. */
531     virtual QCString trForInternalUseOnly()
532     { return "僅供內部使用."; }
533
534     /*! this text is generated when the \\warning command is used. */
535     virtual QCString trWarning()
536     { return "警告"; }
537
538     /*! this text is generated when the \\version command is used. */
539     virtual QCString trVersion()
540     { return "版本"; }
541
542     /*! this text is generated when the \\date command is used. */
543     virtual QCString trDate()
544     { return "日期"; }
545
546     /*! this text is generated when the \\return command is used. */
547     virtual QCString trReturns()
548     { return "傳回值"; }
549
550     /*! this text is generated when the \\sa command is used. */
551     virtual QCString trSeeAlso()
552     { return "參閱"; }
553
554     /*! this text is generated when the \\param command is used. */
555     virtual QCString trParameters()
556     { return "參數"; }
557
558     /*! this text is generated when the \\exception command is used. */
559     virtual QCString trExceptions()
560     { return "例外"; }
561
562     /*! this text is used in the title page of a LaTeX document. */
563     virtual QCString trGeneratedBy()
564     { return "產生者:"; }
565
566 //////////////////////////////////////////////////////////////////////////
567 // new since 0.49-990307
568 //////////////////////////////////////////////////////////////////////////
569
570     /*! used as the title of page containing all the index of all namespaces. */
571     virtual QCString trNamespaceList()
572     { return "命名空間(name space)列表"; }
573
574     /*! used as an introduction to the namespace list */
575     virtual QCString trNamespaceListDescription(bool extractAll)
576     {
577       QCString result="這是所有附帶簡略說明的";
578       if (!extractAll) result+="文件化的";
579       result+="命名空間(namespaces):";
580       return result;
581     }
582
583     /*! used in the class documentation as a header before the list of all
584      *  friends of a class
585      */
586     virtual QCString trFriends()
587     { return "類別朋友(Friends)"; }
588
589 //////////////////////////////////////////////////////////////////////////
590 // new since 0.49-990405
591 //////////////////////////////////////////////////////////////////////////
592
593     /*! used in the class documentation as a header before the list of all
594      * related classes
595      */
596     virtual QCString trRelatedFunctionDocumentation()
597     { return "類別朋友及相關函式說明文件"; }
598
599 //////////////////////////////////////////////////////////////////////////
600 // new since 0.49-990425
601 //////////////////////////////////////////////////////////////////////////
602
603     /*! used as the title of the HTML page of a class/struct/union */
604     virtual QCString trCompoundReference(const char *clName,
605                                     ClassDef::CompoundType compType,
606                                     bool isTemplate)
607     {
608       QCString result=(QCString)clName+" ";
609       switch(compType)
610       {
611         case ClassDef::Class:      result+=" 類別"; break;
612         case ClassDef::Struct:     result+=" 結構"; break;
613         case ClassDef::Union:      result+=" 聯合"; break;
614         case ClassDef::Interface:  result+=" 介面"; break;
615         case ClassDef::Protocol:   result+=" 協定"; break;
616         case ClassDef::Category:   result+=" 分類"; break;
617         case ClassDef::Exception:  result+=" 例外"; break;
618         default: break;
619       }
620       if (isTemplate) result+=" 樣版";
621       result+=" 參考文件";
622       return result;
623     }
624
625     /*! used as the title of the HTML page of a file */
626     virtual QCString trFileReference(const char *fileName)
627     {
628       QCString result=fileName;
629       result+=" 檔案參考文件";
630       return result;
631     }
632
633     /*! used as the title of the HTML page of a namespace */
634     virtual QCString trNamespaceReference(const char *namespaceName)
635     {
636       QCString result=namespaceName;
637       result+=" 命名空間(Namespace)參考文件";
638       return result;
639     }
640
641     virtual QCString trPublicMembers()
642     { return "公開方法(Public Methods)"; }
643     virtual QCString trPublicSlots()
644     { return "公開插槽(Public Slots)"; }
645     virtual QCString trSignals()
646     { return "訊號(Signals)"; }
647     virtual QCString trStaticPublicMembers()
648     { return "靜態公開方法(Static Public Methods)"; }
649     virtual QCString trProtectedMembers()
650     { return "保護方法(Protected Methods)"; }
651     virtual QCString trProtectedSlots()
652     { return "保護插槽(Protected Slots)"; }
653     virtual QCString trStaticProtectedMembers()
654     { return "靜態保護方法(Static Protected Methods)"; }
655     virtual QCString trPrivateMembers()
656     { return "私有方法(Private Methods)"; }
657     virtual QCString trPrivateSlots()
658     { return "私有插槽(Private Slots)"; }
659     virtual QCString trStaticPrivateMembers()
660     { return "靜態私有方法(Static Private Methods)"; }
661
662     /*! this function is used to produce a comma-separated list of items.
663      *  use generateMarker(i) to indicate where item i should be put.
664      */
665     virtual QCString trWriteList(int numEntries)
666     {
667       QCString result;
668       int i;
669       // the inherits list contain `numEntries' classes
670       for (i=0;i<numEntries;i++)
671       {
672         // use generateMarker to generate placeholders for the class links!
673         result+=generateMarker(i); // generate marker for entry i in the list
674                                    // (order is left to right)
675
676         if (i!=numEntries-1)  // not the last entry, so we need a separator
677         {
678           if (i<numEntries-2) // not the fore last entry
679             result+=", ";
680           else                // the fore last entry
681             result+=", 及 ";
682         }
683       }
684       return result;
685     }
686
687     /*! used in class documentation to produce a list of base classes,
688      *  if class diagrams are disabled.
689      */
690     virtual QCString trInheritsList(int numEntries)
691     {
692       return "繼承自 "+trWriteList(numEntries)+".";
693     }
694
695     /*! used in class documentation to produce a list of super classes,
696      *  if class diagrams are disabled.
697      */
698     virtual QCString trInheritedByList(int numEntries)
699     {
700       return "被 "+trWriteList(numEntries)+"繼承.";
701     }
702
703     /*! used in member documentation blocks to produce a list of
704      *  members that are hidden by this one.
705      */
706     virtual QCString trReimplementedFromList(int numEntries)
707     {
708       return "依據"+trWriteList(numEntries)+"重新實作.";
709     }
710
711     /*! used in member documentation blocks to produce a list of
712      *  all member that overwrite the implementation of this member.
713      */
714     virtual QCString trReimplementedInList(int numEntries)
715     {
716       return "在"+trWriteList(numEntries)+"重新實作.";
717     }
718
719     /*! This is put above each page as a link to all members of namespaces. */
720     virtual QCString trNamespaceMembers()
721     { return "命名空間(Namespace)成員"; }
722
723     /*! This is an introduction to the page with all namespace members */
724     virtual QCString trNamespaceMemberDescription(bool extractAll)
725     {
726       QCString result="此處列表為所有 ";
727       if (!extractAll) result+="文件化的 ";
728       result+="命名空間(namespace)成員,並且附帶連結至 ";
729       if (extractAll)
730         result+="每個成員的說明文件:";
731       else
732         result+="該命名空間所屬之處:";
733       return result;
734     }
735     /*! This is used in LaTeX as the title of the chapter with the
736      *  index of all namespaces.
737      */
738     virtual QCString trNamespaceIndex()
739     { return "命名空間(Namespace)索引"; }
740
741     /*! This is used in LaTeX as the title of the chapter containing
742      *  the documentation of all namespaces.
743      */
744     virtual QCString trNamespaceDocumentation()
745     { return "命名空間(Namespace)說明文件"; }
746
747 //////////////////////////////////////////////////////////////////////////
748 // new since 0.49-990522
749 //////////////////////////////////////////////////////////////////////////
750
751     /*! This is used in the documentation before the list of all
752      *  namespaces in a file.
753      */
754     virtual QCString trNamespaces()
755     { return "命名空間(Namespaces)"; }
756
757 //////////////////////////////////////////////////////////////////////////
758 // new since 0.49-990728
759 //////////////////////////////////////////////////////////////////////////
760
761     /*! This is put at the bottom of a class documentation page and is
762      *  followed by a list of files that were used to generate the page.
763      */
764     virtual QCString trGeneratedFromFiles(ClassDef::CompoundType compType,bool)
765     { // here s is one of " Class", " Struct" or " Union"
766       // single is true implies a single file
767       QCString result=(QCString)"此";
768       switch(compType)
769       {
770         case ClassDef::Class:      result+="類別(class)"; break;
771         case ClassDef::Struct:     result+="結構(structure)"; break;
772         case ClassDef::Union:      result+="聯合(union)"; break;
773         case ClassDef::Interface:  result+="介面(interface)"; break;
774         case ClassDef::Protocol:   result+="協定(protocol)"; break;
775         case ClassDef::Category:   result+="分類(category)"; break;
776         case ClassDef::Exception:  result+="例外(exception)"; break;
777         default: break;
778       }
779       result+=" 文件是由下列檔案中產生";
780       result+=":";
781       return result;
782     }
783
784 //////////////////////////////////////////////////////////////////////////
785 // new since 0.49-990901
786 //////////////////////////////////////////////////////////////////////////
787
788     /*! This is used as the heading text for the retval command. */
789     virtual QCString trReturnValues()
790     { return "傳回值"; }
791
792     /*! This is in the (quick) index as a link to the main page (index.html)
793      */
794     virtual QCString trMainPage()
795     { return "主頁面"; }
796
797     /*! This is used in references to page that are put in the LaTeX
798      *  documentation. It should be an abbreviation of the word page.
799      */
800     virtual QCString trPageAbbreviation()
801     { return "p."; }
802
803 //////////////////////////////////////////////////////////////////////////
804 // new since 0.49-991003
805 //////////////////////////////////////////////////////////////////////////
806
807     virtual QCString trDefinedAtLineInSourceFile()
808     {
809       return "定義在 @1 檔案之第 @0 行.";
810     }
811     virtual QCString trDefinedInSourceFile()
812     {
813       return "定義在 @0 檔.";
814     }
815
816 //////////////////////////////////////////////////////////////////////////
817 // new since 0.49-991205
818 //////////////////////////////////////////////////////////////////////////
819
820     virtual QCString trDeprecated()
821     {
822       return "過時";
823     }
824
825 //////////////////////////////////////////////////////////////////////////
826 // new since 1.0.0
827 //////////////////////////////////////////////////////////////////////////
828
829     /*! this text is put before a collaboration diagram */
830     virtual QCString trCollaborationDiagram(const char *clName)
831     {
832       return (QCString)""+clName+"的合作圖:";
833     }
834     /*! this text is put before an include dependency graph */
835     virtual QCString trInclDepGraph(const char *fName)
836     {
837       return (QCString)""+fName+"的包含相依圖:";
838     }
839     /*! header that is put before the list of constructor/destructors. */
840     virtual QCString trConstructorDocumentation()
841     {
842       return "建構子與解構子說明文件";
843     }
844     /*! Used in the file documentation to point to the corresponding sources. */
845     virtual QCString trGotoSourceCode()
846     {
847       return "查看本檔案的原始碼.";
848     }
849     /*! Used in the file sources to point to the corresponding documentation. */
850     virtual QCString trGotoDocumentation()
851     {
852       return "查看本檔案說明文件.";
853     }
854     /*! Text for the \\pre command */
855     virtual QCString trPrecondition()
856     {
857       return "前置條件";
858     }
859     /*! Text for the \\post command */
860     virtual QCString trPostcondition()
861     {
862       return "後置條件";
863     }
864     /*! Text for the \\invariant command */
865     virtual QCString trInvariant()
866     {
867       return "常數";
868     }
869     /*! Text shown before a multi-line variable/enum initialization */
870     virtual QCString trInitialValue()
871     {
872       return "初值:";
873     }
874     /*! Text used the source code in the file index */
875     virtual QCString trCode()
876     {
877       return "程式碼";
878     }
879     virtual QCString trGraphicalHierarchy()
880     {
881       return "圖形化之類別階層";
882     }
883     virtual QCString trGotoGraphicalHierarchy()
884     {
885       return "查看圖形化之類別階層";
886     }
887     virtual QCString trGotoTextualHierarchy()
888     {
889       return "查看文字化之類別階層";
890     }
891     virtual QCString trPageIndex()
892     {
893       return "頁面索引";
894     }
895
896 //////////////////////////////////////////////////////////////////////////
897 // new since 1.1.0
898 //////////////////////////////////////////////////////////////////////////
899
900     virtual QCString trNote()
901     {
902       return "註";
903     }
904     virtual QCString trPublicTypes()
905     {
906       return "公開型態";
907     }
908     virtual QCString trPublicAttribs()
909     {
910       if (Config_getBool(OPTIMIZE_OUTPUT_FOR_C))
911       {
912         return "資料欄位";
913       }
914       else
915       {
916         return "公開屬性";
917       }
918     }
919     virtual QCString trStaticPublicAttribs()
920     {
921       return "靜態公開屬性";
922     }
923     virtual QCString trProtectedTypes()
924     {
925       return "保護型態";
926     }
927     virtual QCString trProtectedAttribs()
928     {
929       return "保護屬性";
930     }
931     virtual QCString trStaticProtectedAttribs()
932     {
933       return "靜態保護屬性";
934     }
935     virtual QCString trPrivateTypes()
936     {
937       return "私有型態";
938     }
939     virtual QCString trPrivateAttribs()
940     {
941       return "私有屬性";
942     }
943     virtual QCString trStaticPrivateAttribs()
944     {
945       return "靜態私有屬性";
946     }
947
948 //////////////////////////////////////////////////////////////////////////
949 // new since 1.1.3
950 //////////////////////////////////////////////////////////////////////////
951
952     /*! Used as a marker that is put before a \\todo item */
953     virtual QCString trTodo()
954     {
955       return "待辦事項";
956     }
957     /*! Used as the header of the todo list */
958     virtual QCString trTodoList()
959     {
960       return "待辦事項列表";
961     }
962
963 //////////////////////////////////////////////////////////////////////////
964 // new since 1.1.4
965 //////////////////////////////////////////////////////////////////////////
966
967     virtual QCString trReferencedBy()
968     {
969       return "被參考於";
970     }
971     virtual QCString trRemarks()
972     {
973       return "備註";
974     }
975     virtual QCString trAttention()
976     {
977       return "注意";
978     }
979     virtual QCString trInclByDepGraph()
980     {
981       return "本圖顯示出哪些檔案直接或間接include本檔 "
982              ":";
983     }
984     virtual QCString trSince()
985     {
986       return "自";
987     }
988
989 //////////////////////////////////////////////////////////////////////////
990 // new since 1.1.5
991 //////////////////////////////////////////////////////////////////////////
992
993     /*! title of the graph legend page */
994     virtual QCString trLegendTitle()
995     {
996       return "圖示";
997     }
998     /*! page explaining how the dot graph's should be interpreted
999      *  The %A in the text below are to prevent link to classes called "A".
1000      */
1001     virtual QCString trLegendDocs()
1002     {
1003       return
1004         "本頁解釋如何解譯這些由doxygen所產生的圖示 "
1005         ".<p>\n"
1006         "請看下面範例:\n"
1007         "\\code\n"
1008         "/*! 因為截斷而造成的不可見類別 */\n"
1009         "class Invisible { };\n\n"
1010         "/*! 截斷的類別, 繼承關係被隱藏 */\n"
1011         "class Truncated : public Invisible { };\n\n"
1012         "/* 未經過doxygen註解處理過的類別 */\n"
1013         "class Undocumented { };\n\n"
1014         "/*! 經過公開(Public)繼承的類別 */\n"
1015         "class PublicBase : public Truncated { };\n\n"
1016         "/*! 一個樣版類別 */\n"
1017         "template<class T> class Templ { };\n\n"
1018         "/*! 使用保護(Protected)繼承的類別 */\n"
1019         "class ProtectedBase { };\n\n"
1020         "/*! 使用私有(Private)繼承的類別 */\n"
1021         "class PrivateBase { };\n\n"
1022         "/*! 由被繼承類別所使用的類別 */\n"
1023         "class Used { };\n\n"
1024         "/*! 由數個其他類別所繼承來的超類別(Super Class) */\n"
1025         "class Inherited : public PublicBase,\n"
1026         "                  protected ProtectedBase,\n"
1027         "                  private PrivateBase,\n"
1028         "                  public Undocumented,\n"
1029         "                  public Templ<int>\n"
1030         "{\n"
1031         "  private:\n"
1032         "    Used *m_usedClass;\n"
1033         "};\n"
1034         "\\endcode\n"
1035         "這個例子會產生下列的圖示:"
1036         "<p><center><img alt=\"\" src=\"graph_legend."+getDotImageExtension()+"\"></center></p>\n"
1037         "<p>\n"
1038         "上圖中的各區塊意義如下:\n"
1039         "</p>\n"
1040         "<ul>\n"
1041         "<li>%A 填滿黑色的區塊代表產生這個圖示的類別或結構 "
1042         ".\n"
1043         "<li>%A 黑邊的區塊代表文件化過的結構或類別.</li>\n"
1044         "<li>%A 灰邊的區塊代表未經文件化的結構或是類別.</li>\n"
1045         "<li>%A 紅邊的區塊代表文件化的結構或是類別,"
1046         "這些結構或類別的繼承或包含關係不會全部顯示. %A 圖示 "
1047         "若無法塞入指定的邊界中將會被截斷.</li>\n"
1048         "</ul>\n"
1049         "<p>\n"
1050         "箭頭具有下面的意義:\n"
1051         "</p>\n"
1052         "<ul>\n"
1053         "<li>%A 深藍色箭頭用來代表兩個類別間的公開繼承 "
1054         "關係.\n"
1055         "<li>%A 深綠色箭頭代表保護繼承。</li>\n"
1056         "<li>%A 深紅色箭頭代表私有繼承。</li>\n"
1057         "<li>%A 紫色箭頭用來表示類別被另一個包含或是使用."
1058         "箭頭上標示著可存取該類別或是結構的對應變數。</li>\n"
1059         "<li>%A 黃色箭頭代表樣版實體與樣版類別之間的關係。"
1060         "箭頭上標記著樣版實體上的參數。</li>\n"
1061         "</ul>\n";
1062     }
1063     /*! text for the link to the legend page */
1064     virtual QCString trLegend()
1065     {
1066       return "圖示";
1067     }
1068
1069 //////////////////////////////////////////////////////////////////////////
1070 // new since 1.2.0
1071 //////////////////////////////////////////////////////////////////////////
1072
1073     /*! Used as a marker that is put before a test item */
1074     virtual QCString trTest()
1075     {
1076       return "測試項目";
1077     }
1078     /*! Used as the header of the test list */
1079     virtual QCString trTestList()
1080     {
1081       return "測試項目列表";
1082     }
1083
1084 //////////////////////////////////////////////////////////////////////////
1085 // new since 1.2.2
1086 //////////////////////////////////////////////////////////////////////////
1087
1088     /*! Used as a section header for IDL properties */
1089     virtual QCString trProperties()
1090     {
1091       return "屬性(properties)";
1092     }
1093     /*! Used as a section header for IDL property documentation */
1094     virtual QCString trPropertyDocumentation()
1095     {
1096       return "屬性(property)說明文件";
1097     }
1098
1099 //////////////////////////////////////////////////////////////////////////
1100 // new since 1.2.4
1101 //////////////////////////////////////////////////////////////////////////
1102
1103     /*! Used for Java classes in the summary section of Java packages */
1104     virtual QCString trClasses()
1105     {
1106       if (Config_getBool(OPTIMIZE_OUTPUT_FOR_C))
1107       {
1108         return "資料結構";
1109       }
1110       else
1111       {
1112         return "類別";
1113       }
1114     }
1115     /*! Used as the title of a Java package */
1116     virtual QCString trPackage(const char *name)
1117     {
1118       return (QCString)"Package "+name;
1119     }
1120     /*! Title of the package index page */
1121     virtual QCString trPackageList()
1122     {
1123       return "Package列表";
1124     }
1125     /*! The description of the package index page */
1126     virtual QCString trPackageListDescription()
1127     {
1128       return "此處為Package的概略說明(如果有的話):";
1129     }
1130     /*! The link name in the Quick links header for each page */
1131     virtual QCString trPackages()
1132     {
1133       return "Packages";
1134     }
1135
1136     /*! Text shown before a multi-line define */
1137     virtual QCString trDefineValue()
1138     {
1139       return "巨集內容:";
1140     }
1141
1142 //////////////////////////////////////////////////////////////////////////
1143 // new since 1.2.5
1144 //////////////////////////////////////////////////////////////////////////
1145
1146     /*! Used as a marker that is put before a \\bug item */
1147     virtual QCString trBug()
1148     {
1149       return "臭蟲";
1150     }
1151     /*! Used as the header of the bug list */
1152     virtual QCString trBugList()
1153     {
1154       return "臭蟲列表";
1155     }
1156
1157 //////////////////////////////////////////////////////////////////////////
1158 // new since 1.2.6
1159 //////////////////////////////////////////////////////////////////////////
1160
1161     /*! Used as ansicpg for RTF file
1162      *
1163      * The following table shows the correlation of Charset name, Charset Value and
1164      * <pre>
1165      * Codepage number:
1166      * Charset Name       Charset Value(hex)  Codepage number
1167      * ------------------------------------------------------
1168      * DEFAULT_CHARSET           1 (x01)
1169      * SYMBOL_CHARSET            2 (x02)
1170      * OEM_CHARSET             255 (xFF)
1171      * ANSI_CHARSET              0 (x00)            1252
1172      * RUSSIAN_CHARSET         204 (xCC)            1251
1173      * EE_CHARSET              238 (xEE)            1250
1174      * GREEK_CHARSET           161 (xA1)            1253
1175      * TURKISH_CHARSET         162 (xA2)            1254
1176      * BALTIC_CHARSET          186 (xBA)            1257
1177      * HEBREW_CHARSET          177 (xB1)            1255
1178      * ARABIC _CHARSET         178 (xB2)            1256
1179      * SHIFTJIS_CHARSET        128 (x80)             932
1180      * HANGEUL_CHARSET         129 (x81)             949
1181      * GB2313_CHARSET          134 (x86)             936
1182      * CHINESEBIG5_CHARSET     136 (x88)             950
1183      * </pre>
1184      *
1185      */
1186     virtual QCString trRTFansicp()
1187     {
1188       return "950";
1189     }
1190
1191
1192     /*! Used as ansicpg for RTF fcharset
1193      *  \see trRTFansicp() for a table of possible values.
1194      */
1195     virtual QCString trRTFCharSet()
1196     {
1197       return "136";
1198     }
1199
1200     /*! Used as header RTF general index */
1201     virtual QCString trRTFGeneralIndex()
1202     {
1203       return "索引";
1204     }
1205
1206     /*! This is used for translation of the word that will possibly
1207      *  be followed by a single name or by a list of names
1208      *  of the category.
1209      */
1210     virtual QCString trClass(bool /*first_capital*/, bool /*singular*/)
1211     {
1212       return QCString("類別");
1213     }
1214
1215     /*! This is used for translation of the word that will possibly
1216      *  be followed by a single name or by a list of names
1217      *  of the category.
1218      */
1219     virtual QCString trFile(bool /*first_capital*/, bool /*singular*/)
1220     {
1221       return QCString("檔案");
1222     }
1223
1224     /*! This is used for translation of the word that will possibly
1225      *  be followed by a single name or by a list of names
1226      *  of the category.
1227      */
1228     virtual QCString trNamespace(bool /*first_capital*/, bool /*singular*/)
1229     {
1230       return QCString("命名空間");
1231     }
1232
1233     /*! This is used for translation of the word that will possibly
1234      *  be followed by a single name or by a list of names
1235      *  of the category.
1236      */
1237     virtual QCString trGroup(bool /*first_capital*/, bool /*singular*/)
1238     {
1239       return QCString("群組");
1240     }
1241
1242     /*! This is used for translation of the word that will possibly
1243      *  be followed by a single name or by a list of names
1244      *  of the category.
1245      */
1246     virtual QCString trPage(bool /*first_capital*/, bool /*singular*/)
1247     {
1248       return QCString("頁面");
1249     }
1250
1251     /*! This is used for translation of the word that will possibly
1252      *  be followed by a single name or by a list of names
1253      *  of the category.
1254      */
1255     virtual QCString trMember(bool /*first_capital*/, bool /*singular*/)
1256     {
1257       return QCString("成員");
1258     }
1259
1260     /*! This is used for translation of the word that will possibly
1261      *  be followed by a single name or by a list of names
1262      *  of the category.
1263      */
1264     virtual QCString trGlobal(bool /*first_capital*/, bool /*singular*/)
1265     {
1266       return QCString("全域");
1267     }
1268
1269 //////////////////////////////////////////////////////////////////////////
1270 // new since 1.2.7
1271 //////////////////////////////////////////////////////////////////////////
1272
1273     /*! This text is generated when the \\author command is used and
1274      *  for the author section in man pages. */
1275     virtual QCString trAuthor(bool /*first_capital*/, bool /*singular*/)
1276     {
1277       return QCString("作者");
1278     }
1279
1280 //////////////////////////////////////////////////////////////////////////
1281 // new since 1.2.11
1282 //////////////////////////////////////////////////////////////////////////
1283
1284     /*! This text is put before the list of members referenced by a member
1285      */
1286     virtual QCString trReferences()
1287     {
1288       return "參考";
1289     }
1290
1291 //////////////////////////////////////////////////////////////////////////
1292 // new since 1.2.13
1293 //////////////////////////////////////////////////////////////////////////
1294
1295     /*! used in member documentation blocks to produce a list of
1296      *  members that are implemented by this one.
1297      */
1298     virtual QCString trImplementedFromList(int numEntries)
1299     {
1300       return "實作 "+trWriteList(numEntries)+".";
1301     }
1302
1303     /*! used in member documentation blocks to produce a list of
1304      *  all members that implement this abstract member.
1305      */
1306     virtual QCString trImplementedInList(int numEntries)
1307     {
1308       return "實作於 "+trWriteList(numEntries)+".";
1309     }
1310
1311     //////////////////////////////////////////////////////////////////////////
1312 // new since 1.2.16
1313 //////////////////////////////////////////////////////////////////////////
1314
1315     /*! used in RTF documentation as a heading for the Table
1316      *  of Contents.
1317      */
1318     virtual QCString trRTFTableOfContents()
1319     {
1320       return "目錄";
1321     }
1322
1323 //////////////////////////////////////////////////////////////////////////
1324 // new since 1.2.17
1325 //////////////////////////////////////////////////////////////////////////
1326
1327     /*! Used as the header of the list of item that have been
1328      *  flagged deprecated
1329      */
1330     virtual QCString trDeprecatedList()
1331     {
1332       return "過時項目(Deprecated) 列表";
1333     }
1334
1335 //////////////////////////////////////////////////////////////////////////
1336 // new since 1.2.18
1337 //////////////////////////////////////////////////////////////////////////
1338
1339     /*! Used as a header for declaration section of the events found in
1340      * a C# program
1341      */
1342     virtual QCString trEvents()
1343     {
1344       return "Events";
1345     }
1346     /*! Header used for the documentation section of a class' events. */
1347     virtual QCString trEventDocumentation()
1348     {
1349       return "Event 文件";
1350     }
1351
1352 //////////////////////////////////////////////////////////////////////////
1353 // new since 1.3
1354 //////////////////////////////////////////////////////////////////////////
1355
1356     /*! Used as a heading for a list of Java class types with package scope.
1357      */
1358     virtual QCString trPackageTypes()
1359     {
1360       return "Package 型別";
1361     }
1362     /*! Used as a heading for a list of Java class functions with package
1363      * scope.
1364      */
1365     virtual QCString trPackageMembers()
1366     {
1367       return "Package 函數列表";
1368     }
1369     /*! Used as a heading for a list of static Java class functions with
1370      *  package scope.
1371      */
1372     virtual QCString trStaticPackageMembers()
1373     {
1374       return "靜態 Package 函數列表";
1375     }
1376     /*! Used as a heading for a list of Java class variables with package
1377      * scope.
1378      */
1379     virtual QCString trPackageAttribs()
1380     {
1381       return "Package 屬性";
1382     }
1383     /*! Used as a heading for a list of static Java class variables with
1384      * package scope.
1385      */
1386     virtual QCString trStaticPackageAttribs()
1387     {
1388       return "靜態 Package 屬性";
1389     }
1390
1391 //////////////////////////////////////////////////////////////////////////
1392 // new since 1.3.1
1393 //////////////////////////////////////////////////////////////////////////
1394
1395     /*! Used in the quick index of a class/file/namespace member list page
1396      *  to link to the unfiltered list of all members.
1397      */
1398     virtual QCString trAll()
1399     {
1400       return "全部";
1401     }
1402     /*! Put in front of the call graph for a function. */
1403     virtual QCString trCallGraph()
1404     {
1405       return "這是此函數的引用函數圖:";
1406     }
1407
1408 //////////////////////////////////////////////////////////////////////////
1409 // new since 1.3.3
1410 //////////////////////////////////////////////////////////////////////////
1411
1412     /*! This string is used as the title for the page listing the search
1413      *  results.
1414      */
1415     virtual QCString trSearchResultsTitle()
1416     {
1417       return "搜尋結果";
1418     }
1419     /*! This string is put just before listing the search results. The
1420      *  text can be different depending on the number of documents found.
1421      *  Inside the text you can put the special marker $num to insert
1422      *  the number representing the actual number of search results.
1423      *  The @a numDocuments parameter can be either 0, 1 or 2, where the
1424      *  value 2 represents 2 or more matches. HTML markup is allowed inside
1425      *  the returned string.
1426      */
1427     virtual QCString trSearchResults(int numDocuments)
1428     {
1429       if (numDocuments==0)
1430       {
1431         return "找不到符合的資料.";
1432       }
1433       else if (numDocuments==1)
1434       {
1435         return "找到 <b>1</b> 筆符合的資料.";
1436       }
1437       else
1438       {
1439         return "找到 <b>$num</b> 筆符合的資料. "
1440                "越符合的結果顯示在越前面.";
1441       }
1442     }
1443     /*! This string is put before the list of matched words, for each search
1444      *  result. What follows is the list of words that matched the query.
1445      */
1446     virtual QCString trSearchMatches()
1447     {
1448       return "符合:";
1449     }
1450
1451 //////////////////////////////////////////////////////////////////////////
1452 // new since 1.3.8
1453 //////////////////////////////////////////////////////////////////////////
1454
1455     /*! This is used in HTML as the title of page with source code for file filename
1456      */
1457     virtual QCString trSourceFile(QCString& filename)
1458     {
1459       return filename + " 原始程式檔";
1460     }
1461
1462 //////////////////////////////////////////////////////////////////////////
1463 // new since 1.3.9
1464 //////////////////////////////////////////////////////////////////////////
1465
1466     /*! This is used as the name of the chapter containing the directory
1467      *  hierarchy.
1468      */
1469     virtual QCString trDirIndex()
1470     { return "目錄階層"; }
1471
1472     /*! This is used as the name of the chapter containing the documentation
1473      *  of the directories.
1474      */
1475     virtual QCString trDirDocumentation()
1476     { return "目錄說明文件"; }
1477
1478     /*! This is used as the title of the directory index and also in the
1479      *  Quick links of a HTML page, to link to the directory hierarchy.
1480      */
1481     virtual QCString trDirectories()
1482     { return "目錄"; }
1483
1484     /*! This returns a sentences that introduces the directory hierarchy.
1485      *  and the fact that it is sorted alphabetically per level
1486      */
1487     virtual QCString trDirDescription()
1488     { return "這個目錄階層經過簡略的字母排序: ";
1489     }
1490
1491     /*! This returns the title of a directory page. The name of the
1492      *  directory is passed via \a dirName.
1493      */
1494     virtual QCString trDirReference(const char *dirName)
1495     { QCString result=dirName; result+=" 目錄參考文件"; return result; }
1496
1497     /*! This returns the word directory with or without starting capital
1498      *  (\a first_capital) and in sigular or plural form (\a singular).
1499      */
1500     virtual QCString trDir(bool /*first_capital*/, bool /*singular*/)
1501     {
1502       return QCString("目錄");
1503     }
1504
1505 //////////////////////////////////////////////////////////////////////////
1506 // new since 1.4.1
1507 //////////////////////////////////////////////////////////////////////////
1508
1509     /*! This text is added to the documentation when the \\overload command
1510      *  is used for a overloaded function.
1511      */
1512     virtual QCString trOverloadText()
1513     {
1514        return "這是一個為了便利性所提供 overload 成員函數,"
1515               "只有在接受的參數上,與前一個函數不同.";
1516     }
1517 //////////////////////////////////////////////////////////////////////////
1518 // new since 1.4.6
1519 //////////////////////////////////////////////////////////////////////////
1520
1521     /*! This is used to introduce a caller (or called-by) graph */
1522     virtual QCString trCallerGraph()
1523     {
1524       return "呼叫此函數的函數列表:";
1525     }
1526
1527
1528 //////////////////////////////////////////////////////////////////////////
1529 // new since 1.5.4 (mainly for Fortran)
1530 //////////////////////////////////////////////////////////////////////////
1531
1532     /*! header that is put before the list of member subprograms (Fortran). */
1533     virtual QCString trMemberFunctionDocumentationFortran()
1534     { return "成員函數/子程序 文件"; }
1535
1536     /*! This is put above each page as a link to the list of annotated data types (Fortran). */
1537     virtual QCString trCompoundListFortran()
1538     { return "資料型態列表"; }
1539
1540     /*! This is put above each page as a link to all members of compounds (Fortran). */
1541     virtual QCString trCompoundMembersFortran()
1542     { return "資料欄位"; }
1543
1544     /*! This is an introduction to the annotated compound list (Fortran). */
1545     virtual QCString trCompoundListDescriptionFortran()
1546     { return "資料型態簡短說明列表:"; }
1547
1548     /*! This is an introduction to the page with all data types (Fortran). */
1549     virtual QCString trCompoundMembersDescriptionFortran(bool extractAll)
1550     {
1551       QCString result="此處列出所有";
1552       if (!extractAll)
1553       {
1554         result+="有文件的";
1555       }
1556       result+="資料型別成員函數";
1557       result+=" 附帶連結到 ";
1558       if (!extractAll)
1559       {
1560          result+="每個成員函數的資料結構文件";
1561       }
1562       else
1563       {
1564          result+="他們屬於的資料型別";
1565       }
1566       return result;
1567     }
1568
1569     /*! This is used in LaTeX as the title of the chapter with the
1570      * annotated compound index (Fortran).
1571      */
1572     virtual QCString trCompoundIndexFortran()
1573     { return "資料型別索引"; }
1574
1575     /*! This is used in LaTeX as the title of the chapter containing
1576      *  the documentation of all data types (Fortran).
1577      */
1578     virtual QCString trTypeDocumentation()
1579     { return "資料型別文件"; }
1580
1581     /*! This is used in the documentation of a file as a header before the
1582      *  list of (global) subprograms (Fortran).
1583      */
1584     virtual QCString trSubprograms()
1585     { return "函數/子程序"; }
1586
1587     /*! This is used in the documentation of a file/namespace before the list
1588      *  of documentation blocks for subprograms (Fortran)
1589      */
1590     virtual QCString trSubprogramDocumentation()
1591     { return "函數/子程序 文件"; }
1592
1593     /*! This is used in the documentation of a file/namespace/group before
1594      *  the list of links to documented compounds (Fortran)
1595      */
1596      virtual QCString trDataTypes()
1597     { return "資料型別"; }
1598
1599     /*! used as the title of page containing all the index of all modules (Fortran). */
1600     virtual QCString trModulesList()
1601     { return "模組列表"; }
1602
1603     /*! used as an introduction to the modules list (Fortran) */
1604     virtual QCString trModulesListDescription(bool extractAll)
1605     {
1606       QCString result="此處列出所有";
1607       if (!extractAll) result+="有文件的";
1608       result+="模組附帶簡短說明:";
1609       return result;
1610     }
1611
1612     /*! used as the title of the HTML page of a module/type (Fortran) */
1613     virtual QCString trCompoundReferenceFortran(const char *clName,
1614                                     ClassDef::CompoundType compType,
1615                                     bool isTemplate)
1616     {
1617       QCString result=(QCString)clName;
1618       switch(compType)
1619       {
1620         case ClassDef::Class:      result+="模組"; break;
1621         case ClassDef::Struct:     result+="型態"; break;
1622         case ClassDef::Union:      result+="聯合"; break;
1623         case ClassDef::Interface:  result+="介面"; break;
1624         case ClassDef::Protocol:   result+="協議"; break;
1625         case ClassDef::Category:   result+="分類"; break;
1626         case ClassDef::Exception:  result+="例外"; break;
1627         default: break;
1628       }
1629       if (isTemplate) result+=" Template";
1630       result+="參考文件";
1631       return result;
1632     }
1633     /*! used as the title of the HTML page of a module (Fortran) */
1634     virtual QCString trModuleReference(const char *namespaceName)
1635     {
1636       QCString result=namespaceName;
1637       result+="模組參考文件";
1638       return result;
1639     }
1640
1641     /*! This is put above each page as a link to all members of modules. (Fortran) */
1642     virtual QCString trModulesMembers()
1643     { return "模組成員"; }
1644
1645     /*! This is an introduction to the page with all modules members (Fortran) */
1646     virtual QCString trModulesMemberDescription(bool extractAll)
1647     {
1648       QCString result="此處列出所有";
1649       if (!extractAll) result+="有文件的";
1650       result+="模組成員附帶連結到";
1651       if (extractAll)
1652       {
1653         result+="每個函數的模組文件:";
1654       }
1655       else
1656       {
1657         result+="他們所屬的模組:";
1658       }
1659       return result;
1660     }
1661
1662     /*! This is used in LaTeX as the title of the chapter with the
1663      *  index of all modules (Fortran).
1664      */
1665     virtual QCString trModulesIndex()
1666     { return "模組索引"; }
1667
1668     /*! This is used for translation of the word that will possibly
1669      *  be followed by a single name or by a list of names
1670      *  of the category.
1671      */
1672     virtual QCString trModule(bool /* first_capital */, bool /* singular */)
1673     {
1674       QCString result("模組");
1675       return result;
1676     }
1677     /*! This is put at the bottom of a module documentation page and is
1678      *  followed by a list of files that were used to generate the page.
1679      */
1680     virtual QCString trGeneratedFromFilesFortran(ClassDef::CompoundType compType,
1681         bool /* single */)
1682     { // here s is one of " Module", " Struct" or " Union"
1683       // single is true implies a single file
1684       QCString result=(QCString)"這個";
1685       switch(compType)
1686       {
1687         case ClassDef::Class:      result+="模組"; break;
1688         case ClassDef::Struct:     result+="型態"; break;
1689         case ClassDef::Union:      result+="聯合"; break;
1690         case ClassDef::Interface:  result+="介面"; break;
1691         case ClassDef::Protocol:   result+="協議"; break;
1692         case ClassDef::Category:   result+="分類"; break;
1693         case ClassDef::Exception:  result+="例外"; break;
1694         default: break;
1695       }
1696       result+="文件由下列檔案產生";
1697       return result;
1698     }
1699     /*! This is used for translation of the word that will possibly
1700      *  be followed by a single name or by a list of names
1701      *  of the category.
1702      */
1703     virtual QCString trType(bool /* first_capital */, bool /* singular */)
1704     {
1705       QCString result("型別");
1706       return result;
1707     }
1708     /*! This is used for translation of the word that will possibly
1709      *  be followed by a single name or by a list of names
1710      *  of the category.
1711      */
1712     virtual QCString trSubprogram(bool /* first_capital */, bool /* singular */)
1713     {
1714       QCString result("子程式");
1715       return result;
1716     }
1717
1718     /*! C# Type Constraint list */
1719     virtual QCString trTypeConstraints()
1720     {
1721       return "型別限制條件";
1722     }
1723
1724 //////////////////////////////////////////////////////////////////////////
1725 // new since 1.6.0 (mainly for the new search engine)
1726 //////////////////////////////////////////////////////////////////////////
1727
1728     /*! directory relation for \a name */
1729     virtual QCString trDirRelation(const char *name)
1730     {
1731       return QCString(name)+" 關連";
1732     }
1733
1734     /*! Loading message shown when loading search results */
1735     virtual QCString trLoading()
1736     {
1737       return "載入中...";
1738     }
1739
1740     /*! Label used for search results in the global namespace */
1741     virtual QCString trGlobalNamespace()
1742     {
1743       return "全域命名空間";
1744     }
1745
1746     /*! Message shown while searching */
1747     virtual QCString trSearching()
1748     {
1749       return "搜尋中...";
1750     }
1751
1752     /*! Text shown when no search results are found */
1753     virtual QCString trNoMatches()
1754     {
1755       return "無符合項目";
1756     }
1757
1758 //////////////////////////////////////////////////////////////////////////
1759 // new since 1.6.3 (missing items for the directory pages)
1760 //////////////////////////////////////////////////////////////////////////
1761
1762     /*! when clicking a directory dependency label, a page with a
1763      *  table is shown. The heading for the first column mentions the
1764      *  source file that has a relation to another file.
1765      */
1766     virtual QCString trFileIn(const char *name)
1767     {
1768       return (QCString)"檔案在"+name;
1769     }
1770
1771     /*! when clicking a directory dependency label, a page with a
1772      *  table is shown. The heading for the second column mentions the
1773      *  destination file that is included.
1774      */
1775     virtual QCString trIncludesFileIn(const char *name)
1776     {
1777       return (QCString)"含入檔案在"+name;
1778     }
1779
1780     /** Compiles a date string.
1781      *  @param year Year in 4 digits
1782      *  @param month Month of the year: 1=January
1783      *  @param day Day of the Month: 1..31
1784      *  @param dayOfWeek Day of the week: 1=Monday..7=Sunday
1785      *  @param hour Hour of the day: 0..23
1786      *  @param minutes Minutes in the hour: 0..59
1787      *  @param seconds Seconds within the minute: 0..59
1788      *  @param includeTime Include time in the result string?
1789      */
1790     virtual QCString trDateTime(int year,int month,int day,int dayOfWeek,
1791                                 int hour,int minutes,int seconds,
1792                                 bool includeTime)
1793     {
1794       static const char *days[]   = { "星期一","星期二","星期三","星期四","星期五","星期六","星期日" };
1795       static const char *months[] = { "1","2","3","4","5","6","7","8","9","10","11","12" };
1796       QCString sdate;
1797       sdate.sprintf("%d年%s月%d日 %s",year,months[month-1],day,days[dayOfWeek-1]);
1798       if (includeTime)
1799       {
1800         QCString stime;
1801         stime.sprintf(" %.2d:%.2d:%.2d",hour,minutes,seconds);
1802         sdate+=stime;
1803       }
1804       return sdate;
1805     }
1806
1807 //////////////////////////////////////////////////////////////////////////
1808 // new since 1.7.5
1809 //////////////////////////////////////////////////////////////////////////
1810
1811     /*! Header for the page with bibliographic citations */
1812     virtual QCString trCiteReferences()
1813     { return "參考文獻資料"; }
1814
1815     /*! Text for copyright paragraph */
1816     virtual QCString trCopyright()
1817     { return "版權聲明"; }
1818
1819     /*! Header for the graph showing the directory dependencies */
1820     virtual QCString trDirDepGraph(const char *name)
1821     { return QCString(name)+"的目錄關連圖"+":"; }
1822
1823 //////////////////////////////////////////////////////////////////////////
1824 // new since 1.8.0
1825 //////////////////////////////////////////////////////////////////////////
1826
1827     /*! Detail level selector shown for hierarchical indices */
1828     virtual QCString trDetailLevel()
1829     { return "詳細程度"; }
1830
1831     /*! Section header for list of template parameters */
1832     virtual QCString trTemplateParameters()
1833     { return "樣版參數"; }
1834
1835     /*! Used in dot graph when UML_LOOK is enabled and there are many fields */
1836     virtual QCString trAndMore(const QCString &number)
1837     { return "及 "+number+" 個更多..."; }
1838
1839     /*! Used file list for a Java enum */
1840     virtual QCString trEnumGeneratedFromFiles(bool single)
1841     { QCString result = "此列舉型態的文件是由下列檔案所產生";
1842       if (!single) result += "";
1843       result+=":";
1844       return result;
1845     }
1846
1847     /*! Header of a Java enum page (Java enums are represented as classes). */
1848     virtual QCString trEnumReference(const char *name)
1849     { return QCString(name)+" 列舉型態參考"; }
1850
1851     /*! Used for a section containing inherited members */
1852     virtual QCString trInheritedFrom(const char *members,const char *what)
1853     { return QCString(members)+" 繼承自 "+what; }
1854
1855     /*! Header of the sections with inherited members specific for the
1856      *  base class(es)
1857      */
1858     virtual QCString trAdditionalInheritedMembers()
1859     { return "額外的繼承成員"; }
1860
1861 //////////////////////////////////////////////////////////////////////////
1862 // new since 1.8.2
1863 //////////////////////////////////////////////////////////////////////////
1864
1865     /*! Used as a tooltip for the toggle button that appears in the
1866      *  navigation tree in the HTML output when GENERATE_TREEVIEW is
1867      *  enabled. This tooltip explains the meaning of the button.
1868      */
1869     virtual QCString trPanelSynchronisationTooltip(bool enable)
1870     {
1871       QCString opt = enable ? "啟用" : "停用";
1872       return "點擊 "+opt+" 面板進行同步";
1873     }
1874
1875     /*! Used in a method of an Objective-C class that is declared in a
1876      *  a category. Note that the @1 marker is required and is replaced
1877      *  by a link.
1878      */
1879     virtual QCString trProvidedByCategory()
1880     {
1881       return "由 @0 分類所提供.";
1882     }
1883
1884     /*! Used in a method of an Objective-C category that extends a class.
1885      *  Note that the @1 marker is required and is replaced by a link to
1886      *  the class method.
1887      */
1888     virtual QCString trExtendsClass()
1889     {
1890       return "延伸 @0 類別 .";
1891     }
1892
1893     /*! Used as the header of a list of class methods in Objective-C.
1894      *  These are similar to static public member functions in C++.
1895      */
1896     virtual QCString trClassMethods()
1897     {
1898       return "類別方法";
1899     }
1900
1901     /*! Used as the header of a list of instance methods in Objective-C.
1902      *  These are similar to public member functions in C++.
1903      */
1904     virtual QCString trInstanceMethods()
1905     {
1906       return "實體方法";
1907     }
1908
1909     /*! Used as the header of the member functions of an Objective-C class.
1910      */
1911     virtual QCString trMethodDocumentation()
1912     {
1913       return "方法文件";
1914     }
1915
1916     /*! Used as the title of the design overview picture created for the
1917      *  VHDL output.
1918      */
1919     virtual QCString trDesignOverview()
1920     {
1921       return "設計概述";
1922     }
1923
1924 //////////////////////////////////////////////////////////////////////////
1925 // new since 1.8.4
1926 //////////////////////////////////////////////////////////////////////////
1927
1928     /** old style UNO IDL services: implemented interfaces */
1929     virtual QCString trInterfaces()
1930     { return "導出介面"; }
1931
1932     /** old style UNO IDL services: inherited services */
1933     virtual QCString trServices()
1934     { return "引入的服務"; }
1935
1936     /** UNO IDL constant groups */
1937     virtual QCString trConstantGroups()
1938     { return "常數群組"; }
1939
1940     /** UNO IDL constant groups */
1941     virtual QCString trConstantGroupReference(const char *namespaceName)
1942     {
1943       QCString result=namespaceName;
1944       result+="常數群組參考";
1945       return result;
1946     }
1947     /** UNO IDL service page title */
1948     virtual QCString trServiceReference(const char *sName)
1949     {
1950       QCString result=(QCString)sName;
1951       result+="服務參考";
1952       return result;
1953     }
1954     /** UNO IDL singleton page title */
1955     virtual QCString trSingletonReference(const char *sName)
1956     {
1957       QCString result=(QCString)sName;
1958       result+="Singleton參考";
1959       return result;
1960     }
1961     /** UNO IDL service page */
1962     virtual QCString trServiceGeneratedFromFiles(bool)
1963     {
1964       // single is true implies a single file
1965       QCString result=(QCString)"本服務的文件由以下的檔案"
1966                                 "所產生";
1967       result+=":";
1968       return result;
1969     }
1970     /** UNO IDL singleton page */
1971     virtual QCString trSingletonGeneratedFromFiles(bool)
1972     {
1973       // single is true implies a single file
1974       QCString result=(QCString)"本singleton的文件由下面的檔案"
1975                                 "所產生";
1976       result+=":";
1977       return result;
1978     }
1979
1980 //////////////////////////////////////////////////////////////////////////
1981
1982 };
1983
1984 #endif