Navigation Menu

Skip to content

Commit

Permalink
doc vector_find: translate
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Jun 28, 2018
1 parent 8a231b7 commit 779b3f1
Show file tree
Hide file tree
Showing 3 changed files with 120 additions and 18 deletions.
122 changes: 112 additions & 10 deletions doc/locale/ja/LC_MESSAGES/reference.po
Expand Up @@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: 1.2.1\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2018-05-07 16:56+0900\n"
"PO-Revision-Date: 2018-06-28 12:16+0900\n"
"Last-Translator: Masafumi Yokoyama <yokoyama@clear-code.com>\n"
"Language-Team: Japanese\n"
"Language: ja\n"
Expand Down Expand Up @@ -18741,9 +18741,11 @@ msgid ""
msgstr ""

msgid ""
"Note that you can use ``groonga`` executable file as a client for HTTP "
"protocol Groonga server."
"Note that you can't use ``groonga`` executable file as a client for Groonga "
"server that uses HTTP."
msgstr ""
"HTTPを使っているGroongaサーバーのクライアントとして ``groonga`` 実行ファイル"
"を使うことはできないことに注意してください。"

msgid ""
"Here is the syntax to run shell that executes Groonga command against "
Expand Down Expand Up @@ -21071,6 +21073,113 @@ msgstr ""
msgid "``time_classify_year``"
msgstr ""

msgid "``vector_find``"
msgstr ""

msgid ""
"It returns the first element that matches the given condition from the given "
"vector. If no element is found, it returns ``null``."
msgstr ""
"指定したベクターから指定した条件にマッチする最初の要素を返します。どの要素も"
"マッチしない場合は ``null`` を返します。"

msgid ""
"You can use not only equal condition but also less than condition, prefix "
"equal condition and so on."
msgstr "等価条件だけでなく以下条件や前方一致条件なども使えます。"

msgid ""
"To enable this function, register ``functions/vector`` plugin by the "
"following command::"
msgstr ""
"この関数を有効にするには、以下のコマンドで ``functions/vector`` プラグインを"
"登録します。::"

msgid "``vector_find`` has two or three parameters::"
msgstr "``vector_find`` のパラメーター数は2つまたは3つです。::"

msgid ""
"If you omit the third argument, each element in the ``vector`` is compared "
"with ``value`` by equality comparison."
msgstr ""
"3番目の引数を省略すると、 ``vector`` 内の各要素と ``value`` の比較には等価条"
"件を使います。"

msgid "You need to register ``functions/vector`` plugin at first:"
msgstr "まず ``functions/vector`` プラグインを登録します。"

msgid ""
"Here is a simple usage of ``vector_find`` that searches an element in "
"``tags`` column and returns the first found element:"
msgstr ""
"以下は ``vector_find`` の簡単な使い方です。この使い方では ``tags`` カラム内の"
"要素を検索して最初に見つかった要素を返します。"

msgid ""
"It returns ``\"mroonga\"`` when the ``tags`` column value includes ``"
"\"mroonga\"`` element. It returns ``null`` otherwise."
msgstr ""
"この例では ``tags`` カラムの中に ``\"mroonga\"`` がある場合は ``\"mroonga"
"\"`` を返しし、そうでない場合は ``null`` を返しています。"

msgid ""
"You can customize how to compare with each value by the third argument. Here "
"is a usage to use full text search to find an element:"
msgstr ""
"3番目の引数でそれぞれの値をどうやって比較するかをカスタマイズできます。以下は"
"要素の検索に全文検索を使う例です。"

msgid ""
"It returns ``\"groonga\"``, ``\"mroonga\"`` or ``\"droonga\"`` when the "
"``tags`` column value includes one of them. The returned value is the first "
"found element. For example, ``\"droonga\"`` is returned for ``[\"droonga\", "
"\"groonga\"]``. ``\"groonga\"`` isn't returned because the first element ``"
"\"droonga\"`` is found before the second element ``\"groonga\"`` is searched."
msgstr ""
"この例では ``tags`` カラム内に ``\"groonga\"`` 、 ``\"mroonga\"`` 、 ``"
"\"droonga\"`` のどれかが含まれていれば、最初の見つかったその値を返します。た"
"とえば、 ``[\"droonga\", \"groonga\"]`` の場合は ``\"droonga\"`` を返しま"
"す。 ``\"groonga\"`` は返しません。なぜなら、2つ目の要素である ``\"groonga"
"\"`` を検索する前に最初の要素である ``\"droonga\"`` がマッチするからです。"

