Skip to content

Commit

Permalink
Merge pull request #24 from KitaitiMakoto/tutorial-handler-logic
Browse files Browse the repository at this point in the history
Translate the remaining in the section Define the handling logic of handler tutorial

Patch by KITAITI Makoto. Thanks!!!
  • Loading branch information
kou committed Dec 3, 2015
2 parents 1892621 + a168b7d commit b233fd4
Show file tree
Hide file tree
Showing 12 changed files with 86 additions and 78 deletions.
10 changes: 9 additions & 1 deletion _po/ja/tutorial/1.1.2/plugin-development/handler/index.po
Original file line number Diff line number Diff line change
Expand Up @@ -315,11 +315,17 @@ msgid ""
"e as `step.handler = Handler` simply.\n"
"Moreover, a class path string like `\"OtherPlugin::Handler\"` is also available."
msgstr ""
"ハンドラーは`step.handler`設定でステップに紐付けられます。\n"
"ここでは`Handler`クラスを`define_single_step`の後で定義しているため、`:Handler`というシンボルでハンドラークラスを指定"
"しています。\n"
"もしハンドラークラスを`define_single_step`よりも前で定義していれば、単に`step.handler = Handler`と書くことができ"
"ます。\n"
"更に、`\"OtherPlugin::Handler\"`のようなクラスパスの文字列も使用できます。"

msgid ""
"Then, we also have to bind a collector to the step, with the configuration `st"
"ep.collector`."
msgstr ""
msgstr "次に、`step.collector`設定を使ってコレクターをステップに紐付ける必要があります。"

msgid ""
"~~~ruby\n"
Expand All @@ -338,6 +344,8 @@ msgid ""
"It merges results returned from handler instances for each volume to one resul"
"t."
msgstr ""
"`Collectors::Sum`は組み込みコレクターの一つです。\n"
"これは、各ボリュームのハンドラーインスタンスから返って来た結果を結合して一つの結果にします。"

msgid "### Activate the plugin with `catalog.json`"
msgstr "### `catalog.json`でプラグインを有効化する"
Expand Down
14 changes: 7 additions & 7 deletions ja/tutorial/1.0.2/plugin-development/handler/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -189,12 +189,12 @@ end
現時点で、このハンドラーは何も処理を行わず、単に数値1つからなる配列を含む処理結果を返すだけです。
戻り値はレスポンスのbodyを組み立てるのに使われます。

The handler is bound to the step with the configuration `step.handler`.
Because we define the class `Handler` after `define_single_step`, we specify the handler class with a symbol `:Handler`.
If you define the handler class before `define_single_step`, then you can write as `step.handler = Handler` simply.
Moreover, a class path string like `"OtherPlugin::Handler"` is also available.
ハンドラーは`step.handler`設定でステップに紐付けられます。
ここでは`Handler`クラスを`define_single_step`の後で定義しているため、`:Handler`というシンボルでハンドラークラスを指定しています。
もしハンドラークラスを`define_single_step`よりも前で定義していれば、単に`step.handler = Handler`と書くことができます。
更に、`"OtherPlugin::Handler"`のようなクラスパスの文字列も使用できます。

Then, we also have to bind a collector to the step, with the configuration `step.collector`.
次に、`step.collector`設定を使ってコレクターをステップに紐付ける必要があります。

lib/droonga/plugins/count-records.rb:

Expand All @@ -208,8 +208,8 @@ lib/droonga/plugins/count-records.rb:
# (snip)
~~~

The `Collectors::Sum` is one of built-in collectors.
It merges results returned from handler instances for each volume to one result.
`Collectors::Sum`は組み込みコレクターの一つです。
これは、各ボリュームのハンドラーインスタンスから返って来た結果を結合して一つの結果にします。


