Skip to content

Commit d62a88f

Browse files
authored
Add a note about recipes in tarantool/examples (#3055)
Resolves #1344
1 parent ab94c85 commit d62a88f

File tree

2 files changed

+24
-12
lines changed

2 files changed

+24
-12
lines changed

doc/book/app_server/cookbook.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ This section contains the following recipes:
2626

2727
Use freely.
2828

29+
See more recipes on `Tarantool GitHub <https://github.com/tarantool/examples/tree/master/cookbook>`__.
30+
2931
.. _cookbook-hello_world:
3032

3133
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

locale/ru/LC_MESSAGES/book/app_server/cookbook.po

Lines changed: 22 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,21 @@ msgid ""
2828
"This runs Tarantool Lua application server, which should be on the "
2929
"execution path."
3030
msgstr ""
31-
"Он запускает сервер приложений Tarantool на языке Lua, который должен быть"
32-
" в пути выполнения."
31+
"Он запускает сервер приложений Tarantool на языке Lua, который должен быть в"
32+
" пути выполнения."
3333

3434
msgid "This section contains the following recipes:"
3535
msgstr "В этом разделе собраны следующие рецепты:"
3636

3737
msgid "Use freely."
3838
msgstr "Можно использовать свободно."
3939

40+
msgid ""
41+
"See more recipes on `Tarantool GitHub "
42+
"<https://github.com/tarantool/examples/tree/master/cookbook>`__."
43+
msgstr ""
44+
"Другие рецепты см. на `GitHub Tarantool <https://github.com/tarantool/examples/tree/master/cookbook>`__."
45+
4046
msgid "hello_world.lua"
4147
msgstr "hello_world.lua"
4248

@@ -177,6 +183,7 @@ msgstr ""
177183
" вызвать встроенную в C функцию: printf(). (Чтобы лучше понимать FFI, см. "
178184
"`Учебное пособие по FFI <http://luajit.org/ext_ffi_tutorial.html>`_.)"
179185

186+
#, python-format
180187
msgid ""
181188
"#!/usr/bin/env tarantool\n"
182189
"\n"
@@ -1270,12 +1277,13 @@ msgid "http_generate_html.lua"
12701277
msgstr "http_generate_html.lua"
12711278

12721279
msgid ""
1273-
"Use the `http <https://github.com/tarantool/http/>`_ `rock` (which must first be installed) "
1274-
"to generate HTML pages from templates. "
1275-
"The `http <https://github.com/tarantool/http/>`_ "
1276-
"`rock <https://rocks.tarantool.org/>`_ has a fairly simple template engine which allows execution "
1277-
"of regular Lua code inside text blocks (like PHP). Therefore there is no need "
1278-
"to learn new languages in order to write templates."
1280+
"Use the `http <https://github.com/tarantool/http/>`_ `rock` (which must "
1281+
"first be installed) to generate HTML pages from templates. The `http "
1282+
"<https://github.com/tarantool/http/>`_ `rock "
1283+
"<https://rocks.tarantool.org/>`_ has a fairly simple template engine which "
1284+
"allows execution of regular Lua code inside text blocks (like PHP). "
1285+
"Therefore there is no need to learn new languages in order to write "
1286+
"templates."
12791287
msgstr ""
12801288
"Используйте `сторонний модуль` `http <https://github.com/tarantool/http/>`_ "
12811289
"(который необходимо предварительно установить), чтобы создавать HTML-"
@@ -1310,13 +1318,14 @@ msgstr ""
13101318

13111319
msgid ""
13121320
"An \"HTML\" file for this server, including Lua, could look like this (it "
1313-
"would produce \"1 Apple | 2 Orange | 3 Grapefruit | 4 Banana\"). "
1314-
"Create a ``templates`` directory and put this file in it:"
1321+
"would produce \"1 Apple | 2 Orange | 3 Grapefruit | 4 Banana\"). Create a "
1322+
"``templates`` directory and put this file in it:"
13151323
msgstr ""
13161324
"HTML-файл для этого сервера, включая Lua, может выглядеть следующим образом "
1317-
"(будет выведено \"1 Apple | 2 Orange | 3 Grapefruit | 4 Banana\")."
1318-
" Создайте директорию ``templates`` и поместите в неё файл:"
1325+
"(будет выведено \"1 Apple | 2 Orange | 3 Grapefruit | 4 Banana\"). Создайте "
1326+
"директорию ``templates`` и поместите в неё файл:"
13191327

1328+
#, python-format
13201329
msgid ""
13211330
"<html>\n"
13221331
"<body>\n"
@@ -1358,6 +1367,7 @@ msgstr ""
13581367
" вызвать на том экземпляре, с которым вы собираетесь установить соединение "
13591368
"через Go-коннектор."
13601369

1370+
#, python-format
13611371
msgid ""
13621372
"package main\n"
13631373
"\n"

0 commit comments

Comments
 (0)