Skip to content

Commit ea4e35a

Browse files
TarantoolBotandreyaksenov
authored andcommitted
updated pot
1 parent fa92bce commit ea4e35a

File tree

6 files changed

+1602
-191
lines changed

6 files changed

+1602
-191
lines changed

locale/en/code_snippets/README.pot

Lines changed: 65 additions & 24 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-23 09:50+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"
@@ -21,88 +21,129 @@ msgid "Tarantool code examples"
2121
msgstr ""
2222

2323
#: ../../doc/code_snippets/README.md:3
24-
msgid "The `doc/code_snippets` folder of a Tarantool documentation repository contains runnable code examples that show how to work with various Tarantool modules. Code from these examples is [referenced](#referencing-code-snippets) in corresponding documentation sections."
24+
msgid "The `doc/code_snippets` folder of a Tarantool documentation repository contains runnable code examples that show how to work with Tarantool:"
2525
msgstr ""
2626

2727
#: ../../doc/code_snippets/README.md:5
28-
msgid "Prerequisites"
28+
msgid "The [snippets](snippets) folder contains sample applications that demonstrate how to configure a Tarantool cluster."
29+
msgstr ""
30+
31+
#: ../../doc/code_snippets/README.md:6
32+
msgid "The [test](test) folder contains testable Lua examples that show how to work with various Tarantool modules."
2933
msgstr ""
3034

31-
#: ../../doc/code_snippets/README.md:7
32-
msgid "First, install the [tt CLI utility](https://www.tarantool.io/en/doc/latest/reference/tooling/tt_cli/). Then, go to the `doc/code_snippets` folder and install the following libraries:"
35+
#: ../../doc/code_snippets/README.md:8
36+
msgid "Code from these examples is [referenced](#referencing-code-snippets) in corresponding documentation sections."
3337
msgstr ""
3438

3539
#: ../../doc/code_snippets/README.md:10
36-
msgid "Install [luatest](https://github.com/tarantool/luatest):"
40+
msgid "Prerequisites"
3741
msgstr ""
3842

39-
#: ../../doc/code_snippets/README.md:11
40-
msgid "tt rocks install luatest\n"
41-
""
43+
#: ../../doc/code_snippets/README.md:12
44+
msgid "Install the [tt CLI utility](https://www.tarantool.io/en/doc/latest/reference/tooling/tt_cli/)."
45+
msgstr ""
46+
47+
#: ../../doc/code_snippets/README.md:13
48+
msgid "To be able to run tests for samples from [test](test), go to the `doc/code_snippets` folder and install the following libraries:"
4249
msgstr ""
4350

4451
#: ../../doc/code_snippets/README.md:15
45-
msgid "Install [luarapidxml](https://github.com/tarantool/luarapidxml):"
52+
msgid "[luatest](https://github.com/tarantool/luatest):"
4653
msgstr ""
4754

4855
#: ../../doc/code_snippets/README.md:16
56+
msgid "tt rocks install luatest\n"
57+
""
58+
msgstr ""
59+
60+
#: ../../doc/code_snippets/README.md:20
61+
msgid "[luarapidxml](https://github.com/tarantool/luarapidxml):"
62+
msgstr ""
63+
64+
#: ../../doc/code_snippets/README.md:21
4965
msgid "tt rocks install luarapidxml\n"
5066
""
5167
msgstr ""
5268

53-
#: ../../doc/code_snippets/README.md:22
54-
msgid "Running and testing examples"
69+
#: ../../doc/code_snippets/README.md:27
70+
msgid "Running"
71+
msgstr ""
72+
73+
#: ../../doc/code_snippets/README.md:29
74+
msgid "Running applications from 'snippets'"
5575
msgstr ""
5676

57-
#: ../../doc/code_snippets/README.md:24
77+
#: ../../doc/code_snippets/README.md:31
78+
msgid "To run applications placed in [snippets](snippets), follow these steps:"
79+
msgstr ""
80+
81+
#: ../../doc/code_snippets/README.md:33
82+
msgid "Go to the directory containing samples for a specific feature, for example, [snippets/replication](snippets/replication)."
83+
msgstr ""
84+
85+
#: ../../doc/code_snippets/README.md:34
86+
msgid "To run applications placed in [instances.enabled](instances.enabled), execute the `tt start` command, for example:"
87+
msgstr ""
88+
89+
#: ../../doc/code_snippets/README.md:36
90+
msgid "$ tt start auto_leader\n"
91+
""
92+
msgstr ""
93+
94+
#: ../../doc/code_snippets/README.md:40
95+
msgid "Running and testing examples from 'test'"
96+
msgstr ""
97+
98+
#: ../../doc/code_snippets/README.md:42
5899
msgid "To test all the examples, go to the `doc/code_snippets` folder and execute the `luatest` command:"
59100
msgstr ""
60101