### `catalog.json`でプラグインを有効化する
Expand Down
14 changes: 7 additions & 7 deletions ja/tutorial/1.0.3/plugin-development/handler/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -189,12 +189,12 @@ end
現時点で、このハンドラーは何も処理を行わず、単に数値1つからなる配列を含む処理結果を返すだけです。
戻り値はレスポンスのbodyを組み立てるのに使われます。

The handler is bound to the step with the configuration `step.handler`.
Because we define the class `Handler` after `define_single_step`, we specify the handler class with a symbol `:Handler`.
If you define the handler class before `define_single_step`, then you can write as `step.handler = Handler` simply.
Moreover, a class path string like `"OtherPlugin::Handler"` is also available.
ハンドラーは`step.handler`設定でステップに紐付けられます。
ここでは`Handler`クラスを`define_single_step`の後で定義しているため、`:Handler`というシンボルでハンドラークラスを指定しています。
もしハンドラークラスを`define_single_step`よりも前で定義していれば、単に`step.handler = Handler`と書くことができます。
更に、`"OtherPlugin::Handler"`のようなクラスパスの文字列も使用できます。

Then, we also have to bind a collector to the step, with the configuration `step.collector`.
次に、`step.collector`設定を使ってコレクターをステップに紐付ける必要があります。

lib/droonga/plugins/count-records.rb:

Expand All @@ -208,8 +208,8 @@ lib/droonga/plugins/count-records.rb:
# (snip)
~~~

The `Collectors::Sum` is one of built-in collectors.
It merges results returned from handler instances for each volume to one result.
`Collectors::Sum`は組み込みコレクターの一つです。
これは、各ボリュームのハンドラーインスタンスから返って来た結果を結合して一つの結果にします。


### `catalog.json`でプラグインを有効化する
Expand Down
14 changes: 7 additions & 7 deletions ja/tutorial/1.0.4/plugin-development/handler/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -189,12 +189,12 @@ end
現時点で、このハンドラーは何も処理を行わず、単に数値1つからなる配列を含む処理結果を返すだけです。
戻り値はレスポンスのbodyを組み立てるのに使われます。

The handler is bound to the step with the configuration `step.handler`.
Because we define the class `Handler` after `define_single_step`, we specify the handler class with a symbol `:Handler`.
If you define the handler class before `define_single_step`, then you can write as `step.handler = Handler` simply.
Moreover, a class path string like `"OtherPlugin::Handler"` is also available.
ハンドラーは`step.handler`設定でステップに紐付けられます。
ここでは`Handler`クラスを`define_single_step`の後で定義しているため、`:Handler`というシンボルでハンドラークラスを指定しています。
もしハンドラークラスを`define_single_step`よりも前で定義していれば、単に`step.handler = Handler`と書くことができます。
更に、`"OtherPlugin::Handler"`のようなクラスパスの文字列も使用できます。

Then, we also have to bind a collector to the step, with the configuration `step.collector`.
次に、`step.collector`設定を使ってコレクターをステップに紐付ける必要があります。

lib/droonga/plugins/count-records.rb:

Expand All @@ -208,8 +208,8 @@ lib/droonga/plugins/count-records.rb:
# (snip)
~~~

The `Collectors::Sum` is one of built-in collectors.
It merges results returned from handler instances for each volume to one result.
`Collectors::Sum`は組み込みコレクターの一つです。
これは、各ボリュームのハンドラーインスタンスから返って来た結果を結合して一つの結果にします。


### `catalog.json`でプラグインを有効化する
Expand Down
14 changes: 7 additions & 7 deletions ja/tutorial/1.0.5/plugin-development/handler/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -189,12 +189,12 @@ end
現時点で、このハンドラーは何も処理を行わず、単に数値1つからなる配列を含む処理結果を返すだけです。
戻り値はレスポンスのbodyを組み立てるのに使われます。

