Skip to content

Commit

Permalink
More translations
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Mar 6, 2014
1 parent c3ad36b commit 21cb9a8
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 18 deletions.
17 changes: 14 additions & 3 deletions _po/ja/reference/plugin/handler/index.po
Expand Up @@ -336,7 +336,7 @@ msgstr ""
msgid ""
"This is the common base class of any handler.\n"
"Your plugin's handler class must inherit this."
msgstr ""
msgstr "これはすべてのハンドラーに共通の基底クラスです。独自プラグインのハンドラークラスは、このクラスを継承する必要があります。"

msgid "#### `#handle(message)` {#classes-Droonga-Handler-handle}"
msgstr ""
Expand All @@ -346,12 +346,17 @@ msgid ""
"sage) wrapped task message.\n"
"You can read the request information via its methods."
msgstr ""
"このメソッドは、[`Droonga::HandlerMessage`](#classes-Droonga-HandlerMessage)でラップされたタスク"
"メッセージを受け取ります。\n"
"プラグインは、このタスクメッセージのメソッドからリクエストの情報を読み取る事ができます。"

msgid ""
"In this base class, this method is defined as just a placeholder and it does n"
"othing.\n"
"To process messages, you have to override it by yours, like following:"
msgstr ""
"この基底クラスにおいて、このメソッドは何もしない単なるプレースホルダとして定義されています。\n"
"メッセージを処理するには、以下のようにメソッドを再定義して下さい:"

msgid ""
"~~~ruby\n"
Expand All @@ -373,27 +378,31 @@ msgid ""
"It will be used to build the body of the unified response, and delivered to th"
"e Protocol Adapter."
msgstr ""
"Droonga Engineは、このメソッドの戻り値を処理の結果として扱います。\n"
"結果の値は、レスポンスのbodyの組み立てに使われ、Protocol Adapterに送られます。"

msgid "### `Droonga::HandlerMessage` {#classes-Droonga-HandlerMessage}"
msgstr ""

msgid "This is a wrapper for a task message."
msgstr ""
msgstr "このクラスはタスクメッセージに対するラッパーとして働きます。"

msgid ""
"The Droonga Engine analyzes a transferred request message, and build multiple "
"task massages to process the request.\n"
"A task massage has some information: a request, a step, descendant tasks, and "
"so on."
msgstr ""
"Droonga Engineは送られてきたリクエストのメッセージを解析し、そのリクエストを処理するための複数のタスクメッセージを作成します。\n"
"1つのタスクメッセージは、リクエストの実体、step、後続するタスクの一覧などの情報を持ちます。"

msgid "#### `#request` {#classes-Droonga-HandlerMessage-request}"
msgstr ""

msgid ""
"This returns the request message.\n"
"You can read request body via this method. For example:"
msgstr ""
msgstr "このメソッドはリクエストメッセージを返します。例:"

msgid ""
"~~~ruby\n"
Expand All @@ -417,6 +426,8 @@ msgid ""
"partition.\n"
"See the [class reference of Rroonga][Groonga::Context]."
msgstr ""
"そのパーティションのストレージに対応する`Groonga::Context`のインスタンスへの参照。\n"
"[Rroongaのクラスリファレンス][Groonga::Context]も併せて参照して下さい"

msgid ""
"You can use any feature of Rroonga via `@context`.\n"
Expand Down
28 changes: 13 additions & 15 deletions ja/reference/plugin/handler/index.md
Expand Up @@ -156,16 +156,15 @@ stepがストレージ内の情報を変更し得るかどうかを記述しま

### `Droonga::Handler` {#classes-Droonga-Handler}

This is the common base class of any handler.
Your plugin's handler class must inherit this.
これはすべてのハンドラーに共通の基底クラスです。独自プラグインのハンドラークラスは、このクラスを継承する必要があります。

#### `#handle(message)` {#classes-Droonga-Handler-handle}

This method receives a [`Droonga::HandlerMessage`](#classes-Droonga-HandlerMessage) wrapped task message.
You can read the request information via its methods.
このメソッドは、[`Droonga::HandlerMessage`](#classes-Droonga-HandlerMessage)でラップされたタスクメッセージを受け取ります。
プラグインは、このタスクメッセージのメソッドからリクエストの情報を読み取る事ができます。

In this base class, this method is defined as just a placeholder and it does nothing.
To process messages, you have to override it by yours, like following:
この基底クラスにおいて、このメソッドは何もしない単なるプレースホルダとして定義されています。
メッセージを処理するには、以下のようにメソッドを再定義して下さい:

~~~ruby
module Droonga::Plugins::MySearch
Expand All @@ -179,21 +178,20 @@ module Droonga::Plugins::MySearch
end
~~~

The Droonga Engine uses the returned value of this method as the result of the handling.
It will be used to build the body of the unified response, and delivered to the Protocol Adapter.
Droonga Engineは、このメソッドの戻り値を処理の結果として扱います。
結果の値は、レスポンスのbodyの組み立てに使われ、Protocol Adapterに送られます。


### `Droonga::HandlerMessage` {#classes-Droonga-HandlerMessage}

This is a wrapper for a task message.
このクラスはタスクメッセージに対するラッパーとして働きます。

The Droonga Engine analyzes a transferred request message, and build multiple task massages to process the request.
A task massage has some information: a request, a step, descendant tasks, and so on.
Droonga Engineは送られてきたリクエストのメッセージを解析し、そのリクエストを処理するための複数のタスクメッセージを作成します。
1つのタスクメッセージは、リクエストの実体、step、後続するタスクの一覧などの情報を持ちます。

#### `#request` {#classes-Droonga-HandlerMessage-request}

This returns the request message.
You can read request body via this method. For example:
このメソッドはリクエストメッセージを返します。例:

~~~ruby
module Droonga::Plugins::MySearch
Expand All @@ -209,8 +207,8 @@ end

#### `@context` {#classes-Droonga-HandlerMessage-context}

This is a reference to the `Groonga::Context` instance for the storage of the partition.
See the [class reference of Rroonga][Groonga::Context].
そのパーティションのストレージに対応する`Groonga::Context`のインスタンスへの参照。
[Rroongaのクラスリファレンス][Groonga::Context]も併せて参照して下さい

You can use any feature of Rroonga via `@context`.
For example, this code returns the number of records in the specified table:
Expand Down

0 comments on commit 21cb9a8

Please sign in to comment.