Skip to content

Commit c0f4522

Browse files
committed
updated pot
1 parent 68f8837 commit c0f4522

File tree

21 files changed

+1852
-664
lines changed

21 files changed

+1852
-664
lines changed

locale/en/dev_guide/internals/box_protocol.pot

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version: Tarantool 3.0\n"
1010
"Report-Msgid-Bugs-To: \n"
11-
"POT-Creation-Date: 2023-11-17 14:22+0000\n"
11+
"POT-Creation-Date: 2023-11-21 08:10+0000\n"
1212
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1313
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
1414
"Language-Team: LANGUAGE <[email protected]>\n"
1515
"MIME-Version: 1.0\n"
1616
"Content-Type: text/plain; charset=UTF-8\n"
1717
"Content-Transfer-Encoding: 8bit\n"
1818

19-
#: ../../doc/dev_guide/internals/box_protocol.rst:23
19+
#: ../../doc/dev_guide/internals/box_protocol.rst:31
2020
msgid "Examples"
2121
msgstr ""
2222

@@ -55,3 +55,7 @@ msgstr ""
5555
#: ../../doc/dev_guide/internals/box_protocol.rst:21
5656
msgid "response format that supports zero-copy writes"
5757
msgstr ""
58+
59+
#: ../../doc/dev_guide/internals/box_protocol.rst:25
60+
msgid "Since version :doc:`2.11.0 </release/2.11.0>`, you can use the :ref:`box.iproto <box_iproto>` submodule to access IPROTO constants and features from Lua. The submodule enables to :ref:`send arbitrary IPROTO packets <reference_lua-box_iproto_send>` over the session's socket and :ref:`override the behavior <reference_lua-box_iproto_override>` for all IPROTO request types. Also, :ref:`IPROTO_UNKNOWN <box_iproto-unknown>` constant is introduced. The constant is used for the :ref:`box.iproto.override() <reference_lua-box_iproto_override>` API, which allows setting a handler for incoming requests with an unknown type."
61+
msgstr ""

locale/en/dev_guide/internals/iproto/format.pot

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version: Tarantool 3.0\n"
1010
"Report-Msgid-Bugs-To: \n"
11-
"POT-Creation-Date: 2023-11-17 14:22+0000\n"
11+
"POT-Creation-Date: 2023-11-21 08:10+0000\n"
1212
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1313
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
1414
"Language-Team: LANGUAGE <[email protected]>\n"
@@ -53,7 +53,7 @@ msgid "The header is an MP_MAP. It may contain, in any order:"
5353
msgstr ""
5454

5555
#: ../../doc/dev_guide/internals/iproto/format.rst:38
56-
msgid "Both the request and response make use of the :ref:`IPROTO_REQUEST_TYPE <internals-iproto-keys-request_type>` key. It denotes the type of the packet."
56+
msgid "Both the request and response use the :ref:`IPROTO_REQUEST_TYPE <internals-iproto-keys-request_type>` key. It denotes the type of the packet."
5757
msgstr ""
5858

5959
#: ../../doc/dev_guide/internals/iproto/format.rst:41
@@ -85,73 +85,73 @@ msgid "To see how Tarantool decodes the header, have a look at file `net_box.c <
8585
msgstr ""
8686

8787
#: ../../doc/dev_guide/internals/iproto/format.rst:63
88-
msgid "For example, in a successful response to ``box.space:select()``, the IPROTO_REQUEST_TYPE value will be 0 = ``IPROTO_OK`` and the array will have all the tuples of the result."
88+
msgid "For example, in a successful response to ``box.space:select()``, the IPROTO_REQUEST_TYPE value is 0 = ``IPROTO_OK`` and the array has all the tuples of the result."
8989
msgstr ""
9090

9191
#: ../../doc/dev_guide/internals/iproto/format.rst:67
9292
msgid "Read the source code file `net_box.c <https://github.com/tarantool/tarantool/blob/master/src/box/lua/net_box.c>`__ where the function ``decode_metadata_optional`` is an example of how Tarantool itself decodes extra items."
9393
msgstr ""
9494

95-
#: ../../doc/dev_guide/internals/iproto/format.rst:72
95+
#: ../../doc/dev_guide/internals/iproto/format.rst:74
9696
msgid "Body"
9797
msgstr ""
9898

99-
#: ../../doc/dev_guide/internals/iproto/format.rst:74
99+
#: ../../doc/dev_guide/internals/iproto/format.rst:76
100100
msgid "The body is an MP_MAP. Maximal iproto package body length is 2 GiB."
101101
msgstr ""
102102

103-
#: ../../doc/dev_guide/internals/iproto/format.rst:76
104-
msgid "The body has the details of the request or response. In a request, it can also be absent or be an empty map. Both these states will be interpreted equally. Responses will contain the body anyway even for an :ref:`IPROTO_PING <box_protocol-ping>` request, where it will be an empty MP_MAP."
103+
#: ../../doc/dev_guide/internals/iproto/format.rst:78
104+
msgid "The body has the details of the request or response. In a request, it can also be absent or be an empty map. Both these states are interpreted equally. Responses contain the body anyway even for an :ref:`IPROTO_PING <box_protocol-ping>` request, where it is an empty MP_MAP."
105105
msgstr ""
106106