61-
#: ../../doc/code_snippets/README.md:26
102+
#: ../../doc/code_snippets/README.md:44
62103
msgid ".rocks/bin/luatest\n"
63104
""
64105
msgstr ""
65106

66-
#: ../../doc/code_snippets/README.md:30
107+
#: ../../doc/code_snippets/README.md:48
67108
msgid "To test the examples from the specified directory, pass its relative path to the `luatest` command:"
68109
msgstr ""
69110

70-
#: ../../doc/code_snippets/README.md:32
111+
#: ../../doc/code_snippets/README.md:50
71112
msgid ".rocks/bin/luatest test/transactions\n"
72113
""
73114
msgstr ""
74115

75-
#: ../../doc/code_snippets/README.md:36
116+
#: ../../doc/code_snippets/README.md:54
76117
msgid "To test a specific example with the `stdout` output enabled, use the `luatest` command with the `-c` option, for example:"
77118
msgstr ""
78119

79-
#: ../../doc/code_snippets/README.md:38
120+
#: ../../doc/code_snippets/README.md:56
80121
msgid ".rocks/bin/luatest -c test/http_client/get_test.lua\n"
81122
""
82123
msgstr ""
83124

84-
#: ../../doc/code_snippets/README.md:42
125+
#: ../../doc/code_snippets/README.md:60
85126
msgid "Note that the HTTP client samples (placed in `test/http_client`) use the `httpbin` service. You can run `httpbin` locally using Docker to stabilize test results:"
86127
msgstr ""
87128

88-
#: ../../doc/code_snippets/README.md:45
129+
#: ../../doc/code_snippets/README.md:63
89130
msgid "docker run -p 80:80 kennethreitz/httpbin\n"
90131
""
91132
msgstr ""
92133

93-
#: ../../doc/code_snippets/README.md:49
134+
#: ../../doc/code_snippets/README.md:67
94135
msgid "In this case, you need to replace `https://httpbin.org` links with `http://127.0.0.1`."
95136
msgstr ""
96137

97-
#: ../../doc/code_snippets/README.md:52
138+
#: ../../doc/code_snippets/README.md:70
98139
msgid "Referencing code snippets"
99140
msgstr ""
100141

101-
#: ../../doc/code_snippets/README.md:53
142+
#: ../../doc/code_snippets/README.md:71
102143
msgid "To display a specific source file in a topic, use the `literalinclude` directive as follows:"
103144
msgstr ""
104145

