Kouhei Sutou
null+****@clear*****
Thu Jun 28 12:18:10 JST 2018
Kouhei Sutou 2018-06-28 12:18:10 +0900 (Thu, 28 Jun 2018) New Revision: 779b3f1a22d4c72e6ed179f745f78c5160a66613 https://github.com/groonga/groonga/commit/779b3f1a22d4c72e6ed179f745f78c5160a66613 Message: doc vector_find: translate Modified files: doc/locale/ja/LC_MESSAGES/reference.po doc/source/reference/executables/groonga.rst doc/source/reference/functions/vector_find.rst Modified: doc/locale/ja/LC_MESSAGES/reference.po (+112 -10) =================================================================== --- doc/locale/ja/LC_MESSAGES/reference.po 2018-06-28 08:53:51 +0900 (67151b048) +++ doc/locale/ja/LC_MESSAGES/reference.po 2018-06-28 12:18:10 +0900 (b35413827) @@ -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" @@ -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 " @@ -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 "" @@ -21084,13 +21193,6 @@ 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`` " "function.\"" Modified: doc/source/reference/executables/groonga.rst (+2 -2) =================================================================== --- doc/source/reference/executables/groonga.rst 2018-06-28 08:53:51 +0900 (1726216f3) +++ doc/source/reference/executables/groonga.rst 2018-06-28 12:18:10 +0900 (783b27f96) @@ -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``:: Modified: doc/source/reference/functions/vector_find.rst (+6 -6) =================================================================== --- doc/source/reference/functions/vector_find.rst 2018-06-28 08:53:51 +0900 (e55825c5a) +++ doc/source/reference/functions/vector_find.rst 2018-06-28 12:18:10 +0900 (005e4fc7f) @@ -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. @@ -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 @@ -107,7 +107,7 @@ Parameters It requires two parameters. -It has one optional parameter. +There is an optional parameter. .. _vector-find-required-parameters: @@ -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: -------------- next part -------------- HTML����������������������������... URL: https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20180628/fc4a65e1/attachment-0001.htm