msgid "It returns ``null`` when ``tags`` column value doesn't include them."
msgstr ""
"この例では ``tags`` カラム内に ``\"groonga\"`` 、 ``\"mroonga\"`` 、 ``"
"\"droonga\"`` のどの値も含まれていない場合は ``null`` を返します。"

msgid "It requires two parameters."
msgstr "必須の引数は2つです。"

msgid "``vector`` and ``value`` are required."
msgstr "``vector`` と ``value`` は必須です。"

msgid "``vector``"
msgstr ""

msgid "Specifies a vector value to be searched an element."
msgstr "検索対象のベクターを指定します。"

msgid "``operator`` is optional."
msgstr "``operator`` は省略可能です。"

msgid "``operator``"
msgstr ""

msgid ""
"Specifies an operator to determine how to compare each value with :ref:"
"`vector-find-value`."
msgstr ":ref:`vector-find-value` と各要素を比較する方法を指定します。"

msgid ""
"Here are available operators. The default is ``EQUAL`` operator. It does "
"equality comparison."
msgstr ""
"以下は利用可能なオペレーターです。デフォルトは ``EQUAL`` オペレーターです。こ"
"のオペレーターは等価比較をします。"

msgid "The matched element on match, ``null`` otherwise."
msgstr "マッチした場合はマッチした要素。マッチしない場合は ``null`` 。"

msgid "``vector_new``"
msgstr ""

Expand All @@ -21083,13 +21192,6 @@ msgstr ""
msgid "``vector_size`` returns the value of vector column size."
msgstr "``vector_size`` はベクターカラムのサイズを返します。"

msgid ""
"To enable this function, register ``functions/vector`` plugin by following "
"the command::"
msgstr ""
"この関数を有効にするには、以下のコマンドで ``functions/vector`` プラグインを"
"登録します::"

msgid ""
"Then, use ``vector_size`` function with ``--command_version 2`` option. Note "
"that you must specify ``--command_version 2`` to use ``vector_size`` "
Expand Down
4 changes: 2 additions & 2 deletions doc/source/reference/executables/groonga.rst
Expand Up @@ -150,8 +150,8 @@ protocol Groonga server. Its usage is similar to
execute one command. You need to specify server address instead of
local database.

Note that you cannot use ``groonga`` executable file as a client for HTTP
protocol Groonga server.
Note that you can't use ``groonga`` executable file as a client for
Groonga server that uses HTTP.

Here is the syntax to run shell that executes Groonga command against
Groonga server that is running at ``192.168.0.1:10043``::
Expand Down
12 changes: 6 additions & 6 deletions doc/source/reference/functions/vector_find.rst
Expand Up @@ -13,8 +13,8 @@ Summary

.. versionadded:: 8.0.4

It finds the first element that matches the given condition from the
given vector. If no element is found, ``null`` is returned.
It returns the first element that matches the given condition from the
given vector. If no element is found, it returns ``null``.

You can use not only equal condition but also less than condition,
prefix equal condition and so on.
Expand Down Expand Up @@ -82,8 +82,8 @@ Here is a simple usage of ``vector_find`` that searches an element in
It returns ``"mroonga"`` when the ``tags`` column value includes
``"mroonga"`` element. It returns ``null`` otherwise.

You can custom how to compare with each value by the third argument.
Here is a usage to use full text search to find an element:
You can customize how to compare with each value by the third
argument. Here is a usage to use full text search to find an element:

.. groonga-command
.. include:: ../../example/reference/functions/vector_find/usage_find_operator.log
Expand All @@ -107,7 +107,7 @@ Parameters

It requires two parameters.

It has one optional parameter.
There is an optional parameter.

.. _vector-find-required-parameters:

Expand All @@ -128,7 +128,7 @@ Specifies a vector value to be searched an element.
``value``
"""""""""

Specifies a value to be used as a condition.
Specifies a value to be compared.

.. _vector-find-optional-parameters:

Expand Down

0 comments on commit 779b3f1

Please sign in to comment.