107-
#: ../../doc/dev_guide/internals/iproto/format.rst:81
107+
#: ../../doc/dev_guide/internals/iproto/format.rst:83
108108
msgid "A lot of responses contain the IPROTO_DATA map:"
109109
msgstr ""
110110

111-
#: ../../doc/dev_guide/internals/iproto/format.rst:86
111+
#: ../../doc/dev_guide/internals/iproto/format.rst:88
112112
msgid "For most data-access requests (:ref:`IPROTO_SELECT <box_protocol-select>`, :ref:`IPROTO_INSERT <box_protocol-insert>`, :ref:`IPROTO_DELETE <box_protocol-delete>`, etc.) the body is an IPROTO_DATA map with an array of tuples that contain an array of fields."
113113
msgstr ""
114114

115-
#: ../../doc/dev_guide/internals/iproto/format.rst:90
115+
#: ../../doc/dev_guide/internals/iproto/format.rst:92
116116
msgid "IPROTO_DATA is what we get with net_box and :ref:`Module buffer <buffer-module>` so if we were using net_box we could decode with :ref:`msgpack.decode_unchecked() <msgpack-decode_unchecked_string>`, or we could convert to a string with :samp:`ffi.string({pointer},{length})`. The :ref:`pickle.unpack() <pickle-unpack>` function might also be helpful."
117117
msgstr ""
118118

119-
#: ../../doc/dev_guide/internals/iproto/format.rst:98
119+
#: ../../doc/dev_guide/internals/iproto/format.rst:100
120120
msgid "For SQL-specific requests and responses, the body is a bit different. :ref:`Learn more <internals-iproto-sql>` about this type of packets."
121121
msgstr ""
122122

123-
#: ../../doc/dev_guide/internals/iproto/format.rst:104
123+
#: ../../doc/dev_guide/internals/iproto/format.rst:106
124124
msgid "Error responses"
125125
msgstr ""
126126

127-
#: ../../doc/dev_guide/internals/iproto/format.rst:106
127+
#: ../../doc/dev_guide/internals/iproto/format.rst:108
128128
msgid "Instead of :ref:`IPROTO_OK <internals-iproto-ok>`, an error response header has IPROTO_REQUEST_TYPE = :ref:`IPROTO_TYPE_ERROR <internals-iproto-type_error>`. Its code is ``0x8XXX``, where ``XXX`` is the error code -- a value in `src/box/errcode.h <https://github.com/tarantool/tarantool/blob/master/src/box/errcode.h>`_. ``src/box/errcode.h`` also has some convenience macros which define hexadecimal constants for return codes."
129129
msgstr ""
130130

131-
#: ../../doc/dev_guide/internals/iproto/format.rst:113
131+
#: ../../doc/dev_guide/internals/iproto/format.rst:115
132132
msgid "The error response body is a map that contains two keys: :ref:`IPROTO_ERROR <internals-iproto-keys-error>` and :ref:`IPROTO_ERROR_24 <internals-iproto-keys-error>`. While IPROTO_ERROR contains an MP_MAP value, IPROTO_ERROR_24 contains a string. The two keys are provided to accommodate clients with older and newer Tarantool versions."
133133
msgstr ""
134134

135-
#: ../../doc/dev_guide/internals/iproto/format.rst:122
135+
#: ../../doc/dev_guide/internals/iproto/format.rst:124
136136
msgid "Error responses before 2.4.1"
137137
msgstr ""
138138

139-
#: ../../doc/dev_guide/internals/iproto/format.rst:124
139+
#: ../../doc/dev_guide/internals/iproto/format.rst:126
140140
msgid "Before Tarantool v. :doc:`2.4.1 </release/2.4.1>`, the key IPROTO_ERROR contained a string and was identical to the current IPROTO_ERROR_24 key."
141141
msgstr ""
142142

143-
#: ../../doc/dev_guide/internals/iproto/format.rst:127
143+
#: ../../doc/dev_guide/internals/iproto/format.rst:129
144144
msgid "Let's consider an example. This is the fifth message, and the request was to create a duplicate space with ``conn:eval([[box.schema.space.create('_space');]])``. The unsuccessful response looks like this:"
145145
msgstr ""
146146

147-
#: ../../doc/dev_guide/internals/iproto/format.rst:134
147+
#: ../../doc/dev_guide/internals/iproto/format.rst:136
148148
msgid "The tutorial :ref:`Understanding the binary protocol <box_protocol-illustration>` shows actual byte codes of the response to the IPROTO_EVAL message."
149149
msgstr ""
150150

151-
#: ../../doc/dev_guide/internals/iproto/format.rst:137
151+
#: ../../doc/dev_guide/internals/iproto/format.rst:139
152152
msgid "Looking in `errcode.h <https://github.com/tarantool/tarantool/blob/master/src/box/errcode.h>`__, we find that the error code ``0x0a`` (decimal 10) is ER_SPACE_EXISTS, and the string associated with ER_SPACE_EXISTS is \"Space '%s' already exists\"."
153153
msgstr ""
154154

155-
#: ../../doc/dev_guide/internals/iproto/format.rst:142
155+
#: ../../doc/dev_guide/internals/iproto/format.rst:144
156156
msgid "Since version :doc:`2.4.1 </release/2.4.1>`, responses for errors have extra information following what was described above. This extra information is given via the MP_ERROR extension type. See details in the :ref:`MessagePack extensions <msgpack_ext-error>` section."
157157
msgstr ""

0 commit comments

Comments
 (0)