The handler is bound to the step with the configuration `step.handler`.
Because we define the class `Handler` after `define_single_step`, we specify the handler class with a symbol `:Handler`.
If you define the handler class before `define_single_step`, then you can write as `step.handler = Handler` simply.
Moreover, a class path string like `"OtherPlugin::Handler"` is also available.
ハンドラーは`step.handler`設定でステップに紐付けられます。
ここでは`Handler`クラスを`define_single_step`の後で定義しているため、`:Handler`というシンボルでハンドラークラスを指定しています。
もしハンドラークラスを`define_single_step`よりも前で定義していれば、単に`step.handler = Handler`と書くことができます。
更に、`"OtherPlugin::Handler"`のようなクラスパスの文字列も使用できます。

Then, we also have to bind a collector to the step, with the configuration `step.collector`.
次に、`step.collector`設定を使ってコレクターをステップに紐付ける必要があります。

lib/droonga/plugins/count-records.rb:

Expand All @@ -208,8 +208,8 @@ lib/droonga/plugins/count-records.rb:
# (snip)
~~~

The `Collectors::Sum` is one of built-in collectors.
It merges results returned from handler instances for each volume to one result.
`Collectors::Sum`は組み込みコレクターの一つです。
これは、各ボリュームのハンドラーインスタンスから返って来た結果を結合して一つの結果にします。


### `catalog.json`でプラグインを有効化する
Expand Down
14 changes: 7 additions & 7 deletions ja/tutorial/1.0.6/plugin-development/handler/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -189,12 +189,12 @@ end
現時点で、このハンドラーは何も処理を行わず、単に数値1つからなる配列を含む処理結果を返すだけです。
戻り値はレスポンスのbodyを組み立てるのに使われます。

The handler is bound to the step with the configuration `step.handler`.
Because we define the class `Handler` after `define_single_step`, we specify the handler class with a symbol `:Handler`.
If you define the handler class before `define_single_step`, then you can write as `step.handler = Handler` simply.
Moreover, a class path string like `"OtherPlugin::Handler"` is also available.
ハンドラーは`step.handler`設定でステップに紐付けられます。
ここでは`Handler`クラスを`define_single_step`の後で定義しているため、`:Handler`というシンボルでハンドラークラスを指定しています。
もしハンドラークラスを`define_single_step`よりも前で定義していれば、単に`step.handler = Handler`と書くことができます。
更に、`"OtherPlugin::Handler"`のようなクラスパスの文字列も使用できます。

Then, we also have to bind a collector to the step, with the configuration `step.collector`.
次に、`step.collector`設定を使ってコレクターをステップに紐付ける必要があります。

lib/droonga/plugins/count-records.rb:

Expand All @@ -208,8 +208,8 @@ lib/droonga/plugins/count-records.rb:
# (snip)
~~~

The `Collectors::Sum` is one of built-in collectors.
It merges results returned from handler instances for each volume to one result.
`Collectors::Sum`は組み込みコレクターの一つです。
これは、各ボリュームのハンドラーインスタンスから返って来た結果を結合して一つの結果にします。


### `catalog.json`でプラグインを有効化する
Expand Down
14 changes: 7 additions & 7 deletions ja/tutorial/1.0.7/plugin-development/handler/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -189,12 +189,12 @@ end
現時点で、このハンドラーは何も処理を行わず、単に数値1つからなる配列を含む処理結果を返すだけです。
戻り値はレスポンスのbodyを組み立てるのに使われます。

The handler is bound to the step with the configuration `step.handler`.
Because we define the class `Handler` after `define_single_step`, we specify the handler class with a symbol `:Handler`.
If you define the handler class before `define_single_step`, then you can write as `step.handler = Handler` simply.
Moreover, a class path string like `"OtherPlugin::Handler"` is also available.
ハンドラーは`step.handler`設定でステップに紐付けられます。
ここでは`Handler`クラスを`define_single_step`の後で定義しているため、`:Handler`というシンボルでハンドラークラスを指定しています。
もしハンドラークラスを`define_single_step`よりも前で定義していれば、単に`step.handler = Handler`と書くことができます。
更に、`"OtherPlugin::Handler"`のようなクラスパスの文字列も使用できます。

