2013-11-11 09:11:54 +00:00
|
|
|
|
# SOME DESCRIPTIVE TITLE
|
|
|
|
|
# Copyright (C) YEAR Free Software Foundation, Inc.
|
|
|
|
|
# This file is distributed under the same license as the PACKAGE package.
|
|
|
|
|
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
|
|
|
|
msgid ""
|
|
|
|
|
msgstr ""
|
|
|
|
|
"Project-Id-Version: PACKAGE VERSION\n"
|
2014-07-10 15:16:30 +00:00
|
|
|
|
"Report-Msgid-Bugs-To: \n"
|
2014-07-02 10:48:36 +00:00
|
|
|
|
"POT-Creation-Date: 2014-07-02 12:51+0200\n"
|
2013-11-11 09:11:54 +00:00
|
|
|
|
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
|
|
|
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
|
|
|
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
2014-07-10 15:16:30 +00:00
|
|
|
|
"Language: ru\n"
|
2013-11-11 09:11:54 +00:00
|
|
|
|
"MIME-Version: 1.0\n"
|
|
|
|
|
"Content-Type: text/plain; charset=UTF-8\n"
|
|
|
|
|
"Content-Transfer-Encoding: 8bit\n"
|
2014-07-10 15:16:30 +00:00
|
|
|
|
"X-Generator: Translate Toolkit 1.11.0\n"
|
2013-11-11 09:11:54 +00:00
|
|
|
|
|
|
|
|
|
#. type: One-char language identifier
|
|
|
|
|
#: train205.languagecode:1
|
|
|
|
|
#, no-wrap
|
|
|
|
|
msgid "E"
|
2014-08-08 11:40:33 +00:00
|
|
|
|
msgstr "R"
|
2013-11-11 09:11:54 +00:00
|
|
|
|
|
|
|
|
|
#. type: Title-text
|
|
|
|
|
#: train205/scene.txt:1
|
|
|
|
|
#, no-wrap
|
|
|
|
|
msgid "train205:Fighter Jet 2"
|
2014-08-08 11:40:33 +00:00
|
|
|
|
msgstr "train205:Истребитель 2"
|
2013-11-11 09:11:54 +00:00
|
|
|
|
|
|
|
|
|
#. type: Resume-text
|
|
|
|
|
#: train205/scene.txt:2
|
|
|
|
|
#, no-wrap
|
|
|
|
|
msgid "train205:Adapt the program to a mountainous terrain."
|
2014-08-08 11:40:33 +00:00
|
|
|
|
msgstr "train205:Приспособьте программу к горной местности."
|
2013-11-11 09:11:54 +00:00
|
|
|
|
|
|
|
|
|
#. type: ScriptName-text
|
|
|
|
|
#: train205/scene.txt:3
|
|
|
|
|
#, no-wrap
|
|
|
|
|
msgid "train205:Move"
|
2014-08-08 11:40:33 +00:00
|
|
|
|
msgstr "train205:Move"
|
2013-11-11 09:11:54 +00:00
|
|
|
|
|
|
|
|
|
#. type: \b; header
|
|
|
|
|
#: train205-help/tant5.txt:1
|
2014-07-10 15:16:30 +00:00
|
|
|
|
#, no-wrap
|
2014-08-08 11:40:33 +00:00
|
|
|
|
#, fuzzy, no-wrap
|
2013-11-11 09:11:54 +00:00
|
|
|
|
msgid "Objective"
|
2014-08-08 11:40:33 +00:00
|
|
|
|
msgstr "Задание"
|
2013-11-11 09:11:54 +00:00
|
|
|
|
|
|
|
|
|
#. type: Plain text
|
|
|
|
|
#: train205-help/tant5.txt:3
|
2014-07-10 15:16:30 +00:00
|
|
|
|
#, no-wrap
|
2014-08-08 11:40:33 +00:00
|
|
|
|
#, fuzzy, no-wrap
|
2014-07-10 15:16:30 +00:00
|
|
|
|
msgid ""
|
|
|
|
|
"Adapt the flying height of the <a object|botfj>winged shooter</a> to the "
|
|
|
|
|
"terrain."
|
|
|
|
|
msgstr ""
|
2014-08-08 11:40:33 +00:00
|
|
|
|
"Приспособьте высоту полета <a object|botfj>крылатого стрелка</a> к "
|
|
|
|
|
"неровностям местности."
|
2013-11-11 09:11:54 +00:00
|
|
|
|
|
|
|
|
|
#. type: \t; header
|
|
|
|
|
#: train205-help/tant5.txt:4
|
2014-07-10 15:16:30 +00:00
|
|
|
|
#, no-wrap
|
2014-08-08 11:40:33 +00:00
|
|
|
|
#, fuzzy, no-wrap
|
2013-11-11 09:11:54 +00:00
|
|
|
|
msgid "Program"
|
2014-08-08 11:40:33 +00:00
|
|
|
|
msgstr "Программа"
|
2013-11-11 09:11:54 +00:00
|
|
|
|
|
|
|
|
|
#. type: Plain text
|
|
|
|
|
#: train205-help/tant5.txt:6
|
2014-07-10 15:16:30 +00:00
|
|
|
|
#, no-wrap
|
2014-08-08 11:40:33 +00:00
|
|
|
|
#, fuzzy, no-wrap
|
2013-11-11 09:11:54 +00:00
|
|
|
|
msgid "Here is one more time the program of the previous exercise that hunts ants:"
|
2014-07-10 15:16:30 +00:00
|
|
|
|
msgstr ""
|
2014-08-08 11:40:33 +00:00
|
|
|
|
"Еще раз приводится программа из предыдущего упражнения, которая охотится на "
|
|
|
|
|
"муравьев:"
|
2013-11-11 09:11:54 +00:00
|
|
|
|
|
|
|
|
|
#. type: \s; block (usually verbatim code)
|
|
|
|
|
#: train205-help/tant5.txt:31
|
2014-07-10 15:16:30 +00:00
|
|
|
|
#, no-wrap
|
2014-08-08 11:40:33 +00:00
|
|
|
|
#, fuzzy, no-wrap
|
2013-11-11 09:11:54 +00:00
|
|
|
|
msgid ""
|
|
|
|
|
"extern void object::JetFighter1()\n"
|
|
|
|
|
"{\n"
|
|
|
|
|
"\tobject item;\n"
|
|
|
|
|
"\t\n"
|
|
|
|
|
"\taim(-20);\n"
|
|
|
|
|
"\tjet(0.2);\n"
|
|
|
|
|
"\twhile (position.z < 10)\n"
|
|
|
|
|
"\t{\n"
|
|
|
|
|
"\t\twait(0.2);\n"
|
|
|
|
|
"\t}\n"
|
|
|
|
|
"\tjet(0);\n"
|
|
|
|
|
"\t\n"
|
|
|
|
|
"\twhile (true)\n"
|
|
|
|
|
"\t{\n"
|
|
|
|
|
"\t\twhile (radar(AlienAnt, 0, 360, 0, 20) == null)\n"
|
|
|
|
|
"\t\t{\n"
|
|
|
|
|
"\t\t\titem = radar(AlienAnt);\n"
|
|
|
|
|
"\t\t\tturn(direction(item.position));\n"
|
|
|
|
|
"\t\t\tmotor(1,1);\n"
|
|
|
|
|
"\t\t\twait(0.2);\n"
|
|
|
|
|
"\t\t}\n"
|
|
|
|
|
"\t\tfire(1);\n"
|
|
|
|
|
"\t}\n"
|
|
|
|
|
"}"
|
|
|
|
|
msgstr ""
|
2014-08-08 11:40:33 +00:00
|
|
|
|
"extern void object::JetFighter1()\n"
|
|
|
|
|
"{\n"
|
|
|
|
|
"\tobject item;\n"
|
|
|
|
|
"\t\n"
|
|
|
|
|
"\taim(-20);\n"
|
|
|
|
|
"\tjet(0.2);\n"
|
|
|
|
|
"\twhile (position.z < 10)\n"
|
|
|
|
|
"\t{\n"
|
|
|
|
|
"\t\twait(0.2);\n"
|
|
|
|
|
"\t}\n"
|
|
|
|
|
"\tjet(0);\n"
|
|
|
|
|
"\t\n"
|
|
|
|
|
"\twhile (true)\n"
|
|
|
|
|
"\t{\n"
|
|
|
|
|
"\t\twhile (radar(AlienAnt, 0, 360, 0, 20) == null)\n"
|
|
|
|
|
"\t\t{\n"
|
|
|
|
|
"\t\t\titem = radar(AlienAnt);\n"
|
|
|
|
|
"\t\t\tturn(direction(item.position));\n"
|
|
|
|
|
"\t\t\tmotor(1,1);\n"
|
|
|
|
|
"\t\t\twait(0.2);\n"
|
|
|
|
|
"\t\t}\n"
|
|
|
|
|
"\t\tfire(1);\n"
|
|
|
|
|
"\t}\n"
|
|
|
|
|
"}"
|
2013-11-11 09:11:54 +00:00
|
|
|
|
|
|
|
|
|
#. type: Plain text
|
|
|
|
|
#: train205-help/tant5.txt:33
|
2014-07-10 15:16:30 +00:00
|
|
|
|
#, no-wrap
|
2014-08-08 11:40:33 +00:00
|
|
|
|
#, fuzzy, no-wrap
|
2014-07-10 15:16:30 +00:00
|
|
|
|
msgid ""
|
|
|
|
|
"The bot always stays at an altitude of 10m above sea level. This is not "
|
|
|
|
|
"adapted to the mountainous terrain of the present exercise, the bot has got "
|
|
|
|
|
"to adapt to the terrain. The best way to do so is to insert just before the "
|
|
|
|
|
"<c/>wait(0.2);<n/> a test to see if the height above ground is too low or "
|
|
|
|
|
"too high, and to react accordingly."
|
|
|
|
|
msgstr ""
|
2014-08-08 11:40:33 +00:00
|
|
|
|
"Бот всегда остается на высоте 10 метров над уровнем моря. Это не подходит "
|
|
|
|
|
"для горной местности текущего упражнения, бот должен приспособиться к "
|
|
|
|
|
"местности. Лучший способ достичь этого заключается в том, чтобы вставить "
|
|
|
|
|
"перед <c/>wait(0.2);<n/> проверку, чтобы узнать текущую высоту бота над "
|
|
|
|
|
"землей: большая она или малая, и заставить бота соответственно реагировать "
|
|
|
|
|
"на это."
|
2013-11-11 09:11:54 +00:00
|
|
|
|
|
|
|
|
|
#. type: Plain text
|
|
|
|
|
#: train205-help/tant5.txt:35
|
2014-07-10 15:16:30 +00:00
|
|
|
|
#, no-wrap
|
2014-08-08 11:40:33 +00:00
|
|
|
|
#, fuzzy, no-wrap
|
2014-07-10 15:16:30 +00:00
|
|
|
|
msgid ""
|
|
|
|
|
"We already saw that <code>position.z</code> gives the altitude above sea "
|
|
|
|
|
"level. <code><a cbot|topo>topo</a>(position)</code> gives the altitude of "
|
|
|
|
|
"the ground at the position of the bot. If we want the bot to stay at an "
|
|
|
|
|
"altitude between 6 and 9m above ground, we must treat the following cases: "
|
|
|
|
|
"if <code>position.z-topo(position)</code> is smaller than 6, the bot must "
|
|
|
|
|
"climb with <c/>jet(1);<n/>. If <code>position.z-topo(position)</code> is "
|
|
|
|
|
"greater than 9, the bot must go down with <c/>jet(-1);<n/>. In order to "
|
|
|
|
|
"program these tests, use the instruction <code><a cbot|if>if</a></code>, "
|
|
|
|
|
"that executes the instructions in braces only once if the condition is true:"
|
|
|
|
|
msgstr ""
|
2014-08-08 11:40:33 +00:00
|
|
|
|
"Мы уже увидели, что <code>position.z</code> задает высоту над уровнем моря. "
|
|
|
|
|
"<code><a cbot|topo>topo</a>(position)</code> задает высоту земли в том "
|
|
|
|
|
"месте, где стоит бот. Если мы хотим, чтобы бот оставался над землей на "
|
|
|
|
|
"высоте между 6 и 9 метрами, то должны учитывать следующие случаи: если "
|
|
|
|
|
"<code>position.z-topo(position)</code> меньше 6, бот должен набрать высоту "
|
|
|
|
|
"<c/>jet(1);<n/>. Если <code>position.z-topo(position)</code> больше 9, бот "
|
|
|
|
|
"должен опуститься вниз <c/>jet(-1);<n/>. Чтобы запрограммировать эти "
|
|
|
|
|
"проверки, используйте инструкцию <code><a cbot|if>if</a></code>, которая "
|
|
|
|
|
"запускает инструкцию в скобках только раз, если условие истинно:"
|
2013-11-11 09:11:54 +00:00
|
|
|
|
|
|
|
|
|
#. type: \s; block (usually verbatim code)
|
|
|
|
|
#: train205-help/tant5.txt:46
|
2014-07-10 15:16:30 +00:00
|
|
|
|
#, no-wrap
|
2014-08-08 11:40:33 +00:00
|
|
|
|
#, fuzzy, no-wrap
|
2013-11-11 09:11:54 +00:00
|
|
|
|
msgid ""
|
|
|
|
|
"\tjet(0);\n"
|
|
|
|
|
"\tif (position.z-topo(position) < 6)\n"
|
|
|
|
|
"\t{\n"
|
|
|
|
|
"\t\tjet(1);\n"
|
|
|
|
|
"\t}\n"
|
|
|
|
|
"\t\n"
|
|
|
|
|
"\tif (position.z-topo(position) > 9)\n"
|
|
|
|
|
"\t{\n"
|
|
|
|
|
"\t\tjet(-1);\n"
|
|
|
|
|
"\t}"
|
|
|
|
|
msgstr ""
|
2014-08-08 11:40:33 +00:00
|
|
|
|
"\tjet(0);\n"
|
|
|
|
|
"\tif (position.z-topo(position) < 6)\n"
|
|
|
|
|
"\t{\n"
|
|
|
|
|
"\t\tjet(1);\n"
|
|
|
|
|
"\t}\n"
|
|
|
|
|
"\t\n"
|
|
|
|
|
"\tif (position.z-topo(position) > 9)\n"
|
|
|
|
|
"\t{\n"
|
|
|
|
|
"\t\tjet(-1);\n"
|
|
|
|
|
"\t}"
|
2013-11-11 09:11:54 +00:00
|
|
|
|
|
|
|
|
|
#. type: Plain text
|
|
|
|
|
#: train205-help/tant5.txt:48
|
2014-07-10 15:16:30 +00:00
|
|
|
|
#, no-wrap
|
2014-08-08 11:40:33 +00:00
|
|
|
|
#, fuzzy, no-wrap
|
2014-07-10 15:16:30 +00:00
|
|
|
|
msgid ""
|
|
|
|
|
"Before starting the testing, stabilize the altitude with <c/>jet(0);<n/>: in "
|
|
|
|
|
"case the height above ground lies between 6 and 9m, the bot must neither "
|
|
|
|
|
"climb nor go down. If afterwards either <c/>jet(1);<n/> or <c/>jet(-1);<n/> "
|
|
|
|
|
"is executed, it will cancel the previous <c/>jet(0);<n/>."
|
|
|
|
|
msgstr ""
|
2014-08-08 11:40:33 +00:00
|
|
|
|
"Перед тем, как начать проверку, стабилизируйте высоту бота <c/>jet(0);<n/>: "
|
|
|
|
|
"в случае, когда высота над землей лежит между 6 и 9 метрами, бот не должен "
|
|
|
|
|
"подниматься или опускаться. В противном случае выполняется или "
|
|
|
|
|
"<c/>jet(1);<n/> или <c/>jet(-1);<n/> , что отменит предыдущее "
|
|
|
|
|
"<c/>jet(0);<n/>."
|
2013-11-11 09:11:54 +00:00
|
|
|
|
|
|
|
|
|
#. type: Plain text
|
|
|
|
|
#: train205-help/tant5.txt:50
|
2014-07-10 15:16:30 +00:00
|
|
|
|
#, no-wrap
|
2014-08-08 11:40:33 +00:00
|
|
|
|
#, fuzzy, no-wrap
|
2014-07-10 15:16:30 +00:00
|
|
|
|
msgid ""
|
|
|
|
|
"Just insert these lines before the <code>wait(0.2)</code>, and the bot will "
|
|
|
|
|
"adapt to the terrain. You can then delete the first lines of the program "
|
|
|
|
|
"that set the initial altitude at 10m."
|
|
|
|
|
msgstr ""
|
2014-08-08 11:40:33 +00:00
|
|
|
|
"Просто вставьте эти строки перед <code>wait(0.2)</code>, и бот сможет "
|
|
|
|
|
"приспосабливаться к местности. После этого вы можете удалить первые строки "
|
|
|
|
|
"программы, устанавливающие начальную высоту в 10 метров."
|
2013-11-11 09:11:54 +00:00
|
|
|
|
|
|
|
|
|
#. type: \t; header
|
|
|
|
|
#: train205-help/tant5.txt:51
|
2014-07-10 15:16:30 +00:00
|
|
|
|
#, no-wrap
|
2014-08-08 11:40:33 +00:00
|
|
|
|
#, fuzzy, no-wrap
|
2013-11-11 09:11:54 +00:00
|
|
|
|
msgid "See also"
|
2014-08-08 11:40:33 +00:00
|
|
|
|
msgstr "См. также"
|
2013-11-11 09:11:54 +00:00
|
|
|
|
|
|
|
|
|
#. type: Plain text
|
|
|
|
|
#: train205-help/tant5.txt:52
|
2014-07-10 15:16:30 +00:00
|
|
|
|
#, no-wrap
|
2014-08-08 11:40:33 +00:00
|
|
|
|
#, fuzzy, no-wrap
|
2014-07-10 15:16:30 +00:00
|
|
|
|
msgid ""
|
|
|
|
|
"<a cbot>Programming</a>, <a cbot|type>types</a> and <a "
|
|
|
|
|
"cbot|category>categories</a>."
|
|
|
|
|
msgstr ""
|
2014-08-08 11:40:33 +00:00
|
|
|
|
"<a cbot>Программирование</a>, <a cbot|type>типы</a> и <a "
|
|
|
|
|
"cbot|category>категории</a>."
|