Navigation Menu

Skip to content

Commit

Permalink
Translate tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Oct 23, 2015
1 parent 707a370 commit a9f0ffe
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 25 deletions.
34 changes: 25 additions & 9 deletions _po/ja/tutorial/index.po
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"PO-Revision-Date: 2015-10-23 18:37+0900\n"
"PO-Revision-Date: 2015-10-23 18:54+0900\n"
"Language: ja\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
Expand Down Expand Up @@ -953,11 +953,15 @@ msgid ""
"tml) and get the result of the execution as string by `pgroonga.command` funct"
"ion."
msgstr ""
"`pgroonga.command`関数を使うと[Groongaのコマンド](http://groonga.org/ja/docs/reference/co"
"mmand.html)を実行し、その結果を文字列で取得できます。"

msgid ""
"Here is an example that executes [status command](http://groonga.org/docs/refe"
"rence/commands/status.html):"
"Here is an example that executes [`status` command](http://groonga.org/docs/re"
"ference/commands/status.html):"
msgstr ""
"以下は[`status`コマンド](http://groonga.org/ja/docs/reference/commands/status.html)を実"
"行する例です。"

msgid ""
"```sql\n"
Expand All @@ -981,11 +985,13 @@ msgid ""
"Result from Groonga is JSON. You can use JSON related functions provided by Po"
"stgreSQL to access result from Groonga."
msgstr ""
"Groongaから返ってくる結果はJSONです。Groongaから返ってくる結果にアクセスするためにPostgreSQLが提供するJSON関連の関数を使うこ"
"とができます。"

msgid ""
"Here is an example to map one key value pair in the result of `status` command"
" to one row:"
msgstr ""
msgstr "以下は`status`コマンドの結果のキーと値のペアそれぞれを列に変換する例です。"

msgid ""
"```sql\n"
Expand All @@ -1009,28 +1015,34 @@ msgid ""
"See [`pgroonga.command` function](../reference/functions/pgroonga-command.html"
") for more details."
msgstr ""
"詳細は[`pgroonga.command`関数](../reference/functions/pgroonga-command.html)を参照してくだ"
"さい。"

msgid "{: #pgroonga-table-name}"
msgstr ""

msgid "### `pgroonga.table_name` function"
msgstr ""
msgstr "### `pgroonga.table_name`関数"

msgid ""
"PGroonga stores values of index target columns. You can use these values to se"
"arch and output by [`select` Groonga command](http://groonga.org/docs/referenc"
"e/commands/select.html)."
msgstr ""
"PGroongaはインデックス対象のカラムの値を保存しています。これらの値を[Groongaの`select`コマンド](http://groonga.or"
"g/ja/docs/reference/commands/select.html)で検索・出力するために使うことができます。"

msgid ""
"`select` Groonga command needs table name. You can use `pgroonga.table_name` f"
"unction to convert index name in PostgreSQL to table name in Groonga."
msgstr ""
"Groongaの`select`コマンドを使うにはテーブル名が必要です。`pgroonga.table_name`関数を使うとPostgreSQLでのインデ"
"ックス名をGroongaでのテーブル名に変換できます。"

msgid ""
"Here is an example to use `select` command with `pgroonga.table_name` function"
":"
msgstr ""
msgstr "以下は`pgroonga.table_name`関数を使って`select`コマンドを実行する例です。"

msgid ""
"```sql\n"
Expand All @@ -1055,19 +1067,23 @@ msgid ""
"See [`pgroonga.table_name` function](../reference/functions/pgroonga-table-nam"
"e.html) for more details."
msgstr ""
"詳細は[`pgroonga.table_name`関数](../reference/functions/pgroonga-table-name.html)を"
"参照してください。"

msgid "## Next step"
msgstr ""
msgstr "## 次のステップ"

msgid ""
"Now, you knew all PGroonga features! If you want to understand each feature, s"
"ee [reference](../reference/) manual for each feature."
msgstr ""
"これでPGroongaのすべての機能を知ったことになります!各機能を理解したい場合は各機能の[リファレンスマニュアル](../reference/)を参照し"
"くてください。"

msgid "[How to](../how-to/) may help you to use PGroonga for specific situation."
msgstr ""
msgstr "[ハウツー](../how-to/)は特定用途向けのPGroongaの使い方を紹介しています。"

msgid ""
"If you get a problem or want to share your useful information, please contact "
"[PGroonga community](../community/)."
msgstr ""
msgstr "なにか問題にぶつかった、有用な情報を持っている、そんな方は[PGroongaのコミュニティー](../community/)に参加してください。"
28 changes: 14 additions & 14 deletions ja/tutorial/index.md
Expand Up @@ -590,9 +590,9 @@ GroongaそのものはSQLのインターフェイスを提供していません

