Orb/Doxygen/src/translator_jp.h
changeset 0 42188c7ea2d9
child 4 468f4c8d3d5b
equal deleted inserted replaced
-1:000000000000 0:42188c7ea2d9
       
     1 /******************************************************************************
       
     2  *
       
     3  *
       
     4  *
       
     5  * Copyright (C) 1997-2008 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 /*
       
    19  * translator_jp.h 
       
    20  * Updates:
       
    21  * 1.2.5)
       
    22  * First Translation
       
    23  *      by Kenji Nagamatsu
       
    24  * 1.2.12)
       
    25  * Update and Shift-Jis(_WIN32)
       
    26  *      by Ryunosuke Sato (30-Dec-2001)
       
    27  * 1.5.8)
       
    28  * Translation for 1.5.8.
       
    29  *      by Hiroki Iseri (18-Feb-2009)
       
    30  */
       
    31 
       
    32 #ifndef TRANSLATOR_JP_H
       
    33 #define TRANSLATOR_JP_H
       
    34 
       
    35 class TranslatorJapanese : public TranslatorAdapter_1_6_0
       
    36 {
       
    37  private:
       
    38   /*! The decode() can change euc into sjis */
       
    39   inline QCString decode(const QCString & sInput)
       
    40   {
       
    41     //if (Config_getBool("USE_WINDOWS_ENCODING"))
       
    42     //{
       
    43     //  return JapaneseEucToSjis(sInput);
       
    44     //}
       
    45     //else
       
    46     //{
       
    47       return sInput;
       
    48     //}
       
    49   }
       
    50   public:
       
    51     virtual QCString idLanguage()
       
    52     { return "japanese"; }
       
    53     virtual QCString latexLanguageSupportCommand()
       
    54     {
       
    55       return "";
       
    56     }
       
    57     /*! returns the name of the package that is included by LaTeX */
       
    58     virtual QCString idLanguageCharset()
       
    59     {
       
    60       //if (Config_getBool("USE_WINDOWS_ENCODING"))
       
    61       //{
       
    62       //  return "Shift_JIS";
       
    63       //}
       
    64       //else
       
    65       //{
       
    66         return "euc-jp";
       
    67       //}
       
    68     }
       
    69 
       
    70     /*! used in the compound documentation before a list of related functions. */
       
    71     virtual QCString trRelatedFunctions()
       
    72     { return decode("関連する関数"); }
       
    73 
       
    74     /*! subscript for the related functions. */
       
    75     virtual QCString trRelatedSubscript()
       
    76     { return decode("(これらはメソッドでないことに注意)"); }
       
    77 
       
    78     /*! header that is put before the detailed description of files, classes and namespaces. */
       
    79     virtual QCString trDetailedDescription()
       
    80     { return decode("説明"); }
       
    81 
       
    82     /*! header that is put before the list of typedefs. */
       
    83     virtual QCString trMemberTypedefDocumentation()
       
    84     { return decode("型定義"); }
       
    85 
       
    86     /*! header that is put before the list of enumerations. */
       
    87     virtual QCString trMemberEnumerationDocumentation()
       
    88     { return decode("列挙型"); }
       
    89 
       
    90     /*! header that is put before the list of member functions. */
       
    91     virtual QCString trMemberFunctionDocumentation()
       
    92     { 
       
    93 	  if( Config_getBool("OPTIMIZE_OUTPUT_JAVA"))
       
    94 	  {
       
    95 		return decode("メソッド");
       
    96 	  }
       
    97 	  else
       
    98 	  {
       
    99 		return decode("関数");
       
   100 	  }
       
   101 	}
       
   102 
       
   103     /*! header that is put before the list of member attributes. */
       
   104     virtual QCString trMemberDataDocumentation()
       
   105     {
       
   106       if( Config_getBool("OPTIMIZE_OUTPUT_FOR_C"))
       
   107 	  {
       
   108 	    return decode("構造体");
       
   109 	  }
       
   110       else
       
   111 	  {
       
   112 	    return decode("変数");
       
   113 	  }
       
   114     }
       
   115 
       
   116     /*! this is the text of a link put after brief descriptions. */
       
   117 	virtual QCString trMore()
       
   118     { return decode("[詳細]"); }
       
   119 
       
   120     /*! put in the class documentation */
       
   121     virtual QCString trListOfAllMembers()
       
   122     { return decode("すべてのメンバ一覧"); }
       
   123 
       
   124     /*! used as the title of the "list of all members" page of a class */
       
   125     virtual QCString trMemberList()
       
   126     { return decode("メンバ一覧"); }
       
   127 
       
   128     /*! this is the first part of a sentence that is followed by a class name */
       
   129     virtual QCString trThisIsTheListOfAllMembers()
       
   130     { return decode("これは全メンバの一覧です。"); }
       
   131 
       
   132     /*! this is the remainder of the sentence after the class name */
       
   133     virtual QCString trIncludingInheritedMembers()
       
   134     { return decode("継承メンバも含んでいます。"); }
       
   135 
       
   136     /*! this is put at the author sections at the bottom of man pages.
       
   137      *  parameter s is name of the project name.
       
   138      */
       
   139     virtual QCString trGeneratedAutomatically(const char *s)
       
   140     { QCString result;
       
   141       if (s) result=(QCString)s+decode("の");
       
   142       result+=decode("ソースから Doxygen により生成しました。");
       
   143       return result;
       
   144     }
       
   145 
       
   146     /*! put after an enum name in the list of all members */
       
   147     virtual QCString trEnumName()
       
   148     { return decode("Enum"); }
       
   149 
       
   150     /*! put after an enum value in the list of all members */
       
   151     virtual QCString trEnumValue()
       
   152     { return decode("Enum 値"); }
       
   153 
       
   154     /*! put after an undocumented member in the list of all members */
       
   155     virtual QCString trDefinedIn()
       
   156     { return decode("次で定義されています。"); }
       
   157 
       
   158     // quick reference sections
       
   159 
       
   160     /*! This is put above each page as a link to the list of all groups of
       
   161      *  compounds or files (see the \\group command).
       
   162      */
       
   163     virtual QCString trModules()
       
   164     { return decode("モジュール"); }
       
   165 
       
   166     /*! This is put above each page as a link to the class hierarchy */
       
   167     virtual QCString trClassHierarchy()
       
   168     { return decode("クラス階層"); }
       
   169 
       
   170     /*! This is put above each page as a link to the list of annotated classes */
       
   171     virtual QCString trCompoundList()
       
   172     {
       
   173       if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C"))
       
   174 	{
       
   175 	  return decode("データ構造");
       
   176 	}
       
   177       else
       
   178 	{
       
   179 	  return decode("構成");
       
   180 	}
       
   181     }
       
   182 
       
   183     /*! This is put above each page as a link to the list of documented files */
       
   184     virtual QCString trFileList()
       
   185     { return decode("ファイル一覧"); }
       
   186 
       
   187     /*! This is put above each page as a link to the list of all verbatim headers */
       
   188     virtual QCString trHeaderFiles()
       
   189     { return decode("ヘッダファイル"); }
       
   190 
       
   191     /*! This is put above each page as a link to all members of compounds. */
       
   192     virtual QCString trCompoundMembers()
       
   193     {
       
   194       if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C"))
       
   195 	{
       
   196 	  return decode("データフィールド");
       
   197 	}
       
   198       else
       
   199 	{
       
   200 	  return decode("構成メンバ");
       
   201 	}
       
   202     }
       
   203 
       
   204     /*! This is put above each page as a link to all members of files. */
       
   205     virtual QCString trFileMembers()
       
   206     {
       
   207       if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C"))
       
   208 	{
       
   209 	  return decode("グローバル");
       
   210 	}
       
   211       else
       
   212 	{
       
   213 	  return decode("ファイルメンバ");
       
   214 	}
       
   215     }
       
   216     /*! This is put above each page as a link to all related pages. */
       
   217     virtual QCString trRelatedPages()
       
   218     { return decode("関連ページ"); }
       
   219 
       
   220     /*! This is put above each page as a link to all examples. */
       
   221     virtual QCString trExamples()
       
   222     { return decode("例"); }
       
   223 
       
   224     /*! This is put above each page as a link to the search engine. */
       
   225     virtual QCString trSearch()
       
   226     { return decode("検索"); }
       
   227 
       
   228     /*! This is an introduction to the class hierarchy. */
       
   229     virtual QCString trClassHierarchyDescription()
       
   230     { return decode("この継承一覧はおおまかにはソートされていますが、"
       
   231              "完全にアルファベット順でソートされてはいません。");
       
   232     }
       
   233 
       
   234     /*! This is an introduction to the list with all files. */
       
   235     virtual QCString trFileListDescription(bool /*extractAll*/)
       
   236     {
       
   237       QCString result=decode("これは");
       
   238       result+=decode("ファイル一覧です。");
       
   239       return result;
       
   240     }
       
   241 
       
   242     /*! This is an introduction to the annotated compound list. */
       
   243     virtual QCString trCompoundListDescription()
       
   244     {
       
   245       if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C"))
       
   246 	{
       
   247 	  return decode("データ構造の説明です。");
       
   248 	}
       
   249       else
       
   250 	{
       
   251 	  return decode("クラス、構造体、共用体、インタフェースの説明です。");
       
   252 	}
       
   253     }
       
   254 
       
   255     /*! This is an introduction to the page with all class members. */
       
   256     virtual QCString trCompoundMembersDescription(bool extractAll)
       
   257     {
       
   258       QCString result=decode("これは");
       
   259       if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C"))
       
   260 	  {
       
   261 	    result+=decode("フィールドの一覧でそれぞれ");
       
   262 	    if (extractAll) result+=decode("が属している構造体/共用体");
       
   263 	  }
       
   264       else
       
   265 	  {
       
   266 	    result+=decode("クラスメンバの一覧で、それぞれ");
       
   267 	    if (extractAll) result+=decode("が属しているクラス");
       
   268 	  }
       
   269       result+=decode("の説明へリンクしています。");
       
   270       return result;
       
   271     }
       
   272 
       
   273     /*! This is an introduction to the page with all file members. */
       
   274     virtual QCString trFileMembersDescription(bool /*extractAll*/)
       
   275     {
       
   276       QCString result=decode("これは");
       
   277       if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C"))
       
   278 	{
       
   279 	  result+=decode("関数、変数、マクロ、Enum、Typedef の");
       
   280 	}
       
   281       else
       
   282 	{
       
   283 	  result+=decode("ファイルメンバの");
       
   284 	}
       
   285       result+=decode("一覧です。それぞれが属しているファイルの説明へリンクしています。");
       
   286       return result;
       
   287     }
       
   288 
       
   289     /*! This is an introduction to the page with the list of all header files. */
       
   290     virtual QCString trHeaderFilesDescription()
       
   291     { return decode("APIを構成するヘッダファイルです。"); }
       
   292 
       
   293     /*! This is an introduction to the page with the list of all examples */
       
   294     virtual QCString trExamplesDescription()
       
   295     { return decode("すべての例の一覧です。"); }
       
   296 
       
   297     /*! This is an introduction to the page with the list of related pages */
       
   298     virtual QCString trRelatedPagesDescription()
       
   299     { return decode("関連ページの一覧です。"); }
       
   300 
       
   301     /*! This is an introduction to the page with the list of class/file groups */
       
   302     virtual QCString trModulesDescription()
       
   303     { return decode("すべてのモジュールの一覧です。"); }
       
   304 
       
   305     /*! This sentences is used in the annotated class/file lists if no brief
       
   306      * description is given.
       
   307      */
       
   308     virtual QCString trNoDescriptionAvailable()
       
   309     { return decode("ドキュメントが記述されていません。"); }
       
   310 
       
   311     // index titles (the project name is prepended for these)
       
   312 
       
   313 
       
   314     /*! This is used in HTML as the title of index.html. */
       
   315     virtual QCString trDocumentation()
       
   316     { return decode("ドキュメント"); }
       
   317 
       
   318     /*! This is used in LaTeX as the title of the chapter with the
       
   319      * index of all groups.
       
   320      */
       
   321     virtual QCString trModuleIndex()
       
   322     { return decode("モジュール索引"); }
       
   323 
       
   324     /*! This is used in LaTeX as the title of the chapter with the
       
   325      * class hierarchy.
       
   326      */
       
   327     virtual QCString trHierarchicalIndex()
       
   328     { return decode("階層索引"); }
       
   329 
       
   330     /*! This is used in LaTeX as the title of the chapter with the
       
   331      * annotated compound index.
       
   332      */
       
   333     virtual QCString trCompoundIndex()
       
   334     {
       
   335       if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C"))
       
   336 	{
       
   337 	  return decode("データ構造索引");
       
   338 	}
       
   339       else
       
   340 	{
       
   341 	  return decode("構成索引");
       
   342 	}
       
   343     }
       
   344 
       
   345     /*! This is used in LaTeX as the title of the chapter with the
       
   346      * list of all files.
       
   347      */
       
   348     virtual QCString trFileIndex()
       
   349     { return decode("ファイル索引"); }
       
   350 
       
   351     /*! This is used in LaTeX as the title of the chapter containing
       
   352      *  the documentation of all groups.
       
   353      */
       
   354     virtual QCString trModuleDocumentation()
       
   355     { return decode("モジュール"); }
       
   356 
       
   357     /*! This is used in LaTeX as the title of the chapter containing
       
   358      *  the documentation of all classes, structs and unions.
       
   359      */
       
   360     virtual QCString trClassDocumentation()
       
   361     {
       
   362       if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C"))
       
   363 	{
       
   364 	  return decode("データ構造");
       
   365 	}
       
   366       else
       
   367 	{
       
   368 	  return decode("クラス");
       
   369 	}
       
   370     }
       
   371 
       
   372     /*! This is used in LaTeX as the title of the chapter containing
       
   373      *  the documentation of all files.
       
   374      */
       
   375     virtual QCString trFileDocumentation()
       
   376     { return decode("ファイル"); }
       
   377 
       
   378     /*! This is used in LaTeX as the title of the chapter containing
       
   379      *  the documentation of all examples.
       
   380      */
       
   381     virtual QCString trExampleDocumentation()
       
   382     { return decode("例"); }
       
   383 
       
   384     /*! This is used in LaTeX as the title of the chapter containing
       
   385      *  the documentation of all related pages.
       
   386      */
       
   387     virtual QCString trPageDocumentation()
       
   388     { return decode("ページ"); }
       
   389 
       
   390     /*! This is used in LaTeX as the title of the document */
       
   391     virtual QCString trReferenceManual()
       
   392     { return decode("リファレンスマニュアル"); }
       
   393 
       
   394     /*! This is used in the documentation of a file as a header before the
       
   395      *  list of defines
       
   396      */
       
   397     virtual QCString trDefines()
       
   398     { return decode("マクロ定義"); }
       
   399 
       
   400     /*! This is used in the documentation of a file as a header before the
       
   401      *  list of function prototypes
       
   402      */
       
   403     virtual QCString trFuncProtos()
       
   404     { return decode("関数プロトタイプ"); }
       
   405 
       
   406     /*! This is used in the documentation of a file as a header before the
       
   407      *  list of typedefs
       
   408      */
       
   409     virtual QCString trTypedefs()
       
   410     { return decode("型定義"); }
       
   411 
       
   412     /*! This is used in the documentation of a file as a header before the
       
   413      *  list of enumerations
       
   414      */
       
   415     virtual QCString trEnumerations()
       
   416     { return decode("列挙型"); }
       
   417 
       
   418     /*! This is used in the documentation of a file as a header before the
       
   419      *  list of (global) functions
       
   420      */
       
   421     virtual QCString trFunctions()
       
   422     { return decode("関数"); }
       
   423 
       
   424     /*! This is used in the documentation of a file as a header before the
       
   425      *  list of (global) variables
       
   426      */
       
   427     virtual QCString trVariables()
       
   428     { return decode("変数"); }
       
   429 
       
   430     /*! This is used in the documentation of a file as a header before the
       
   431      *  list of (global) variables
       
   432      */
       
   433     virtual QCString trEnumerationValues()
       
   434       { return decode("列挙型の値"); }
       
   435     /*! This is used in the documentation of a file before the list of
       
   436      *  documentation blocks for defines
       
   437      */
       
   438     virtual QCString trDefineDocumentation()
       
   439     { return decode("マクロ定義"); }
       
   440 
       
   441     /*! This is used in the documentation of a file/namespace before the list
       
   442      *  of documentation blocks for function prototypes
       
   443      */
       
   444     virtual QCString trFunctionPrototypeDocumentation()
       
   445     { return decode("関数プロトタイプ"); }
       
   446 
       
   447     /*! This is used in the documentation of a file/namespace before the list
       
   448      *  of documentation blocks for typedefs
       
   449      */
       
   450     virtual QCString trTypedefDocumentation()
       
   451     { return decode("型定義"); }
       
   452 
       
   453     /*! This is used in the documentation of a file/namespace before the list
       
   454      *  of documentation blocks for enumeration types
       
   455      */
       
   456     virtual QCString trEnumerationTypeDocumentation()
       
   457     { return decode("列挙型"); }
       
   458 
       
   459     /*! This is used in the documentation of a file/namespace before the list
       
   460      *  of documentation blocks for functions
       
   461      */
       
   462     virtual QCString trFunctionDocumentation()
       
   463     { return decode("関数"); }
       
   464 
       
   465     /*! This is used in the documentation of a file/namespace before the list
       
   466      *  of documentation blocks for variables
       
   467      */
       
   468     virtual QCString trVariableDocumentation()
       
   469     { return decode("変数"); }
       
   470 
       
   471     /*! This is used in the documentation of a file/namespace/group before
       
   472      *  the list of links to documented compounds
       
   473      */
       
   474     virtual QCString trCompounds()
       
   475     {
       
   476       if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C"))
       
   477 	{
       
   478 	  return decode("データ構造");
       
   479 	}
       
   480       else
       
   481 	{
       
   482 	  return decode("構成");
       
   483 	}
       
   484     }
       
   485     /*! This is used in the standard footer of each page and indicates when
       
   486      *  the page was generated
       
   487      */
       
   488     virtual QCString trGeneratedAt(const char *date,const char *projName)
       
   489     {
       
   490       QCString result;
       
   491       if (projName) result+=(QCString)projName+decode("に対して");
       
   492       result+=(QCString)date+decode("に生成されました。");
       
   493       return result;
       
   494     }
       
   495     /*! This is part of the sentence used in the standard footer of each page.
       
   496      */
       
   497     virtual QCString trWrittenBy()
       
   498     {
       
   499       return decode("作者");
       
   500     }
       
   501 
       
   502     /*! this text is put before a class diagram */
       
   503     virtual QCString trClassDiagram(const char *clName)
       
   504     {
       
   505       return (QCString)clName+decode("に対する継承グラフ");
       
   506     }
       
   507 
       
   508     /*! this text is generated when the \\internal command is used. */
       
   509     virtual QCString trForInternalUseOnly()
       
   510     { return decode("内部使用のみ。"); }
       
   511 
       
   512     /*! this text is generated when the \\reimp command is used. */
       
   513     virtual QCString trReimplementedForInternalReasons()
       
   514     { return decode("内部的な理由により再実装されましたが、APIには影響しません。");
       
   515     }
       
   516 
       
   517     /*! this text is generated when the \\warning command is used. */
       
   518     virtual QCString trWarning()
       
   519     { return decode("警告"); }
       
   520 
       
   521     /*! this text is generated when the \\bug command is used. */
       
   522     virtual QCString trBugsAndLimitations()
       
   523     { return decode("バグと制限"); }
       
   524 
       
   525     /*! this text is generated when the \\version command is used. */
       
   526     virtual QCString trVersion()
       
   527     { return decode("バージョン"); }
       
   528 
       
   529     /*! this text is generated when the \\date command is used. */
       
   530     virtual QCString trDate()
       
   531     { return decode("日付"); }
       
   532 
       
   533     /*! this text is generated when the \\return command is used. */
       
   534     virtual QCString trReturns()
       
   535     { return decode("戻り値"); }
       
   536 
       
   537     /*! this text is generated when the \\sa command is used. */
       
   538     virtual QCString trSeeAlso()
       
   539     { return decode("参照"); }
       
   540 
       
   541     /*! this text is generated when the \\param command is used. */
       
   542     virtual QCString trParameters()
       
   543     { return decode("引数"); }
       
   544 
       
   545     /*! this text is generated when the \\exception command is used. */
       
   546     virtual QCString trExceptions()
       
   547     { return decode("例外"); }
       
   548 
       
   549     /*! this text is used in the title page of a LaTeX document. */
       
   550     virtual QCString trGeneratedBy()
       
   551     { return decode("作成:"); }
       
   552 
       
   553 //////////////////////////////////////////////////////////////////////////
       
   554 // new since 0.49-990307
       
   555 //////////////////////////////////////////////////////////////////////////
       
   556 
       
   557     /*! used as the title of page containing all the index of all namespaces. */
       
   558     virtual QCString trNamespaceList()
       
   559     { return decode("ネームスペース一覧"); }
       
   560 
       
   561     /*! used as an introduction to the namespace list */
       
   562     virtual QCString trNamespaceListDescription(bool /*extractAll*/)
       
   563     {
       
   564       QCString result=decode("");
       
   565       result+=decode("ネームスペースの一覧です。");
       
   566       return result;
       
   567     }
       
   568 
       
   569     /*! used in the class documentation as a header before the list of all
       
   570      *  friends of a class
       
   571      */
       
   572     virtual QCString trFriends()
       
   573     { return decode("フレンド"); }
       
   574 
       
   575 //////////////////////////////////////////////////////////////////////////
       
   576 // new since 0.49-990405
       
   577 //////////////////////////////////////////////////////////////////////////
       
   578 
       
   579     /*! used in the class documentation as a header before the list of all
       
   580      * related classes
       
   581      */
       
   582     virtual QCString trRelatedFunctionDocumentation()
       
   583     { return decode("フレンドと関連する関数"); }
       
   584 
       
   585 //////////////////////////////////////////////////////////////////////////
       
   586 // new since 0.49-990425
       
   587 //////////////////////////////////////////////////////////////////////////
       
   588 
       
   589     /*! used as the title of the HTML page of a class/struct/union */
       
   590     virtual QCString trCompoundReference(const char *clName,
       
   591                                  ClassDef::CompoundType compType,
       
   592                                  bool isTemplate)
       
   593     {
       
   594       QCString result="";
       
   595       switch(compType)
       
   596       {
       
   597         case ClassDef::Class:      result+=decode("クラス "); break;
       
   598         case ClassDef::Struct:     result+=decode("構造体 "); break;
       
   599         case ClassDef::Union:      result+=decode("共用体 "); break;
       
   600         case ClassDef::Interface:  result+=decode("インタフェース "); break;
       
   601         case ClassDef::Protocol:   result+=decode("プロトコル "); break;
       
   602         case ClassDef::Category:   result+=decode("カテゴリ "); break;
       
   603         case ClassDef::Exception:  result+=decode("例外 "); break;
       
   604       }
       
   605       if (isTemplate) result+=decode("テンプレート ");
       
   606       result+=(QCString)clName;
       
   607       return result;
       
   608     }
       
   609 
       
   610     /*! used as the title of the HTML page of a file */
       
   611     virtual QCString trFileReference(const char *fileName)
       
   612     {
       
   613       QCString result=decode("")+(QCString)fileName;
       
   614       return result;
       
   615     }
       
   616 
       
   617     /*! used as the title of the HTML page of a namespace */
       
   618     virtual QCString trNamespaceReference(const char *namespaceName)
       
   619     {
       
   620       QCString result=decode("ネームスペース ")+(QCString)namespaceName;
       
   621       return result;
       
   622     }
       
   623 
       
   624     /* these are for the member sections of a class, struct or union */
       
   625     virtual QCString trPublicMembers()
       
   626     { return decode("Public メソッド"); }
       
   627     virtual QCString trPublicSlots()
       
   628     { return decode("Public スロット"); }
       
   629     virtual QCString trSignals()
       
   630     { return decode("シグナル"); }
       
   631     virtual QCString trStaticPublicMembers()
       
   632     { return decode("Static Public メソッド"); }
       
   633     virtual QCString trProtectedMembers()
       
   634     { return decode("Protected メソッド"); }
       
   635     virtual QCString trProtectedSlots()
       
   636     { return decode("Protected スロット"); }
       
   637     virtual QCString trStaticProtectedMembers()
       
   638     { return decode("Static Protected メソッド"); }
       
   639     virtual QCString trPrivateMembers()
       
   640     { return decode("Private メソッド"); }
       
   641     virtual QCString trPrivateSlots()
       
   642     { return decode("Private スロット"); }
       
   643     virtual QCString trStaticPrivateMembers()
       
   644     { return decode("Static Private メソッド"); }
       
   645 
       
   646     /*! this function is used to produce a comma-separated list of items.
       
   647      *  use generateMarker(i) to indicate where item i should be put.
       
   648      */
       
   649     virtual QCString trWriteList(int numEntries)
       
   650     {
       
   651       QCString result;
       
   652       int i;
       
   653       // the inherits list contain `numEntries' classes
       
   654       for (i=0;i<numEntries;i++)
       
   655       {
       
   656         // use generateMarker to generate placeholders for the class links!
       
   657         result+=generateMarker(i); // generate marker for entry i in the list
       
   658                                    // (order is left to right)
       
   659 
       
   660         if (i!=numEntries-1)  // not the last entry, so we need a separator
       
   661         {
       
   662           if (i<numEntries-2) // not the fore last entry
       
   663             result+=decode(", ");
       
   664           else                // the fore last entry
       
   665             result+=decode(", と ");
       
   666         }
       
   667       }
       
   668       return result;
       
   669     }
       
   670 
       
   671     /*! used in class documentation to produce a list of base classes,
       
   672      *  if class diagrams are disabled.
       
   673      */
       
   674     virtual QCString trInheritsList(int numEntries)
       
   675     {
       
   676       return trWriteList(numEntries)+decode("を継承しています。");
       
   677     }
       
   678 
       
   679     /*! used in class documentation to produce a list of super classes,
       
   680      *  if class diagrams are disabled.
       
   681      */
       
   682     virtual QCString trInheritedByList(int numEntries)
       
   683     {
       
   684       return trWriteList(numEntries)+decode("に継承されています。");
       
   685     }
       
   686 
       
   687     /*! used in member documentation blocks to produce a list of
       
   688      *  members that are hidden by this one.
       
   689      */
       
   690     virtual QCString trReimplementedFromList(int numEntries)
       
   691     {
       
   692       return trWriteList(numEntries)+decode("を再定義しています。");
       
   693     }
       
   694 
       
   695     /*! used in member documentation blocks to produce a list of
       
   696      *  all member that overwrite the implementation of this member.
       
   697      */
       
   698     virtual QCString trReimplementedInList(int numEntries)
       
   699     {
       
   700       return trWriteList(numEntries)+decode("で再定義されています。");
       
   701     }
       
   702 
       
   703     /*! This is put above each page as a link to all members of namespaces. */
       
   704     virtual QCString trNamespaceMembers()
       
   705     { return decode("ネームスペースメンバ"); }
       
   706 
       
   707     /*! This is an introduction to the page with all namespace members */
       
   708     virtual QCString trNamespaceMemberDescription(bool extractAll)
       
   709     {
       
   710 	QCString result=decode("これは");
       
   711       result+=decode("ネームスペースの一覧です。それぞれ");
       
   712       if (extractAll)
       
   713 	  result+=decode("のネームスペース");
       
   714       else
       
   715 	  result+=decode("が属しているネームスペース");
       
   716       result+=decode("へリンクしています。");
       
   717       return result;
       
   718     }
       
   719     /*! This is used in LaTeX as the title of the chapter with the
       
   720      *  index of all namespaces.
       
   721      */
       
   722     virtual QCString trNamespaceIndex()
       
   723     { return decode("ネームスペース索引"); }
       
   724 
       
   725     /*! This is used in LaTeX as the title of the chapter containing
       
   726      *  the documentation of all namespaces.
       
   727      */
       
   728     virtual QCString trNamespaceDocumentation()
       
   729     { return decode("ネームスペース"); }
       
   730 
       
   731 //////////////////////////////////////////////////////////////////////////
       
   732 // new since 0.49-990522
       
   733 //////////////////////////////////////////////////////////////////////////
       
   734 
       
   735     /*! This is used in the documentation before the list of all
       
   736      *  namespaces in a file.
       
   737      */
       
   738     virtual QCString trNamespaces()
       
   739     { return decode("ネームスペース"); }
       
   740 
       
   741 //////////////////////////////////////////////////////////////////////////
       
   742 // new since 0.49-990728
       
   743 //////////////////////////////////////////////////////////////////////////
       
   744 
       
   745     /*! This is put at the bottom of a class documentation page and is
       
   746      *  followed by a list of files that were used to generate the page.
       
   747      */
       
   748     virtual QCString trGeneratedFromFiles(ClassDef::CompoundType compType,
       
   749         bool)
       
   750     { // here s is one of " Class", " Struct" or " Union"
       
   751       // single is true implies a single file
       
   752       QCString result=(QCString)decode("この");
       
   753       switch(compType)
       
   754       {
       
   755         case ClassDef::Class:      result+=decode("クラス"); break;
       
   756         case ClassDef::Struct:     result+=decode("構造体"); break;
       
   757         case ClassDef::Union:      result+=decode("共用体"); break;
       
   758         case ClassDef::Interface:  result+=decode("インタフェース"); break;
       
   759         case ClassDef::Protocol:   result+=decode("プロトコル"); break;
       
   760         case ClassDef::Category:   result+=decode("カテゴリ"); break;
       
   761         case ClassDef::Exception:  result+=decode("例外"); break;
       
   762       }
       
   763       result+=decode("の説明は次のファイルから生成されました:");
       
   764       return result;
       
   765     }
       
   766 
       
   767     /*! This is in the (quick) index as a link to the alphabetical compound
       
   768      * list.
       
   769      */
       
   770     virtual QCString trAlphabeticalList()
       
   771     { return decode("アルファベット順一覧"); }
       
   772 
       
   773 //////////////////////////////////////////////////////////////////////////
       
   774 // new since 0.49-990901
       
   775 //////////////////////////////////////////////////////////////////////////
       
   776 
       
   777     /*! This is used as the heading text for the retval command. */
       
   778     virtual QCString trReturnValues()
       
   779     { return decode("戻り値"); }
       
   780 
       
   781     /*! This is in the (quick) index as a link to the main page (index.html)
       
   782      */
       
   783     virtual QCString trMainPage()
       
   784     { return decode("メインページ"); }
       
   785 
       
   786     /*! This is used in references to page that are put in the LaTeX
       
   787      *  documentation. It should be an abbreviation of the word page.
       
   788      */
       
   789     virtual QCString trPageAbbreviation()
       
   790     { return decode("p."); }
       
   791 
       
   792 //////////////////////////////////////////////////////////////////////////
       
   793 // new since 0.49-991003
       
   794 //////////////////////////////////////////////////////////////////////////
       
   795 
       
   796     virtual QCString trSources()
       
   797     {
       
   798       return decode("ソース");
       
   799     }
       
   800     virtual QCString trDefinedAtLineInSourceFile()
       
   801     {
       
   802       return decode(" @1 の @0 行で定義されています。");
       
   803     }
       
   804     virtual QCString trDefinedInSourceFile()
       
   805     {
       
   806       return decode(" @0 で定義されています。");
       
   807     }
       
   808 
       
   809 //////////////////////////////////////////////////////////////////////////
       
   810 // new since 1.0.0
       
   811 //////////////////////////////////////////////////////////////////////////
       
   812 
       
   813     virtual QCString trDeprecated()
       
   814     {
       
   815       return decode("非推奨");
       
   816     }
       
   817 
       
   818 //////////////////////////////////////////////////////////////////////////
       
   819 // new since 1.1.0
       
   820 //////////////////////////////////////////////////////////////////////////
       
   821 
       
   822     /*! this text is put before a collaboration diagram */
       
   823     virtual QCString trCollaborationDiagram(const char *clName)
       
   824     {
       
   825       return (QCString)clName+decode("のコラボレーション図");
       
   826     }
       
   827     /*! this text is put before an include dependency graph */
       
   828     virtual QCString trInclDepGraph(const char *fName)
       
   829     {
       
   830 	return (QCString)fName+decode("のインクルード依存関係図");
       
   831     }
       
   832     /*! header that is put before the list of constructor/destructors. */
       
   833     virtual QCString trConstructorDocumentation()
       
   834     {
       
   835       return decode("コンストラクタとデストラクタ");
       
   836     }
       
   837     /*! Used in the file documentation to point to the corresponding sources. */
       
   838     virtual QCString trGotoSourceCode()
       
   839     {
       
   840       return decode("ソースコードを見る。");
       
   841     }
       
   842     /*! Used in the file sources to point to the corresponding documentation. */
       
   843     virtual QCString trGotoDocumentation()
       
   844     {
       
   845       return decode("説明を見る。");
       
   846     }
       
   847     /*! Text for the \\pre command */
       
   848     virtual QCString trPrecondition()
       
   849     {
       
   850       return decode("事前条件");
       
   851     }
       
   852     /*! Text for the \\post command */
       
   853     virtual QCString trPostcondition()
       
   854     {
       
   855       return decode("事後条件");
       
   856     }
       
   857     /*! Text for the \\invariant command */
       
   858     virtual QCString trInvariant()
       
   859     {
       
   860       return decode("不変");
       
   861     }
       
   862     /*! Text shown before a multi-line variable/enum initialization */
       
   863     virtual QCString trInitialValue()
       
   864     {
       
   865       return decode("初期値:");
       
   866     }
       
   867     /*! Text used the source code in the file index */
       
   868     virtual QCString trCode()
       
   869     {
       
   870       return decode("コード");
       
   871     }
       
   872     virtual QCString trGraphicalHierarchy()
       
   873     {
       
   874       return decode("クラス階層図");
       
   875     }
       
   876     virtual QCString trGotoGraphicalHierarchy()
       
   877     {
       
   878       return decode("クラス階層図を見る。");
       
   879     }
       
   880     virtual QCString trGotoTextualHierarchy()
       
   881     {
       
   882       return decode("クラス階層図を見る。");
       
   883     }
       
   884     virtual QCString trPageIndex()
       
   885     {
       
   886       return decode("ページ索引");
       
   887     }
       
   888 
       
   889 //////////////////////////////////////////////////////////////////////////
       
   890 // new since 1.1.0
       
   891 //////////////////////////////////////////////////////////////////////////
       
   892 
       
   893     virtual QCString trNote()
       
   894     {
       
   895       return decode("覚え書き");
       
   896     }
       
   897     virtual QCString trPublicTypes()
       
   898     {
       
   899       return decode("Public 型");
       
   900     }
       
   901     virtual QCString trPublicAttribs()
       
   902     {
       
   903       if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C"))
       
   904 	{
       
   905 	  return decode("変数");
       
   906 	}
       
   907       else
       
   908 	{
       
   909 	  return decode("Public 変数");
       
   910 	}
       
   911     }
       
   912     virtual QCString trStaticPublicAttribs()
       
   913     {
       
   914       return decode("Static Public 変数");
       
   915     }
       
   916     virtual QCString trProtectedTypes()
       
   917     {
       
   918       return decode("Protected 型");
       
   919     }
       
   920     virtual QCString trProtectedAttribs()
       
   921     {
       
   922       return decode("Protected 変数");
       
   923     }
       
   924     virtual QCString trStaticProtectedAttribs()
       
   925     {
       
   926       return decode("Static Protected 変数");
       
   927     }
       
   928     virtual QCString trPrivateTypes()
       
   929     {
       
   930       return decode("Private 型");
       
   931     }
       
   932     virtual QCString trPrivateAttribs()
       
   933     {
       
   934       return decode("Private 変数");
       
   935     }
       
   936     virtual QCString trStaticPrivateAttribs()
       
   937     {
       
   938       return decode("Static Private 変数");
       
   939     }
       
   940 
       
   941 //////////////////////////////////////////////////////////////////////////
       
   942 // new since 1.1.3
       
   943 //////////////////////////////////////////////////////////////////////////
       
   944 
       
   945     /*! Used as a marker that is put before a todo item */
       
   946     virtual QCString trTodo()
       
   947     {
       
   948       return decode("TODO");
       
   949     }
       
   950     /*! Used as the header of the todo list */
       
   951     virtual QCString trTodoList()
       
   952     {
       
   953       return decode("TODO一覧");
       
   954     }
       
   955 
       
   956 //////////////////////////////////////////////////////////////////////////
       
   957 // new since 1.1.4
       
   958 //////////////////////////////////////////////////////////////////////////
       
   959 
       
   960     virtual QCString trReferencedBy()
       
   961     {
       
   962       return decode("参照元");
       
   963     }
       
   964     virtual QCString trRemarks()
       
   965     {
       
   966       return decode("意見");
       
   967     }
       
   968     virtual QCString trAttention()
       
   969     {
       
   970       return decode("注意");
       
   971     }
       
   972     virtual QCString trInclByDepGraph()
       
   973     {
       
   974 	return decode("このグラフは、どのファイルから直接、間接的に"
       
   975              "インクルードされているかを示しています。");
       
   976     }
       
   977     virtual QCString trSince()
       
   978     {
       
   979       return decode("から");
       
   980     }
       
   981 
       
   982 //////////////////////////////////////////////////////////////////////////
       
   983 // new since 1.1.5
       
   984 //////////////////////////////////////////////////////////////////////////
       
   985 
       
   986     /*! title of the graph legend page */
       
   987     virtual QCString trLegendTitle()
       
   988     {
       
   989       return decode("グラフの凡例");
       
   990     }
       
   991     /*! page explaining how the dot graph's should be interpreted */
       
   992     virtual QCString trLegendDocs()
       
   993     {
       
   994       return
       
   995         decode("このページでは、doxygen で生成されたグラフをどのようにみたらよいかを"
       
   996         "説明します。<p>\n"
       
   997         "次の例を考えてみます。\n"
       
   998         "\\code\n"
       
   999         "/*! 省略されて見えないクラス */\n"
       
  1000         "class Invisible { };\n\n"
       
  1001         "/*! 省略されたクラス(継承関係は隠されている) */\n"
       
  1002         "class Truncated : public Invisible { };\n\n"
       
  1003         "/* doxygen コメントによるドキュメントがないクラス */\n"
       
  1004         "class Undocumented { };\n\n"
       
  1005         "/*! public で継承されたクラス */\n"
       
  1006         "class PublicBase : public Truncated { };\n\n"
       
  1007         "/*! A template class */\n"
       
  1008         "template<class T> class Templ { };\n\n"
       
  1009         "/*! protected で継承されたクラス */\n"
       
  1010         "class ProtectedBase { };\n\n"
       
  1011         "/*! private で継承されたクラス */\n"
       
  1012         "class PrivateBase { };\n\n"
       
  1013         "/*! 継承されたクラスで使われているクラス */\n"
       
  1014         "class Used { };\n\n"
       
  1015         "/*! 複数のクラスを継承している上位クラス */\n"
       
  1016         "class Inherited : public PublicBase,\n"
       
  1017         "                  protected ProtectedBase,\n"
       
  1018         "                  private PrivateBase,\n"
       
  1019         "                  public Undocumented,\n"
       
  1020         "                  public Templ<int>\n"
       
  1021         "{\n"
       
  1022         "  private:\n"
       
  1023         "    Used *m_usedClass;\n"
       
  1024         "};\n"
       
  1025         "\\endcode\n"
       
  1026         "設定ファイル中で、タグ \\c MAX_DOT_GRAPH_HEIGHT が 200 にセットされた"
       
  1027         "場合、次のようなグラフとなります。"
       
  1028         "<p><center><img src=\"graph_legend."+Config_getEnum("DOT_IMAGE_FORMAT")+"\"></center>\n"
       
  1029         "<p>\n"
       
  1030         "上のグラフ内のボックスには次のような意味があります。\n"
       
  1031         "<ul>\n"
       
  1032         "<li>黒く塗りつぶされたボックスは、このグラフに対応する構造体やクラスを"
       
  1033         "表します。\n"
       
  1034         "<li>黒枠のボックスはドキュメントがある構造体やクラスを表します。\n"
       
  1035         "<li>灰色の枠のボックスはドキュメントがない構造体やクラスを表します。\n"
       
  1036         "<li>赤枠のボックスはドキュメントがある構造体やクラスを表しますが、"
       
  1037 	  "指定されたサイズに収まらないために継承・包含関係をすべて図示する"
       
  1038 	  "ことができなかったことを示します。"
       
  1039         "</ul>\n"
       
  1040         "矢印には次のような意味があります。\n"
       
  1041         "<ul>\n"
       
  1042         "<li>青い矢印は二つのクラス間の public 継承関係を示します。\n"
       
  1043         "<li>緑の矢印は protected 継承関係を示します。\n"
       
  1044         "<li>赤の矢印は private 継承関係を示します。\n"
       
  1045         "<li>紫の破線矢印は、そのクラスが他のクラスに含まれていたり、"
       
  1046 	  "利用されていることを示します。また、矢印が指しているクラスや構造体を"
       
  1047 	  "どの変数でアクセスできるかを矢印のラベルとして示しています。\n"
       
  1048         "</ul>\n");
       
  1049     }
       
  1050     /*! text for the link to the legend page */
       
  1051     virtual QCString trLegend()
       
  1052     {
       
  1053       return decode("凡例");
       
  1054     }
       
  1055 
       
  1056 //////////////////////////////////////////////////////////////////////////
       
  1057 // new since 1.2.0
       
  1058 //////////////////////////////////////////////////////////////////////////
       
  1059 
       
  1060     /*! Used as a marker that is put before a test item */
       
  1061     virtual QCString trTest()
       
  1062     {
       
  1063       return decode("テスト");
       
  1064     }
       
  1065     /*! Used as the header of the test list */
       
  1066     virtual QCString trTestList()
       
  1067     {
       
  1068       return decode("テスト一覧");
       
  1069     }
       
  1070 
       
  1071 //////////////////////////////////////////////////////////////////////////
       
  1072 // new since 1.2.1
       
  1073 //////////////////////////////////////////////////////////////////////////
       
  1074 
       
  1075     /*! Used as a section header for KDE-2 IDL methods */
       
  1076     virtual QCString trDCOPMethods()
       
  1077     {
       
  1078       return decode("DCOPメソッド");
       
  1079     }
       
  1080 
       
  1081 //////////////////////////////////////////////////////////////////////////
       
  1082 // new since 1.2.2
       
  1083 //////////////////////////////////////////////////////////////////////////
       
  1084 
       
  1085     /*! Used as a section header for IDL properties */
       
  1086     virtual QCString trProperties()
       
  1087     {
       
  1088       return decode("プロパティ");
       
  1089     }
       
  1090     /*! Used as a section header for IDL property documentation */
       
  1091     virtual QCString trPropertyDocumentation()
       
  1092     {
       
  1093       return decode("プロパティ");
       
  1094     }
       
  1095 
       
  1096 
       
  1097 //////////////////////////////////////////////////////////////////////////
       
  1098 // new since 1.2.4
       
  1099 //////////////////////////////////////////////////////////////////////////
       
  1100 
       
  1101     /*! Used for Java interfaces in the summary section of Java packages */
       
  1102     virtual QCString trInterfaces()
       
  1103     {
       
  1104       return decode("インターフェース");
       
  1105     }
       
  1106     /*! Used for Java classes in the summary section of Java packages */
       
  1107     virtual QCString trClasses()
       
  1108     {
       
  1109       if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C"))
       
  1110 	{
       
  1111 	  return decode("データ構造");
       
  1112 	}
       
  1113       else
       
  1114 	{
       
  1115 	  return decode("クラス");
       
  1116 	}
       
  1117     }
       
  1118     /*! Used as the title of a Java package */
       
  1119     virtual QCString trPackage(const char *name)
       
  1120     {
       
  1121       return (QCString)decode("パッケージ ")+name;
       
  1122     }
       
  1123     /*! Title of the package index page */
       
  1124     virtual QCString trPackageList()
       
  1125     {
       
  1126       return decode("パッケージ一覧");
       
  1127     }
       
  1128     /*! The description of the package index page */
       
  1129     virtual QCString trPackageListDescription()
       
  1130     {
       
  1131       return decode("これはパッケージ一覧です。");
       
  1132     }
       
  1133     /*! The link name in the Quick links header for each page */
       
  1134     virtual QCString trPackages()
       
  1135     {
       
  1136       return decode("パッケージ");
       
  1137     }
       
  1138     /*! Used as a chapter title for Latex & RTF output */
       
  1139     virtual QCString trPackageDocumentation()
       
  1140     {
       
  1141       return decode("パッケージ");
       
  1142     }
       
  1143     /*! Text shown before a multi-line define */
       
  1144     virtual QCString trDefineValue()
       
  1145     {
       
  1146       return decode("値:");
       
  1147     }
       
  1148 
       
  1149 
       
  1150 //////////////////////////////////////////////////////////////////////////
       
  1151 // new since 1.2.5
       
  1152 //////////////////////////////////////////////////////////////////////////
       
  1153 
       
  1154     /*! Used as a marker that is put before a \\bug item */
       
  1155     virtual QCString trBug()
       
  1156     {
       
  1157       return decode("バグ");
       
  1158     }
       
  1159     /*! Used as the header of the bug list */
       
  1160     virtual QCString trBugList()
       
  1161     {
       
  1162       return decode("バグ一覧");
       
  1163     }
       
  1164 
       
  1165 //////////////////////////////////////////////////////////////////////////
       
  1166 // new since 1.2.6
       
  1167 //////////////////////////////////////////////////////////////////////////
       
  1168 
       
  1169     /*! Used as ansicpg for RTF file
       
  1170      *
       
  1171      * The following table shows the correlation of Charset name, Charset Value and
       
  1172      * <pre>
       
  1173      * Codepage number:
       
  1174      * Charset Name       Charset Value(hex)  Codepage number
       
  1175      * ------------------------------------------------------
       
  1176      * DEFAULT_CHARSET           1 (x01)
       
  1177      * SYMBOL_CHARSET            2 (x02)
       
  1178      * OEM_CHARSET             255 (xFF)
       
  1179      * ANSI_CHARSET              0 (x00)            1252
       
  1180      * RUSSIAN_CHARSET         204 (xCC)            1251
       
  1181      * EE_CHARSET              238 (xEE)            1250
       
  1182      * GREEK_CHARSET           161 (xA1)            1253
       
  1183      * TURKISH_CHARSET         162 (xA2)            1254
       
  1184      * BALTIC_CHARSET          186 (xBA)            1257
       
  1185      * HEBREW_CHARSET          177 (xB1)            1255
       
  1186      * ARABIC _CHARSET         178 (xB2)            1256
       
  1187      * SHIFTJIS_CHARSET        128 (x80)             932
       
  1188      * HANGEUL_CHARSET         129 (x81)             949
       
  1189      * GB2313_CHARSET          134 (x86)             936
       
  1190      * CHINESEBIG5_CHARSET     136 (x88)             950
       
  1191      * </pre>
       
  1192      *
       
  1193      */
       
  1194     virtual QCString trRTFansicp()
       
  1195     {
       
  1196       return "932";
       
  1197     }
       
  1198 
       
  1199 
       
  1200     /*! Used as ansicpg for RTF fcharset
       
  1201      *  \see trRTFansicp() for a table of possible values.
       
  1202      */
       
  1203     virtual QCString trRTFCharSet()
       
  1204     {
       
  1205       return "128";
       
  1206     }
       
  1207 
       
  1208     /*! Used as header RTF general index */
       
  1209     virtual QCString trRTFGeneralIndex()
       
  1210     {
       
  1211       return decode("索引");
       
  1212     }
       
  1213 
       
  1214     /*! This is used for translation of the word that will possibly
       
  1215      *  be followed by a single name or by a list of names
       
  1216      *  of the category.
       
  1217      */
       
  1218     virtual QCString trClass(bool first_capital, bool singular)
       
  1219     {
       
  1220       first_capital = first_capital;
       
  1221       singular = singular;
       
  1222       QCString result(decode("クラス"));
       
  1223       return result;
       
  1224     }
       
  1225 
       
  1226     /*! This is used for translation of the word that will possibly
       
  1227      *  be followed by a single name or by a list of names
       
  1228      *  of the category.
       
  1229      */
       
  1230     virtual QCString trFile(bool first_capital, bool singular)
       
  1231     {
       
  1232       first_capital = first_capital;
       
  1233       singular = singular;
       
  1234       QCString result(decode("ファイル"));
       
  1235       return result;
       
  1236     }
       
  1237 
       
  1238     /*! This is used for translation of the word that will possibly
       
  1239      *  be followed by a single name or by a list of names
       
  1240      *  of the category.
       
  1241      */
       
  1242     virtual QCString trNamespace(bool first_capital, bool singular)
       
  1243     {
       
  1244       first_capital = first_capital;
       
  1245       singular = singular;
       
  1246       QCString result(decode("ネームスペース"));
       
  1247       return result;
       
  1248     }
       
  1249 
       
  1250     /*! This is used for translation of the word that will possibly
       
  1251      *  be followed by a single name or by a list of names
       
  1252      *  of the category.
       
  1253      */
       
  1254     virtual QCString trGroup(bool first_capital, bool singular)
       
  1255     {
       
  1256       first_capital = first_capital;
       
  1257       singular = singular;
       
  1258       QCString result(decode("グループ"));
       
  1259       return result;
       
  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     virtual QCString trPage(bool first_capital, bool singular)
       
  1267     {
       
  1268       first_capital = first_capital;
       
  1269       singular = singular;
       
  1270       QCString result(decode("ページ"));
       
  1271       return result;
       
  1272     }
       
  1273 
       
  1274     /*! This is used for translation of the word that will possibly
       
  1275      *  be followed by a single name or by a list of names
       
  1276      *  of the category.
       
  1277      */
       
  1278     virtual QCString trMember(bool first_capital, bool singular)
       
  1279     {
       
  1280       first_capital = first_capital;
       
  1281       singular = singular;
       
  1282       QCString result(decode("メンバ"));
       
  1283       return result;
       
  1284     }
       
  1285 
       
  1286     /*! This is used for translation of the word that will possibly
       
  1287      *  be followed by a single name or by a list of names
       
  1288      *  of the category.
       
  1289      */
       
  1290     virtual QCString trField(bool first_capital, bool singular)
       
  1291     {
       
  1292       first_capital = first_capital;
       
  1293       singular = singular;
       
  1294       QCString result(decode("フィールド"));
       
  1295       return result;
       
  1296     }
       
  1297 
       
  1298     /*! This is used for translation of the word that will possibly
       
  1299      *  be followed by a single name or by a list of names
       
  1300      *  of the category.
       
  1301      */
       
  1302     virtual QCString trGlobal(bool first_capital, bool singular)
       
  1303     {
       
  1304       first_capital = first_capital;
       
  1305       singular = singular;
       
  1306       QCString result(decode("グローバル"));
       
  1307       return result;
       
  1308     }
       
  1309 
       
  1310 //////////////////////////////////////////////////////////////////////////
       
  1311 // new since 1.2.7
       
  1312 //////////////////////////////////////////////////////////////////////////
       
  1313 
       
  1314     /*! This text is generated when the \\author command is used and
       
  1315      *  for the author section in man pages. */
       
  1316     virtual QCString trAuthor(bool first_capital, bool singular)
       
  1317     {
       
  1318       first_capital = first_capital;
       
  1319       singular = singular;
       
  1320       QCString result(decode("作者"));
       
  1321       return result;
       
  1322     }
       
  1323 
       
  1324 //////////////////////////////////////////////////////////////////////////
       
  1325 // new since 1.2.11
       
  1326 //////////////////////////////////////////////////////////////////////////
       
  1327 
       
  1328     /*! This text is put before the list of members referenced by a member
       
  1329      */
       
  1330     virtual QCString trReferences()
       
  1331     {
       
  1332       return decode("参照先");
       
  1333     }
       
  1334 
       
  1335 //////////////////////////////////////////////////////////////////////////
       
  1336 // new since 1.2.13
       
  1337 //////////////////////////////////////////////////////////////////////////
       
  1338 
       
  1339     /*! used in member documentation blocks to produce a list of
       
  1340      *  members that are implemented by this one.
       
  1341      */
       
  1342     virtual QCString trImplementedFromList(int numEntries)
       
  1343     {
       
  1344       return trWriteList(numEntries)+decode("を実装しています。");
       
  1345     }
       
  1346 
       
  1347     /*! used in member documentation blocks to produce a list of
       
  1348      *  all members that implement this abstract member.
       
  1349      */
       
  1350     virtual QCString trImplementedInList(int numEntries)
       
  1351     {
       
  1352       return trWriteList(numEntries)+decode("で実装されています。");
       
  1353     }
       
  1354 //////////////////////////////////////////////////////////////////////////
       
  1355 // new since 1.2.16
       
  1356 //////////////////////////////////////////////////////////////////////////
       
  1357 
       
  1358     /*! used in RTF documentation as a heading for the Table
       
  1359      *  of Contents.
       
  1360      */
       
  1361     virtual QCString trRTFTableOfContents()
       
  1362     {
       
  1363       return decode("目次");
       
  1364     }
       
  1365 
       
  1366 //////////////////////////////////////////////////////////////////////////
       
  1367 // new since 1.2.17
       
  1368 //////////////////////////////////////////////////////////////////////////
       
  1369 
       
  1370     /*! Used as the header of the list of item that have been 
       
  1371      *  flagged deprecated 
       
  1372      */
       
  1373     virtual QCString trDeprecatedList()
       
  1374     {
       
  1375       return decode("非推奨一覧");
       
  1376     }
       
  1377 
       
  1378 //////////////////////////////////////////////////////////////////////////
       
  1379 // new since 1.2.18
       
  1380 //////////////////////////////////////////////////////////////////////////
       
  1381 
       
  1382     /*! Used as a header for declaration section of the events found in 
       
  1383      * a C# program
       
  1384      */
       
  1385     virtual QCString trEvents()
       
  1386     {
       
  1387       return decode("イベント");
       
  1388     }
       
  1389     /*! Header used for the documentation section of a class' events. */
       
  1390     virtual QCString trEventDocumentation()
       
  1391     {
       
  1392       return decode("イベント");
       
  1393     }
       
  1394 
       
  1395 //////////////////////////////////////////////////////////////////////////
       
  1396 // new since 1.3
       
  1397 //////////////////////////////////////////////////////////////////////////
       
  1398 
       
  1399     /*! Used as a heading for a list of Java class types with package scope.
       
  1400      */
       
  1401     virtual QCString trPackageTypes()
       
  1402     { 
       
  1403       return decode("パッケージ内の型定義");
       
  1404     }
       
  1405     /*! Used as a heading for a list of Java class functions with package 
       
  1406      * scope. 
       
  1407      */
       
  1408     virtual QCString trPackageMembers()
       
  1409     { 
       
  1410       return decode("関数");
       
  1411     }
       
  1412     /*! Used as a heading for a list of static Java class functions with 
       
  1413      *  package scope.
       
  1414      */
       
  1415     virtual QCString trStaticPackageMembers()
       
  1416     { 
       
  1417       return decode("スタティック関数");
       
  1418     }
       
  1419     /*! Used as a heading for a list of Java class variables with package 
       
  1420      * scope.
       
  1421      */
       
  1422     virtual QCString trPackageAttribs()
       
  1423     { 
       
  1424       return decode("変数");
       
  1425     }
       
  1426     /*! Used as a heading for a list of static Java class variables with 
       
  1427      * package scope.
       
  1428      */
       
  1429     virtual QCString trStaticPackageAttribs()
       
  1430     { 
       
  1431       return decode("スタティック変数");
       
  1432     }
       
  1433     
       
  1434 //////////////////////////////////////////////////////////////////////////
       
  1435 // new since 1.3.1
       
  1436 //////////////////////////////////////////////////////////////////////////
       
  1437 
       
  1438     /*! Used in the quick index of a class/file/namespace member list page 
       
  1439      *  to link to the unfiltered list of all members.
       
  1440      */
       
  1441     virtual QCString trAll()
       
  1442     {
       
  1443       return decode("全て");
       
  1444     }
       
  1445     /*! Put in front of the call graph for a function. */
       
  1446     virtual QCString trCallGraph()
       
  1447     {
       
  1448       return decode("関数の呼び出しグラフ:");
       
  1449     }
       
  1450 
       
  1451 //////////////////////////////////////////////////////////////////////////
       
  1452 // new since 1.3.3
       
  1453 //////////////////////////////////////////////////////////////////////////
       
  1454 
       
  1455     /*! When the search engine is enabled this text is put in the header 
       
  1456      *  of each page before the field where one can enter the text to search 
       
  1457      *  for. 
       
  1458      */
       
  1459     virtual QCString trSearchForIndex()
       
  1460     {
       
  1461       return decode("検索");
       
  1462     }
       
  1463     /*! This string is used as the title for the page listing the search
       
  1464      *  results.
       
  1465      */
       
  1466     virtual QCString trSearchResultsTitle()
       
  1467     {
       
  1468       return decode("検索結果");
       
  1469     }
       
  1470     /*! This string is put just before listing the search results. The
       
  1471      *  text can be different depending on the number of documents found.
       
  1472      *  Inside the text you can put the special marker $num to insert
       
  1473      *  the number representing the actual number of search results.
       
  1474      *  The @a numDocuments parameter can be either 0, 1 or 2, where the 
       
  1475      *  value 2 represents 2 or more matches. HTML markup is allowed inside
       
  1476      *  the returned string.
       
  1477      */
       
  1478     virtual QCString trSearchResults(int numDocuments)
       
  1479     {
       
  1480       if (numDocuments==0)
       
  1481       {
       
  1482         return decode("入力された条件にマッチするドキュメントがありませんでした.");
       
  1483       }
       
  1484       else if (numDocuments==1)
       
  1485       {
       
  1486         return decode("入力された条件にマッチするドキュメントが <b>1</b> 件みつかりました.");
       
  1487       }
       
  1488       else 
       
  1489       {
       
  1490         return decode("入力された条件にマッチするドキュメントが <b>$num</b> 件みつかりました. "
       
  1491                       "最も一致しているものから表示されます.");
       
  1492       }
       
  1493     }
       
  1494     /*! This string is put before the list of matched words, for each search 
       
  1495      *  result. What follows is the list of words that matched the query.
       
  1496      */
       
  1497     virtual QCString trSearchMatches()
       
  1498     {
       
  1499       return decode("マッチした単語:");
       
  1500     }
       
  1501 
       
  1502 //////////////////////////////////////////////////////////////////////////
       
  1503 // new since 1.3.8
       
  1504 //////////////////////////////////////////////////////////////////////////
       
  1505 
       
  1506     /*! This is used in HTML as the title of page with source code for file filename
       
  1507      */
       
  1508     virtual QCString trSourceFile(QCString& filename)
       
  1509     {
       
  1510       return filename + decode(" ソースファイル");
       
  1511     }
       
  1512 
       
  1513 //////////////////////////////////////////////////////////////////////////
       
  1514 // new since 1.3.9
       
  1515 //////////////////////////////////////////////////////////////////////////
       
  1516 
       
  1517     /*! This is used as the name of the chapter containing the directory
       
  1518      *  hierarchy.
       
  1519      */
       
  1520     virtual QCString trDirIndex()
       
  1521     { return decode("ディレクトリ索引"); }
       
  1522 
       
  1523     /*! This is used as the name of the chapter containing the documentation
       
  1524      *  of the directories.
       
  1525      */
       
  1526     virtual QCString trDirDocumentation()
       
  1527     { return decode("ディレクトリ構成"); }
       
  1528 
       
  1529     /*! This is used as the title of the directory index and also in the
       
  1530      *  Quick links of an HTML page, to link to the directory hierarchy.
       
  1531      */
       
  1532     virtual QCString trDirectories()
       
  1533     { return decode("ディレクトリ"); }
       
  1534 
       
  1535     /*! This returns a sentences that introduces the directory hierarchy. 
       
  1536      *  and the fact that it is sorted alphabetically per level
       
  1537      */
       
  1538     virtual QCString trDirDescription()
       
  1539     { return decode("このディレクトリ一覧はおおまかにはソートされていますが、"
       
  1540 		    "完全にアルファベット順でソートされてはいません。");
       
  1541     }
       
  1542 
       
  1543     /*! This returns the title of a directory page. The name of the
       
  1544      *  directory is passed via \a dirName.
       
  1545      */
       
  1546     virtual QCString trDirReference(const char *dirName)
       
  1547     { QCString result=dirName; result+=decode(" ディレクトリリファレンス"); return result; }
       
  1548 
       
  1549     /*! This returns the word directory with or without starting capital
       
  1550      *  (\a first_capital) and in sigular or plural form (\a singular).
       
  1551      */
       
  1552     virtual QCString trDir(bool, bool)
       
  1553     { 
       
  1554       return decode("ディレクトリ");
       
  1555     }
       
  1556 
       
  1557 //////////////////////////////////////////////////////////////////////////
       
  1558 // new since 1.4.1
       
  1559 //////////////////////////////////////////////////////////////////////////
       
  1560 
       
  1561     /*! This text is added to the documentation when the \\overload command
       
  1562      *  is used for a overloaded function.
       
  1563      */
       
  1564     virtual QCString trOverloadText()
       
  1565     {
       
  1566        return decode("これはオーバーロードされたメンバ関数です。"
       
  1567 		     "利便性のために用意されています。"
       
  1568 		     "元の関数との違いは引き数のみです。");
       
  1569     }
       
  1570 
       
  1571 //////////////////////////////////////////////////////////////////////////
       
  1572 // new since 1.4.6
       
  1573 //////////////////////////////////////////////////////////////////////////
       
  1574 
       
  1575     /*! This is used to introduce a caller (or called-by) graph */
       
  1576     virtual QCString trCallerGraph()
       
  1577     {
       
  1578       // return "Here is the caller graph for this function:";
       
  1579       return decode("呼出しグラフ:");
       
  1580     }
       
  1581 
       
  1582     /*! This is used in the documentation of a file/namespace before the list
       
  1583      *  of documentation blocks for enumeration values
       
  1584      */
       
  1585     virtual QCString trEnumerationValueDocumentation()
       
  1586     { return decode("列挙型"); }
       
  1587 
       
  1588 
       
  1589 //////////////////////////////////////////////////////////////////////////
       
  1590 // new since 1.5.4 (mainly for Fortran)
       
  1591 //////////////////////////////////////////////////////////////////////////
       
  1592     
       
  1593     /*! header that is put before the list of member subprograms (Fortran). */
       
  1594     virtual QCString trMemberFunctionDocumentationFortran()
       
  1595     { return decode("関数/サブルーチン"); }
       
  1596 
       
  1597     /*! This is put above each page as a link to the list of annotated data types (Fortran). */    
       
  1598     virtual QCString trCompoundListFortran()
       
  1599     { return decode("データ型"); }
       
  1600 
       
  1601     /*! This is put above each page as a link to all members of compounds (Fortran). */
       
  1602     virtual QCString trCompoundMembersFortran()
       
  1603     { return decode("データフィールド"); }
       
  1604     
       
  1605     /*! This is an introduction to the annotated compound list (Fortran). */
       
  1606     virtual QCString trCompoundListDescriptionFortran()
       
  1607     { return decode("これはデータ型の一覧です"); }
       
  1608     
       
  1609     /*! This is an introduction to the page with all data types (Fortran). */
       
  1610     virtual QCString trCompoundMembersDescriptionFortran(bool extractAll)
       
  1611     {
       
  1612 	  QCString result=decode("これは");
       
  1613 	  result+=decode("フィールドの一覧です。それぞれ");
       
  1614 	  if (extractAll)
       
  1615 	  {
       
  1616 	  	result+=decode("が属しているデータ型");
       
  1617 	  }
       
  1618 	  result+=decode("の説明へリンクしています。");
       
  1619 	  return result;
       
  1620     }
       
  1621 	
       
  1622     /*! This is used in LaTeX as the title of the chapter with the 
       
  1623      * annotated compound index (Fortran).
       
  1624      */
       
  1625     virtual QCString trCompoundIndexFortran()
       
  1626     { return decode("データ型索引"); }
       
  1627 
       
  1628     /*! This is used in LaTeX as the title of the chapter containing
       
  1629      *  the documentation of all data types (Fortran).
       
  1630      */
       
  1631     virtual QCString trTypeDocumentation()
       
  1632     { return decode("データ型"); }
       
  1633 
       
  1634     /*! This is used in the documentation of a file as a header before the 
       
  1635      *  list of (global) subprograms (Fortran).
       
  1636      */
       
  1637     virtual QCString trSubprograms()
       
  1638     { return decode("関数/サブルーチン"); }
       
  1639 
       
  1640 
       
  1641     /*! This is used in the documentation of a file/namespace before the list 
       
  1642      *  of documentation blocks for subprograms (Fortran)
       
  1643      */
       
  1644     virtual QCString trSubprogramDocumentation()
       
  1645     { return decode("関数/サブルーチン"); }
       
  1646 
       
  1647     /*! This is used in the documentation of a file/namespace/group before 
       
  1648      *  the list of links to documented compounds (Fortran)
       
  1649      */
       
  1650      virtual QCString trDataTypes()
       
  1651     { return decode("データ型"); }
       
  1652     
       
  1653     /*! used as the title of page containing all the index of all modules (Fortran). */
       
  1654     virtual QCString trModulesList()
       
  1655     { return decode("モジュール一覧"); }
       
  1656 
       
  1657     /*! used as an introduction to the modules list (Fortran) */
       
  1658     virtual QCString trModulesListDescription(bool extractAll)
       
  1659     {
       
  1660       QCString result=decode("これは");
       
  1661       if (!extractAll) result+=decode("生成された");
       
  1662       result+=decode("モジュール一覧です");
       
  1663       return result;
       
  1664     }
       
  1665 
       
  1666     /*! used as the title of the HTML page of a module/type (Fortran) */
       
  1667     virtual QCString trCompoundReferenceFortran(const char *clName,
       
  1668                                     ClassDef::CompoundType compType,
       
  1669                                     bool isTemplate)
       
  1670     {
       
  1671       QCString result="";
       
  1672       switch(compType)
       
  1673       {
       
  1674         case ClassDef::Class:      result+=decode("モジュール "); break;
       
  1675         case ClassDef::Struct:     result+=decode("TYPE "); break;
       
  1676         case ClassDef::Union:      result+=decode("共用体 "); break;
       
  1677         case ClassDef::Interface:  result+=decode("インターフェース "); break;
       
  1678         case ClassDef::Protocol:   result+=decode("プロトコル "); break;
       
  1679         case ClassDef::Category:   result+=decode("カテゴリ "); break;
       
  1680         case ClassDef::Exception:  result+=decode("例外 "); break;
       
  1681       }
       
  1682       if (isTemplate) result += decode("テンプレート ");
       
  1683       result+=(QCString)clName;
       
  1684       return result;
       
  1685     }
       
  1686     /*! used as the title of the HTML page of a module (Fortran) */
       
  1687     virtual QCString trModuleReference(const char *namespaceName)
       
  1688     {
       
  1689       QCString result=namespaceName;
       
  1690       result+=decode("モジュール");        
       
  1691       return result;
       
  1692     }
       
  1693     
       
  1694     /*! This is put above each page as a link to all members of modules. (Fortran) */
       
  1695     virtual QCString trModulesMembers()
       
  1696     { return decode("モジュールメンバ"); }
       
  1697 
       
  1698     /*! This is an introduction to the page with all modules members (Fortran) */
       
  1699     virtual QCString trModulesMemberDescription(bool extractAll)
       
  1700     { 
       
  1701       QCString result=decode("これはモジュールメンバ一覧です。それぞれ ");
       
  1702       if (extractAll) 
       
  1703       {
       
  1704         result+=decode("属しているモジュール");
       
  1705       }
       
  1706 	  result+=decode("の説明へリンクしています。");
       
  1707       return result;
       
  1708     }
       
  1709 
       
  1710     /*! This is used in LaTeX as the title of the chapter with the 
       
  1711      *  index of all modules (Fortran).
       
  1712      */
       
  1713     virtual QCString trModulesIndex()
       
  1714     { return decode("モジュール索引"); }
       
  1715     
       
  1716     /*! This is used for translation of the word that will possibly
       
  1717      *  be followed by a single name or by a list of names 
       
  1718      *  of the category.
       
  1719      */
       
  1720     virtual QCString trModule(bool /*first_capital*/, bool /*singular*/)
       
  1721     {       
       
  1722       return decode("モジュール");
       
  1723     }
       
  1724     /*! This is put at the bottom of a module documentation page and is
       
  1725      *  followed by a list of files that were used to generate the page.
       
  1726      */
       
  1727     virtual QCString trGeneratedFromFilesFortran(ClassDef::CompoundType compType,
       
  1728         bool /*single*/)
       
  1729     { // here s is one of " Module", " Struct" or " Union"
       
  1730       // single is true implies a single file
       
  1731       QCString result="";
       
  1732       switch(compType)
       
  1733       {
       
  1734         case ClassDef::Class:      result+=decode("モジュール"); break;
       
  1735         case ClassDef::Struct:     result+=decode("TYPE"); break;
       
  1736         case ClassDef::Union:      result+=decode("共用体"); break;
       
  1737         case ClassDef::Interface:  result+=decode("インターフェース"); break;
       
  1738         case ClassDef::Protocol:   result+=decode("プロトコル"); break;
       
  1739         case ClassDef::Category:   result+=decode("カテゴリ"); break;
       
  1740         case ClassDef::Exception:  result+=decode("例外"); break;
       
  1741       }
       
  1742       result+=decode(decode("の説明は次のファイルから生成されました:"));
       
  1743       return result;
       
  1744     }
       
  1745     /*! This is used for translation of the word that will possibly
       
  1746      *  be followed by a single name or by a list of names 
       
  1747      *  of the category.
       
  1748      */
       
  1749     virtual QCString trType(bool /*first_capital*/, bool /*singular*/)
       
  1750     { 
       
  1751       QCString result = decode("TYPE");
       
  1752       return result; 
       
  1753     }
       
  1754     /*! This is used for translation of the word that will possibly
       
  1755      *  be followed by a single name or by a list of names 
       
  1756      *  of the category.
       
  1757      */
       
  1758     virtual QCString trSubprogram(bool /*first_capital*/, bool /*singular*/)
       
  1759     { 
       
  1760       QCString result = decode("サブプログラム");
       
  1761       return result; 
       
  1762     }
       
  1763 
       
  1764     /*! C# Type Constraint list */
       
  1765     virtual QCString trTypeConstraints()
       
  1766     {
       
  1767       return decode("型制約");
       
  1768     }
       
  1769 
       
  1770 };
       
  1771 
       
  1772 #endif