105-
#: ../../doc/code_snippets/README.md:54
146+
#: ../../doc/code_snippets/README.md:72
106147
msgid ".. literalinclude:: /code_snippets/test/http_client/post_json_test.lua\n"
107148
" :language: lua\n"
108149
" :lines: 1-6\n"
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# SOME DESCRIPTIVE TITLE.
2+
# Copyright (C)
3+
# This file is distributed under the same license as the Tarantool package.
4+
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5+
#
6+
#, fuzzy
7+
msgid ""
8+
msgstr ""
9+
"Project-Id-Version: Tarantool 3.0\n"
10+
"Report-Msgid-Bugs-To: \n"
11+
"POT-Creation-Date: 2023-11-23 09:50+0000\n"
12+
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13+
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14+
"Language-Team: LANGUAGE <[email protected]>\n"
15+
"MIME-Version: 1.0\n"
16+
"Content-Type: text/plain; charset=UTF-8\n"
17+
"Content-Transfer-Encoding: 8bit\n"
18+
19+
#: ../../doc/code_snippets/snippets/replication/README.md:1
20+
msgid "Replication"
21+
msgstr ""
22+
23+
#: ../../doc/code_snippets/snippets/replication/README.md:3
24+
msgid "A sample application demonstrating various replication features."
25+
msgstr ""
26+
27+
#: ../../doc/code_snippets/snippets/replication/README.md:5
28+
msgid "Running"
29+
msgstr ""
30+
31+
#: ../../doc/code_snippets/snippets/replication/README.md:7
32+
msgid "To run applications placed in [instances.enabled](instances.enabled), go to the `replication` directory in the terminal and execute the `tt start` command, for example:"
33+
msgstr ""
34+
35+
#: ../../doc/code_snippets/snippets/replication/README.md:9
36+
msgid "$ tt start auto_leader\n"
37+
""
38+
msgstr ""
Lines changed: 107 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
# SOME DESCRIPTIVE TITLE.
2+
# Copyright (C)
3+
# This file is distributed under the same license as the Tarantool package.
4+
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5+
#
6+
#, fuzzy
7+
msgid ""
8+
msgstr ""
9+
"Project-Id-Version: Tarantool 3.0\n"
10+
"Report-Msgid-Bugs-To: \n"
11+
"POT-Creation-Date: 2023-11-23 09:50+0000\n"
12+
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13+
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14+
"Language-Team: LANGUAGE <[email protected]>\n"
15+
"MIME-Version: 1.0\n"
16+
"Content-Type: text/plain; charset=UTF-8\n"
17+
"Content-Transfer-Encoding: 8bit\n"
18+
19+
#: ../../doc/code_snippets/snippets/sharding/README.md:1
20+
msgid "Sharded cluster"
21+
msgstr ""
22+
23+
#: ../../doc/code_snippets/snippets/sharding/README.md:3
24+
msgid "A sample application demonstrating how to configure a [sharded](https://www.tarantool.io/en/doc/latest/concepts/sharding/) cluster."
25+
msgstr ""
26+
27+
#: ../../doc/code_snippets/snippets/sharding/README.md:5
28+
msgid "Running"
29+
msgstr ""
30+
31+
#: ../../doc/code_snippets/snippets/sharding/README.md:7
32+
msgid "To run the cluster, go to the `sharding` directory in the terminal and perform the following steps:"
33+
msgstr ""
34+
35+
#: ../../doc/code_snippets/snippets/sharding/README.md:9
36+
msgid "Install `vshard`:"
37+
msgstr ""
38+
39+
#: ../../doc/code_snippets/snippets/sharding/README.md:11
40+
msgid "$ tt rocks install vshard\n"
41+
""
42+
msgstr ""
43+
44+
#: ../../doc/code_snippets/snippets/sharding/README.md:15
45+
msgid "Run the cluster:"
46+
msgstr ""
47+
48+
#: ../../doc/code_snippets/snippets/sharding/README.md:17
49+
msgid "$ tt start sharded_cluster\n"
50+
""
51+
msgstr ""
52+
53+
#: ../../doc/code_snippets/snippets/sharding/README.md:21
54+
msgid "Connect to the router:"
55+
msgstr ""
56+
57+
#: ../../doc/code_snippets/snippets/sharding/README.md:23
58+
msgid "$ tt connect sharded_cluster:router-a-001\n"
59+
""
60+
msgstr ""
61+
62+
#: ../../doc/code_snippets/snippets/sharding/README.md:27
63+
msgid "Insert test data:"
64+
msgstr ""
65+
66+
#: ../../doc/code_snippets/snippets/sharding/README.md:29
67+
msgid "sharded_cluster:router-a-001> insert_data()\n"
68+
"---\n"
69+
"...\n"
70+
""
71+
msgstr ""
72+
73+
#: ../../doc/code_snippets/snippets/sharding/README.md:35
74+
msgid "Connect to storages in different replica sets to see how data is distributed across nodes:"
75+
msgstr ""
76+
77+
#: ../../doc/code_snippets/snippets/sharding/README.md:37
78+
msgid "a. `storage-a-001`:"
79+
msgstr ""
80+
81+
#: ../../doc/code_snippets/snippets/sharding/README.md:39
82+
msgid "sharded_cluster:storage-a-001> box.space.bands:select()\n"
83+
"---\n"
84+
"- - [1, 614, 'Roxette', 1986]\n"
85+
" - [2, 986, 'Scorpions', 1965]\n"
86+
" - [5, 755, 'Pink Floyd', 1965]\n"
87+
" - [7, 998, 'The Doors', 1965]\n"
88+
" - [8, 762, 'Nirvana', 1987]\n"
89+
"...\n"
90+
""
91+
msgstr ""
92+
93+
#: ../../doc/code_snippets/snippets/sharding/README.md:50
94+
msgid "b. `storage-b-001`:"
95+
msgstr ""
96+
97+
#: ../../doc/code_snippets/snippets/sharding/README.md:52
98+
msgid "sharded_cluster:storage-b-001> box.space.bands:select()\n"
99+
"---\n"
100+
"- - [3, 11, 'Ace of Base', 1987]\n"
101+
" - [4, 42, 'The Beatles', 1960]\n"
102+
" - [6, 55, 'The Rolling Stones', 1962]\n"
103+
" - [9, 299, 'Led Zeppelin', 1968]\n"
104+
" - [10, 167, 'Queen', 1970]\n"
105+
"...\n"
106+
""
107+
msgstr ""

0 commit comments

Comments
 (0)