### `pgroonga.command`関数

You can execute [Groonga commands](http://groonga.org/docs/reference/command.html) and get the result of the execution as string by `pgroonga.command` function.
`pgroonga.command`関数を使うと[Groongaのコマンド](http://groonga.org/ja/docs/reference/command.html)を実行し、その結果を文字列で取得できます。

Here is an example that executes [status command](http://groonga.org/docs/reference/commands/status.html):
以下は[`status`コマンド](http://groonga.org/ja/docs/reference/commands/status.html)を実行する例です。

```sql
SELECT pgroonga.command('status');
Expand All @@ -602,9 +602,9 @@ SELECT pgroonga.command('status');
-- (1 row)
```

Result from Groonga is JSON. You can use JSON related functions provided by PostgreSQL to access result from Groonga.
Groongaから返ってくる結果はJSONです。Groongaから返ってくる結果にアクセスするためにPostgreSQLが提供するJSON関連の関数を使うことができます。

Here is an example to map one key value pair in the result of `status` command to one row:
以下は`status`コマンドの結果のキーと値のペアそれぞれを列に変換する例です。

```sql
SELECT * FROM json_each(pgroonga.command('status')::json->1);
Expand All @@ -622,17 +622,17 @@ SELECT * FROM json_each(pgroonga.command('status')::json->1);
-- (9 rows)
```

See [`pgroonga.command` function](../reference/functions/pgroonga-command.html) for more details.
詳細は[`pgroonga.command`関数](../reference/functions/pgroonga-command.html)を参照してください。

{: #pgroonga-table-name}

### `pgroonga.table_name` function
### `pgroonga.table_name`関数

PGroonga stores values of index target columns. You can use these values to search and output by [`select` Groonga command](http://groonga.org/docs/reference/commands/select.html).
PGroongaはインデックス対象のカラムの値を保存しています。これらの値を[Groongaの`select`コマンド](http://groonga.org/ja/docs/reference/commands/select.html)で検索・出力するために使うことができます。

`select` Groonga command needs table name. You can use `pgroonga.table_name` function to convert index name in PostgreSQL to table name in Groonga.
Groongaの`select`コマンドを使うにはテーブル名が必要です。`pgroonga.table_name`関数を使うとPostgreSQLでのインデックス名をGroongaでのテーブル名に変換できます。

Here is an example to use `select` command with `pgroonga.table_name` function:
以下は`pgroonga.table_name`関数を使って`select`コマンドを実行する例です。

```sql
SELECT *
Expand All @@ -648,12 +648,12 @@ SELECT *
-- (6 rows)
```

See [`pgroonga.table_name` function](../reference/functions/pgroonga-table-name.html) for more details.
詳細は[`pgroonga.table_name`関数](../reference/functions/pgroonga-table-name.html)を参照してください。

## Next step
## 次のステップ

Now, you knew all PGroonga features! If you want to understand each feature, see [reference](../reference/) manual for each feature.
Now, you knew all PGroonga features! If you want to understand each feature, see [reference manual](../reference/) for each feature.

[How to](../how-to/) may help you to use PGroonga for specific situation.
[ハウツー](../how-to/)は特定用途向けのPGroongaの使い方を紹介しています。

If you get a problem or want to share your useful information, please contact [PGroonga community](../community/).
なにか問題にぶつかった、有用な情報を持っている、そんな方は[PGroongaのコミュニティー](../community/)に参加してください。
4 changes: 2 additions & 2 deletions tutorial/index.md
Expand Up @@ -591,7 +591,7 @@ You can't use SQL to use Groonga directory. It's not PostgrSQL user friendly. Bu

You can execute [Groonga commands](http://groonga.org/docs/reference/command.html) and get the result of the execution as string by `pgroonga.command` function.

Here is an example that executes [status command](http://groonga.org/docs/reference/commands/status.html):
Here is an example that executes [`status` command](http://groonga.org/docs/reference/commands/status.html):

```sql
SELECT pgroonga.command('status');
Expand Down Expand Up @@ -651,7 +651,7 @@ See [`pgroonga.table_name` function](../reference/functions/pgroonga-table-name.

## Next step

Now, you knew all PGroonga features! If you want to understand each feature, see [reference](../reference/) manual for each feature.
Now, you knew all PGroonga features! If you want to understand each feature, see [reference manual](../reference/) for each feature.

[How to](../how-to/) may help you to use PGroonga for specific situation.

Expand Down

0 comments on commit a9f0ffe

Please sign in to comment.