Skip to content

Commit 3520560

Browse files
authored
Fix small issues (#2821)
* Fix typo Fixes #2457 * Fix typo Fixes #2458 * Remove confusing sentence Fixes #2367 * Correct rocks install description Fixes #1694 * Clarify example Fixes #2377 * Provide a better term translation Fixes #2466 * Fix typo Resolves #2465
1 parent e8e3cf7 commit 3520560

File tree

9 files changed

+20
-23
lines changed

9 files changed

+20
-23
lines changed

doc/reference/reference_lua/box_space/on_replace.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,11 @@ space_object:on_replace()
4141

4242
.. code-block:: tarantoolsession
4343
44-
tarantool> function f ()
44+
tarantool> x = 0
45+
> function f ()
4546
> x = x + 1
4647
> end
47-
tarantool> box.space.X:on_replace(f)
48+
tarantool> box.space.my_space_name:on_replace(f)
4849
4950
**Example 2:**
5051

doc/reference/reference_lua/clock.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,6 @@ Below is a list of all ``clock`` functions.
6969
realtime64()
7070

7171
The wall clock time. Derived from C function clock_gettime(CLOCK_REALTIME).
72-
This is the best function for knowing what the official time is, as
73-
determined by the system administrator.
7472

7573
:return: seconds or nanoseconds since epoch (1970-01-01 00:00:00), adjusted.
7674
:rtype: number or number64

doc/reference/tarantoolctl.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ Commands for managing Tarantool modules
150150
Initialize a directory for a Lua project using LuaRocks. Since version :doc:`2.4.1 </release/2.4.1>`.
151151

152152
``tarantoolctl rocks install NAME``
153-
Install a module in the current directory.
153+
Install a module in the ``.rocks`` directory, nested in the current directory.
154154

155155
``tarantoolctl rocks lint FILE``
156156
Check the syntax of a rockspec. Since version :doc:`2.4.1 </release/2.4.1>`.

locale/ru/LC_MESSAGES/reference/reference_lua/box_space/on_replace.po

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,15 +70,17 @@ msgid "**Example 1:**"
7070
msgstr "**Пример 1:**"
7171

7272
msgid ""
73-
"tarantool> function f ()\n"
73+
"tarantool> x = 0\n"
74+
" > function f ()\n"
7475
" > x = x + 1\n"
7576
" > end\n"
76-
"tarantool> box.space.X:on_replace(f)"
77+
"tarantool> box.space.my_space_name:on_replace(f)"
7778
msgstr ""
78-
"tarantool> function f ()\n"
79+
"tarantool> x = 0\n"
80+
" > function f ()\n"
7981
" > x = x + 1\n"
8082
" > end\n"
81-
"tarantool> box.space.X:on_replace(f)"
83+
"tarantool> box.space.my_space_name:on_replace(f)"
8284

8385
msgid "**Example 2:**"
8486
msgstr "**Пример 2:**"

locale/ru/LC_MESSAGES/reference/reference_lua/clock.po

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -89,14 +89,10 @@ msgid "Measure the time a function takes within a processor"
8989
msgstr "Измерение времени, которое функция проводит в процессоре"
9090

9191
msgid ""
92-
"The wall clock time. Derived from C function clock_gettime(CLOCK_REALTIME). "
93-
"This is the best function for knowing what the official time is, as "
94-
"determined by the system administrator."
92+
"The wall clock time. Derived from C function clock_gettime(CLOCK_REALTIME)."
9593
msgstr ""
9694
"Физическое время в секундах. Получено из C-функции "
97-
"clock_gettime(CLOCK_REALTIME). Использование этой функции лучше всего "
98-
"подходит для выяснения официального времени, как установлено системным "
99-
"администратором."
95+
"clock_gettime(CLOCK_REALTIME)."
10096

10197
msgid "return"
10298
msgstr "возвращает"

locale/ru/LC_MESSAGES/reference/reference_lua/json_paths.po

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ msgid ""
175175
msgstr ""
176176
"Они расходуют меньше места в WAL, потому что для обновления хранятся только "
177177
"ключи, операции и аргументы. Обновление одного труднодоступного поля "
178-
"дешевле, чем всего обновление всего кортежа."
178+
"дешевле, чем обновление всего кортежа."
179179

180180
msgid ""
181181
"They are faster. Firstly, this is because they are implemented in C, and "
@@ -200,6 +200,6 @@ msgstr ""
200200
"Они доступны с удаленных клиентов, а также с любого другого DML. До того, "
201201
"как обновления с помощью JSON-путей стали доступны в Tarantool, чтобы "
202202
"обновить одну глубокую часть кортежа, нужно было скачать этот кортеж, "
203-
"обновить его в памяти и отправить обратно - 2 сетевых скачка. С помощью "
204-
"JSON-путей, это может быть 1 скачок, когда обновление может быть описано в "
205-
"путях."
203+
"обновить его в памяти и отправить обратно --- 2 сетевых хопа. Если применяются "
204+
"JSON-пути, обновление может быть описано в "
205+
"путях и занять 1 хоп."

locale/ru/LC_MESSAGES/reference/reference_lua/log.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ msgstr "название модуля,"
212212
msgid ""
213213
"'E', 'W', 'I', 'V' or 'D' depending on ``log_level_function_name``, and"
214214
msgstr ""
215-
", 'W', 'I', 'V' или 'D' в зависимости от ``log_level_function_name`` и"
215+
"'E', 'W', 'I', 'V' или 'D' в зависимости от ``log_level_function_name`` и"
216216

217217
msgid "``message``."
218218
msgstr "``сообщение``."

locale/ru/LC_MESSAGES/reference/reference_rock/vshard/vshard_api.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -665,7 +665,7 @@ msgid ""
665665
"not log a warning. In case you need that behavior."
666666
msgstr ""
667667
"``vshard.router.bucket_id_strcrc32()`` имеет такое же поведение, но не "
668-
"записывает предупреждение. Для случаев, когда такое поведение действитльно "
668+
"записывает предупреждение. Для случаев, когда такое поведение действительно "
669669
"необходимо."
670670

671671
msgid "Calculate the bucket id using a simple built-in hash function."

locale/ru/LC_MESSAGES/reference/tarantoolctl.po

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,8 +280,8 @@ msgstr ""
280280
msgid "``tarantoolctl rocks install NAME``"
281281
msgstr "``tarantoolctl rocks install NAME``"
282282

283-
msgid "Install a module in the current directory."
284-
msgstr "Установка модуля в текущей директории."
283+
msgid "Install a module in the ``.rocks`` directory, nested in the current directory."
284+
msgstr "Установка модуля в директорию ``.rocks``, находящуюся в текущей директории."
285285

286286
msgid "``tarantoolctl rocks lint FILE``"
287287
msgstr ""

0 commit comments

Comments
 (0)