Then, we also have to bind a collector to the step, with the configuration `step.collector`.
次に、`step.collector`設定を使ってコレクターをステップに紐付ける必要があります。

lib/droonga/plugins/count-records.rb:

Expand All @@ -208,8 +208,8 @@ lib/droonga/plugins/count-records.rb:
# (snip)
~~~

The `Collectors::Sum` is one of built-in collectors.
It merges results returned from handler instances for each volume to one result.
`Collectors::Sum`は組み込みコレクターの一つです。
これは、各ボリュームのハンドラーインスタンスから返って来た結果を結合して一つの結果にします。


### `catalog.json`でプラグインを有効化する
Expand Down
14 changes: 7 additions & 7 deletions ja/tutorial/1.0.8/plugin-development/handler/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -189,12 +189,12 @@ end
現時点で、このハンドラーは何も処理を行わず、単に数値1つからなる配列を含む処理結果を返すだけです。
戻り値はレスポンスのbodyを組み立てるのに使われます。

The handler is bound to the step with the configuration `step.handler`.
Because we define the class `Handler` after `define_single_step`, we specify the handler class with a symbol `:Handler`.
If you define the handler class before `define_single_step`, then you can write as `step.handler = Handler` simply.
Moreover, a class path string like `"OtherPlugin::Handler"` is also available.
ハンドラーは`step.handler`設定でステップに紐付けられます。
ここでは`Handler`クラスを`define_single_step`の後で定義しているため、`:Handler`というシンボルでハンドラークラスを指定しています。
もしハンドラークラスを`define_single_step`よりも前で定義していれば、単に`step.handler = Handler`と書くことができます。
更に、`"OtherPlugin::Handler"`のようなクラスパスの文字列も使用できます。

Then, we also have to bind a collector to the step, with the configuration `step.collector`.
次に、`step.collector`設定を使ってコレクターをステップに紐付ける必要があります。

lib/droonga/plugins/count-records.rb:

Expand All @@ -208,8 +208,8 @@ lib/droonga/plugins/count-records.rb:
# (snip)
~~~

The `Collectors::Sum` is one of built-in collectors.
It merges results returned from handler instances for each volume to one result.
`Collectors::Sum`は組み込みコレクターの一つです。
これは、各ボリュームのハンドラーインスタンスから返って来た結果を結合して一つの結果にします。


### `catalog.json`でプラグインを有効化する
Expand Down
14 changes: 7 additions & 7 deletions ja/tutorial/1.0.9/plugin-development/handler/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -189,12 +189,12 @@ end
現時点で、このハンドラーは何も処理を行わず、単に数値1つからなる配列を含む処理結果を返すだけです。
戻り値はレスポンスのbodyを組み立てるのに使われます。

The handler is bound to the step with the configuration `step.handler`.
Because we define the class `Handler` after `define_single_step`, we specify the handler class with a symbol `:Handler`.
If you define the handler class before `define_single_step`, then you can write as `step.handler = Handler` simply.
Moreover, a class path string like `"OtherPlugin::Handler"` is also available.
ハンドラーは`step.handler`設定でステップに紐付けられます。
ここでは`Handler`クラスを`define_single_step`の後で定義しているため、`:Handler`というシンボルでハンドラークラスを指定しています。
もしハンドラークラスを`define_single_step`よりも前で定義していれば、単に`step.handler = Handler`と書くことができます。
更に、`"OtherPlugin::Handler"`のようなクラスパスの文字列も使用できます。

Then, we also have to bind a collector to the step, with the configuration `step.collector`.
次に、`step.collector`設定を使ってコレクターをステップに紐付ける必要があります。

lib/droonga/plugins/count-records.rb:

Expand All @@ -208,8 +208,8 @@ lib/droonga/plugins/count-records.rb:
# (snip)
~~~

