-
Notifications
You must be signed in to change notification settings - Fork 310
Expand file tree
/
Copy pathsimple_drawing.po
More file actions
240 lines (206 loc) · 13.2 KB
/
simple_drawing.po
File metadata and controls
240 lines (206 loc) · 13.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2012–2014, OpenTechSchool and contributors
# This file is distributed under the same license as the Introduction to Programming with Python package.
#
# Translators:
# sorrymak <dearalcher@gmail.com>, 2013-2015
msgid ""
msgstr ""
"Project-Id-Version: Python for beginners\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-10-02 06:32+1000\n"
"PO-Revision-Date: 2015-01-16 13:02+0000\n"
"Last-Translator: sorrymak <dearalcher@gmail.com>\n"
"Language-Team: Russian (http://www.transifex.com/opentechschool/python-for-beginners/language/ru/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: ru\n"
"Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || (n%100>=11 && n%100<=14)? 2 : 3);\n"
#: ../../../source/simple_drawing.rst:2
msgid "Simple drawing with turtle"
msgstr "Простое рисование с помощью черепашки"
#: ../../../source/simple_drawing.rst:5
msgid "Introduction"
msgstr "Введение"
#: ../../../source/simple_drawing.rst:7
msgid "Turtle is like a drawing board."
msgstr "Черепашка похожа на доску для рисования."
#: ../../../source/simple_drawing.rst:9
msgid ""
"It has functions like ``turtle.forward(...)`` and ``turtle.left(...)`` which"
" can move the turtle around."
msgstr "У неё есть функции в стиле ``turtle.forward(...)`` и ``turtle.left(...)``, с помощью которых черепашка может двигаться."
#: ../../../source/simple_drawing.rst:12
msgid ""
"Before you can use turtle, you have to import it. We recommend playing "
"around with it in the interactive interpreter first, as there is an extra "
"bit of work required to make it work from files. Just go to your terminal "
"and type::"
msgstr "Перед тем как начать работу с черепашкой, необходимо импортировать соответствующий модуль. Мы рекомендуем экспериментировать с ней в интерактивной оболочке (для начала), т.к. при использовании файлов придётся заниматься дополнительной утомительной работой. Перейди в терминал и введи::"
#: ../../../source/simple_drawing.rst:22
msgid ""
"Not seeing anything on Mac OS? Try issuing a command like "
"``turtle.forward(0)`` and looking if a new window opened behind your command"
" line."
msgstr "Ничего не видите в Mac OS? Попробуйте выполнить команду, например, "
"``turtle.forward(0)``, и посмотрите, не открылось ли новое окно позади вашей командной "
"строки."
#: ../../../source/simple_drawing.rst:28
msgid ""
"Do you work with Ubuntu and get the error message \"No module named "
"_tkinter\"? Install the missing package with ``sudo apt-get install "
"python3-tk``"
msgstr "Используешь Ubuntu и получаешь сообщение об ошибке \"No module named _tkinter\"? Установи отсутствующий необходимый пакет: ``sudo apt-get install python3-tk``"
#: ../../../source/simple_drawing.rst:34
msgid ""
"While it might be tempting to just copy and paste what's written on this "
"page into your terminal, we encourage you to type out each command. Typing "
"gets the syntax under your fingers (building that muscle memory!) and can "
"even help avoid strange syntax errors."
msgstr "Хотя может возникнуть соблазн просто скопировать и вставить то, что написано на этой "
"странице, в ваш терминал, мы рекомендуем вводить каждую команду вручную. Набор "
"команд помогает запомнить синтаксис (тренирует мышечную память!) и даже может "
"помочь избежать странных синтаксических ошибок."
#: ../../../source/simple_drawing.rst:52
msgid ""
"The ``turtle.forward(...)`` function tells the turtle to move forward by the"
" given distance. ``turtle.left(...)`` takes a number of degrees which you "
"want to rotate to the left. There is also ``turtle.backward(...)`` and "
"``turtle.right(...)``, too."
msgstr "Функция ``turtle.forward(...)`` заставляет черепашку двигаться вперёд на указанное расстояние. ``turtle.left(...)`` приказывает черепашке повернуться влево на указанную градусную меру угла. А ``turtle.backward(...)`` и ``turtle.right(...)`` действуют анлогично — первая заставляет черепашку двигаться назад, а вторая — поворачиваться вправо."
#: ../../../source/simple_drawing.rst:58
msgid ""
"Want to start fresh? You can type ``turtle.reset()`` to clear the drawing "
"that your ``turtle`` has made so far. We'll go into more detail on "
"``turtle.reset()`` in just a bit."
msgstr "Если ты хочешь начать заново, введи ``turtle.reset()``, чтобы стереть рисунок. Мы рассмотрим ``turtle.reset()`` подробнее немного позже."
#: ../../../source/simple_drawing.rst:62
msgid ""
"The standard turtle is just a triangle. That's no fun! Let's make it a "
"turtle instead with the ``turtle.shape()`` command::"
msgstr "Стандартная \"черепашка\" -- всего лишь треугольник. Это не интересно! Придадим ей нормальный вид командой ``turtle.shape()``::"
#: ../../../source/simple_drawing.rst:67
msgid "So much cuter!"
msgstr "Так намного лучше!"
#: ../../../source/simple_drawing.rst:69
msgid ""
"If you put the commands into a file, you might have recognized that the "
"turtle window vanishes after the turtle finished its movement. (That is "
"because Python exits when your turtle has finished moving. Since the turtle"
" window belongs to Python, it terminates as well.) To prevent that, just "
"put ``turtle.exitonclick()`` at the bottom of your file. Now the window "
"stays open until you click on it::"
msgstr "Если вы поместили команды в файл, то могли заметить, что "
"окно черепашки исчезает после того, как она завершит движение. (Это происходит "
"потому, что Python завершает работу, когда ваша черепашка закончила движение. Поскольку окно "
"черепашки принадлежит Python, оно также закрывается.) Чтобы этого избежать, просто "
"добавьте ``turtle.exitonclick()`` в конец вашего файла. Теперь окно "
"будет оставаться открытым, пока вы не кликнете по нему:"
#: ../../../source/simple_drawing.rst:86
msgid ""
"Python is a programming language where horizontal indenting of text is "
"important. We'll learn all about this in the Functions chapter later on, but"
" for now just keep in mind that stray spaces or tabs before any line of "
"Python code can cause an unexpected error."
msgstr "Python — язык программирования, в котором крайне важны отступы в коде. Подробности мы узнаем позже, в главах про функции, но сейчас тебе просто необходимо запомнить, что лишний пробел или символ табуляции перед строкой может вызвать ошибку."
#: ../../../source/simple_drawing.rst:92
msgid "Drawing a square"
msgstr "Рисуем квадрат"
#: ../../../source/simple_drawing.rst:96
msgid ""
"You're not always expected to know the anwer immediately. Learn by trial and"
" error! Experiment, see what python does when you tell it different things, "
"what gives beautiful (although sometimes unexpected) results and what gives "
"errors. If you want to keep playing with something you learned that creates "
"interesting results, that's OK too. Don't hesitate to try and fail and learn"
" from it!"
msgstr ""
#: ../../../source/simple_drawing.rst:105
#: ../../../source/simple_drawing.rst:182
#: ../../../source/simple_drawing.rst:215
msgid "Exercise"
msgstr "Упражнение"
#: ../../../source/simple_drawing.rst:107
msgid "Draw a square as in the following picture:"
msgstr "Нарисуй квадрат, как на рисунке ниже:"
#: ../../../source/simple_drawing.rst:111
msgid ""
"For a square you will probably need a right angle, which is 90 degrees."
msgstr "Для квадрата тебе понадобится прямоугольный, т.е. 90-градусный, угол."
#: ../../../source/simple_drawing.rst:116
#: ../../../source/simple_drawing.rst:191
#: ../../../source/simple_drawing.rst:227
msgid "Solution"
msgstr "Решение"
#: ../../../source/simple_drawing.rst:131
msgid ""
"Notice how the turtle starts and finishes in the same place and facing the "
"same direction, before and after drawing the square. This is a useful "
"convention to follow, it makes it easier to draw multiple shapes later on."
msgstr ""
#: ../../../source/simple_drawing.rst:137
#: ../../../source/simple_drawing.rst:205
msgid "Bonus"
msgstr "Дополнительно"
#: ../../../source/simple_drawing.rst:139
msgid ""
"If you want to get creative, you can modify your shape with the "
"``turtle.width(...)`` and ``turtle.color(...)`` functions. How do you use "
"these functions? Before you can use a function you need to know its "
"*signature* (for example the number of parameters and what they mean.) To "
"find this out you can type ``help(turtle.color)`` into the Python shell. If "
"there is a lot of text, Python will put the help text into a *pager*, which "
"lets you page up and down. Press the :kbd:`q` key to exit the pager."
msgstr ""
#: ../../../source/simple_drawing.rst:150
msgid "Are you seeing an error like this::"
msgstr "Видишь такую ошибку::"
#: ../../../source/simple_drawing.rst:154
msgid ""
"when trying to view help? In Python you have to import names before you can "
"refer to them, so in a new Python interactive shell you'll need to ``import "
"turtle`` before ``help(turtle.color)`` will work."
msgstr "когда пытаешься просмотреть справку? В Python необходимо импортировать имена, перед тем, как обращаться к ним, т.е. в нашем случае необходимо выполнить ``import turtle`` перед ``help(turtle.color)``."
#: ../../../source/simple_drawing.rst:158
msgid ""
"Another way to find out about functions is to browse the `online "
"documentation`_."
msgstr "Также найти информацию о функциях можно в `онлайн-документации <http://docs.python.org/library/turtle>`_."
#: ../../../source/simple_drawing.rst:165
msgid ""
"If you misdrew anything, you can tell turtle to erase its drawing board with"
" the ``turtle.reset()`` directive or undo the most recent step with "
"``turtle.undo()``."
msgstr "Если ты допустил ошибку, то ты можешь воспользоваться командой ``turtle.reset()``, чтобы стереть рисунок, либо командой ``turtle.undo()``., чтобы отменить последние действия."
#: ../../../source/simple_drawing.rst:171
msgid ""
"As you might have read in the help, you can modify the color with "
":samp:`turtle.color({colorstring})`. These include but are not limited to "
"\"red,\" \"green,\" and \"violet.\" See the `colours manual`_ for an "
"extensive list."
msgstr ""
#: ../../../source/simple_drawing.rst:179
msgid "Drawing a rectangle"
msgstr "Рисуем прямоугольник"
#: ../../../source/simple_drawing.rst:184
msgid "Can you draw a rectangle too?"
msgstr "Ты тоже можешь нарисовать прямоугольник?"
#: ../../../source/simple_drawing.rst:207
msgid ""
"How about a triangle? In an equilateral triangle (a triangle with all sides "
"of equal length) each corner has an angle of 60 degrees."
msgstr ""
#: ../../../source/simple_drawing.rst:212
msgid "More squares"
msgstr "Больше квадратов"
#: ../../../source/simple_drawing.rst:217
msgid ""
"Now, draw a tilted square. And another one, and another one. You can "
"experiment with the angles between the individual squares."
msgstr ""
#: ../../../source/simple_drawing.rst:222
msgid ""
"The picture shows three 20 degree turns. You could try 20, 30 and 40, for "
"example."
msgstr "На изображении показан поворот черепашки на 20 градусов. Ты же можешь попробовать, например, 30 или 40."