summaryrefslogtreecommitdiffstats
path: root/src/translator_jp.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/translator_jp.h')
-rw-r--r--src/translator_jp.h86
1 files changed, 74 insertions, 12 deletions
diff --git a/src/translator_jp.h b/src/translator_jp.h
index 2ed60ff..ec74b1e 100644
--- a/src/translator_jp.h
+++ b/src/translator_jp.h
@@ -29,7 +29,7 @@
#ifndef TRANSLATOR_JP_H
#define TRANSLATOR_JP_H
-class TranslatorJapanese : public TranslatorAdapter_1_3_3
+class TranslatorJapanese : public Translator
{
private:
/*! The decode() can change euc into sjis */
@@ -600,13 +600,13 @@ class TranslatorJapanese : public TranslatorAdapter_1_3_3
case ClassDef::Class: result+=decode("クラス "); break;
case ClassDef::Struct: result+=decode("構造体 "); break;
case ClassDef::Union: result+=decode("共用体 "); break;
- case ClassDef::Interface: result+=decode("インタフェース"); break;
- case ClassDef::Protocol: result+=decode("Protocol"); break; // translate me!
- case ClassDef::Category: result+=decode("Category"); break; // translate me!
- case ClassDef::Exception: result+=decode("例外"); break; //TODO:fixme
+ case ClassDef::Interface: result+=decode("インタフェース "); break;
+ case ClassDef::Protocol: result+=decode("プロトコル "); break;
+ case ClassDef::Category: result+=decode("カテゴリ "); break;
+ case ClassDef::Exception: result+=decode("例外 "); break;
}
- if (isTemplate) result+=decode(" テンプレート");
- result+=(QCString)clName;
+ if (isTemplate) result+=decode("テンプレート ");
+ result+=(QCString)clName;
return result;
}
@@ -759,9 +759,9 @@ class TranslatorJapanese : public TranslatorAdapter_1_3_3
case ClassDef::Struct: result+=decode("構造体"); break;
case ClassDef::Union: result+=decode("共用体"); break;
case ClassDef::Interface: result+=decode("インタフェース"); break;
- case ClassDef::Protocol: result+=decode("Protocol"); break; // translate me!
- case ClassDef::Category: result+=decode("Category"); break; // translate me!
- case ClassDef::Exception: result+=decode("例外"); break; //TODO:fixme
+ case ClassDef::Protocol: result+=decode("プロトコル"); break;
+ case ClassDef::Category: result+=decode("カテゴリ"); break;
+ case ClassDef::Exception: result+=decode("例外"); break;
}
result+=decode("の説明は次のファイルから生成されました:");
return result;
@@ -1341,7 +1341,7 @@ class TranslatorJapanese : public TranslatorAdapter_1_3_3
*/
virtual QCString trImplementedFromList(int numEntries)
{
- return trWriteList(numEntries)+decode("に実装されています")+".";
+ return trWriteList(numEntries)+decode("を実装しています")+".";
}
/*! used in member documentation blocks to produce a list of
@@ -1349,7 +1349,7 @@ class TranslatorJapanese : public TranslatorAdapter_1_3_3
*/
virtual QCString trImplementedInList(int numEntries)
{
- return trWriteList(numEntries)+decode("を実装しています")+".";
+ return trWriteList(numEntries)+decode("で実装されています")+".";
}
//////////////////////////////////////////////////////////////////////////
// new since 1.2.16
@@ -1447,5 +1447,67 @@ class TranslatorJapanese : public TranslatorAdapter_1_3_3
{
return decode("関数の呼び出しグラフ:");
}
+
+//////////////////////////////////////////////////////////////////////////
+// new since 1.3.3
+//////////////////////////////////////////////////////////////////////////
+
+ /*! When the search engine is enabled this text is put in the header
+ * of each page before the field where one can enter the text to search
+ * for.
+ */
+ virtual QCString trSearchForIndex()
+ {
+ return decode("検索");
+ }
+ /*! This string is used as the title for the page listing the search
+ * results.
+ */
+ virtual QCString trSearchResultsTitle()
+ {
+ return decode("検索結果");
+ }
+ /*! This string is put just before listing the search results. The
+ * text can be different depending on the number of documents found.
+ * Inside the text you can put the special marker $num to insert
+ * the number representing the actual number of search results.
+ * The @a numDocuments parameter can be either 0, 1 or 2, where the
+ * value 2 represents 2 or more matches. HTML markup is allowed inside
+ * the returned string.
+ */
+ virtual QCString trSearchResults(int numDocuments)
+ {
+ if (numDocuments==0)
+ {
+ return decode("入力された条件にマッチするドキュメントがありませんでした.");
+ }
+ else if (numDocuments==1)
+ {
+ return decode("入力された条件にマッチするドキュメントが <b>1</b> 件みつかりました.");
+ }
+ else
+ {
+ return decode("入力された条件にマッチするドキュメントが <b>$num</b> 件みつかりました. "
+ "最も一致しているものから表示されます.");
+ }
+ }
+ /*! This string is put before the list of matched words, for each search
+ * result. What follows is the list of words that matched the query.
+ */
+ virtual QCString trSearchMatches()
+ {
+ return decode("マッチした単語:");
+ }
+
+//////////////////////////////////////////////////////////////////////////
+// new since 1.3.8
+//////////////////////////////////////////////////////////////////////////
+
+ /*! This is used in HTML as the title of page with source code for file filename
+ */
+ virtual QCString trSourceFile(QCString& filename)
+ {
+ return filename + decode(" ソースファイル");
+ }
};
#endif