The `Collectors::Sum` is one of built-in collectors.
It merges results returned from handler instances for each volume to one result.
`Collectors::Sum`は組み込みコレクターの一つです。
これは、各ボリュームのハンドラーインスタンスから返って来た結果を結合して一つの結果にします。


### `catalog.json`でプラグインを有効化する
Expand Down
14 changes: 7 additions & 7 deletions ja/tutorial/1.1.0/plugin-development/handler/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -189,12 +189,12 @@ end
現時点で、このハンドラーは何も処理を行わず、単に数値1つからなる配列を含む処理結果を返すだけです。
戻り値はレスポンスのbodyを組み立てるのに使われます。

The handler is bound to the step with the configuration `step.handler`.
Because we define the class `Handler` after `define_single_step`, we specify the handler class with a symbol `:Handler`.
If you define the handler class before `define_single_step`, then you can write as `step.handler = Handler` simply.
Moreover, a class path string like `"OtherPlugin::Handler"` is also available.
ハンドラーは`step.handler`設定でステップに紐付けられます。
ここでは`Handler`クラスを`define_single_step`の後で定義しているため、`:Handler`というシンボルでハンドラークラスを指定しています。
もしハンドラークラスを`define_single_step`よりも前で定義していれば、単に`step.handler = Handler`と書くことができます。
更に、`"OtherPlugin::Handler"`のようなクラスパスの文字列も使用できます。

Then, we also have to bind a collector to the step, with the configuration `step.collector`.
次に、`step.collector`設定を使ってコレクターをステップに紐付ける必要があります。

lib/droonga/plugins/count-records.rb:

Expand All @@ -208,8 +208,8 @@ lib/droonga/plugins/count-records.rb:
# (snip)
~~~

The `Collectors::Sum` is one of built-in collectors.
It merges results returned from handler instances for each volume to one result.
`Collectors::Sum`は組み込みコレクターの一つです。
これは、各ボリュームのハンドラーインスタンスから返って来た結果を結合して一つの結果にします。


### `catalog.json`でプラグインを有効化する
Expand Down
14 changes: 7 additions & 7 deletions ja/tutorial/1.1.1/plugin-development/handler/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -189,12 +189,12 @@ end
現時点で、このハンドラーは何も処理を行わず、単に数値1つからなる配列を含む処理結果を返すだけです。
戻り値はレスポンスのbodyを組み立てるのに使われます。

The handler is bound to the step with the configuration `step.handler`.
Because we define the class `Handler` after `define_single_step`, we specify the handler class with a symbol `:Handler`.
If you define the handler class before `define_single_step`, then you can write as `step.handler = Handler` simply.
Moreover, a class path string like `"OtherPlugin::Handler"` is also available.
ハンドラーは`step.handler`設定でステップに紐付けられます。
ここでは`Handler`クラスを`define_single_step`の後で定義しているため、`:Handler`というシンボルでハンドラークラスを指定しています。
もしハンドラークラスを`define_single_step`よりも前で定義していれば、単に`step.handler = Handler`と書くことができます。
更に、`"OtherPlugin::Handler"`のようなクラスパスの文字列も使用できます。

Then, we also have to bind a collector to the step, with the configuration `step.collector`.
次に、`step.collector`設定を使ってコレクターをステップに紐付ける必要があります。

lib/droonga/plugins/count-records.rb:

Expand All @@ -208,8 +208,8 @@ lib/droonga/plugins/count-records.rb:
# (snip)
~~~

The `Collectors::Sum` is one of built-in collectors.
It merges results returned from handler instances for each volume to one result.
`Collectors::Sum`は組み込みコレクターの一つです。
これは、各ボリュームのハンドラーインスタンスから返って来た結果を結合して一つの結果にします。


### `catalog.json`でプラグインを有効化する
Expand Down
Loading

0 comments on commit b233fd4

Please sign in to comment.