colobot-data/levels/exercises/chapter004/level002/po/de.po

232 lines
7.7 KiB
Plaintext
Raw Normal View History

2013-10-25 13:45:09 +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"
"Report-Msgid-Bugs-To: \n"
2014-09-20 20:29:05 +00:00
"POT-Creation-Date: DATE\n"
2013-10-25 13:45:09 +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"
"Language: de\n"
2013-10-25 13:45:09 +00:00
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Translate Toolkit 1.11.0\n"
2013-10-25 13:45:09 +00:00
#. type: One-char language identifier
2014-09-20 20:29:05 +00:00
#: levels/levels-po/exercises/chapter004/level002/po/scene_langchar.txt:1
2013-10-25 13:45:09 +00:00
#, no-wrap
msgid "E"
msgstr "D"
#. type: Title-text
2014-09-20 20:29:05 +00:00
#: levels/exercises/chapter004/level002/scene.txt:1
2013-10-25 13:45:09 +00:00
#, no-wrap
2014-09-20 20:29:05 +00:00
msgid "Radar"
2013-10-25 13:45:09 +00:00
msgstr ""
#. type: Resume-text
2014-09-20 20:29:05 +00:00
#: levels/exercises/chapter004/level002/scene.txt:2
2013-10-25 13:45:09 +00:00
#, no-wrap
2014-09-20 20:29:05 +00:00
msgid "Use the radar to find lots of stupid blue crosses."
2013-10-25 13:45:09 +00:00
msgstr ""
#. type: ScriptName-text
2014-09-20 20:29:05 +00:00
#: levels/exercises/chapter004/level002/scene.txt:3
2013-10-25 13:45:09 +00:00
#, no-wrap
2014-09-20 20:29:05 +00:00
msgid "Find"
2013-10-25 13:45:09 +00:00
msgstr ""
#. type: \b; header
2014-09-20 20:29:05 +00:00
#: levels/exercises/chapter004/level002/help/help.E.txt:1
2013-10-25 13:45:09 +00:00
#, no-wrap
msgid "Exercise"
msgstr ""
#. type: Plain text
2014-09-20 20:29:05 +00:00
#: levels/exercises/chapter004/level002/help/help.E.txt:3
2013-10-25 13:45:09 +00:00
#, no-wrap
2014-09-20 20:29:05 +00:00
msgid "Let the bot find all the <a object|waypoint>blue crosses</a> on the ground. As soon as the bot passed over one of the crosses, it will disappear. Here is the general principle that you will apply:"
2013-10-25 13:45:09 +00:00
msgstr ""
#. type: Plain text
2014-09-20 20:29:05 +00:00
#: levels/exercises/chapter004/level002/help/help.E.txt:5
2013-10-25 13:45:09 +00:00
#, no-wrap
msgid "Repeat forever:\n"
msgstr ""
#. type: Bullet: 'o'
2014-09-20 20:29:05 +00:00
#: levels/exercises/chapter004/level002/help/help.E.txt:5
2013-10-25 13:45:09 +00:00
#, no-wrap
msgid "Look for a cross"
msgstr ""
#. type: Bullet: 'o'
2014-09-20 20:29:05 +00:00
#: levels/exercises/chapter004/level002/help/help.E.txt:6
2013-10-25 13:45:09 +00:00
#, no-wrap
msgid "If there is none, stop the program."
msgstr ""
#. type: Bullet: 'o'
2014-09-20 20:29:05 +00:00
#: levels/exercises/chapter004/level002/help/help.E.txt:7
2013-10-25 13:45:09 +00:00
#, no-wrap
msgid "Calculate the direction of the cross."
msgstr ""
#. type: Bullet: 'o'
2014-09-20 20:29:05 +00:00
#: levels/exercises/chapter004/level002/help/help.E.txt:8
2013-10-25 13:45:09 +00:00
#, no-wrap
2014-09-20 20:29:05 +00:00
msgid "Set the speed of the motors in such a way that they will find their way to the cross."
2013-10-25 13:45:09 +00:00
msgstr ""
#. type: \b; header
2014-09-20 20:29:05 +00:00
#: levels/exercises/chapter004/level002/help/help.E.txt:10
2013-10-25 13:45:09 +00:00
#, no-wrap
msgid "The program"
msgstr ""
#. type: Plain text
2014-09-20 20:29:05 +00:00
#: levels/exercises/chapter004/level002/help/help.E.txt:12
2013-10-25 13:45:09 +00:00
#, no-wrap
2014-09-20 20:29:05 +00:00
msgid "Use a <code><a cbot|while>while</a></code> loop in order to repeat several instructions over and over:"
2013-10-25 13:45:09 +00:00
msgstr ""
#. type: \s; block (usually verbatim code)
2014-09-20 20:29:05 +00:00
#: levels/exercises/chapter004/level002/help/help.E.txt:16
2013-10-25 13:45:09 +00:00
#, no-wrap
msgid ""
"<code>while ( true )\n"
"{\n"
"\t</code>instructions...<c/>\n"
"}"
msgstr ""
#. type: Plain text
2014-09-20 20:29:05 +00:00
#: levels/exercises/chapter004/level002/help/help.E.txt:18
2013-10-25 13:45:09 +00:00
#, no-wrap
2014-09-20 20:29:05 +00:00
msgid "The instruction <code><a cbot|radar>radar</a></code> will detect the blue crosses and put their description into a variable, for example <code>spot</code>. In this case, <code><a cbot|radar>radar</a>()</code> needs only one parameter, i.e. the category of the object that it must look for:"
2013-10-25 13:45:09 +00:00
msgstr ""
#. type: \s; block (usually verbatim code)
2014-09-20 20:29:05 +00:00
#: levels/exercises/chapter004/level002/help/help.E.txt:19
2013-10-25 13:45:09 +00:00
#, no-wrap
msgid "<c/>spot = radar(WayPoint);"
msgstr ""
#. type: Plain text
2014-09-20 20:29:05 +00:00
#: levels/exercises/chapter004/level002/help/help.E.txt:21
2013-10-25 13:45:09 +00:00
#, no-wrap
2014-09-20 20:29:05 +00:00
msgid "Once all the crosses have been found, <code>radar</code> will return the value <code><a cbot|null>null</a></code>. You will have to test this case and react accordingly with the instruction <code><a cbot|if>if</a></code>:"
2013-10-25 13:45:09 +00:00
msgstr ""
#. type: \s; block (usually verbatim code)
2014-09-20 20:29:05 +00:00
#: levels/exercises/chapter004/level002/help/help.E.txt:26
2013-10-25 13:45:09 +00:00
#, no-wrap
msgid ""
"<c/>if ( spot == null ) // no more ?\n"
"{\n"
"\tmotor(0, 0); // stops the motors\n"
"\tbreak; // stops the loop\n"
"}"
msgstr ""
#. type: Plain text
2014-09-20 20:29:05 +00:00
#: levels/exercises/chapter004/level002/help/help.E.txt:27
2013-10-25 13:45:09 +00:00
#, no-wrap
2014-09-20 20:29:05 +00:00
msgid "<n/>The instruction <code><a cbot|break>break</a></code> will stop the infinite loop <code>while (true)</code>."
2013-10-25 13:45:09 +00:00
msgstr ""
#. type: Plain text
2014-09-20 20:29:05 +00:00
#: levels/exercises/chapter004/level002/help/help.E.txt:29
2013-10-25 13:45:09 +00:00
#, no-wrap
2014-09-20 20:29:05 +00:00
msgid "Use the instruction <code><a cbot|direct>direction</a>()</code> to calculate the angle of the rotation that the bot must perform in order to turn towards the blue cross. The coordinates of the object are given by <code>spot.position</code>. The following line will put the angle of the necessary rotation into the <a cbot|var>variable</a> <code>dir</code>:"
2013-10-25 13:45:09 +00:00
msgstr ""
#. type: \s; block (usually verbatim code)
2014-09-20 20:29:05 +00:00
#: levels/exercises/chapter004/level002/help/help.E.txt:30
2013-10-25 13:45:09 +00:00
#, no-wrap
msgid "<c/>dir = direction(spot.position);"
msgstr ""
#. type: Plain text
2014-09-20 20:29:05 +00:00
#: levels/exercises/chapter004/level002/help/help.E.txt:32
2013-10-25 13:45:09 +00:00
#, no-wrap
2014-09-20 20:29:05 +00:00
msgid "The value of the angle is positive if the blue cross is on your left hand, and negative if it is on your right hand. If the cross to be reached is on your left hand, you must set the right-hand motor to full speed, and set the left-hand motor to a lower speed, according to the angle:"
2013-10-25 13:45:09 +00:00
msgstr ""
#. type: Plain text
2014-09-20 20:29:05 +00:00
#: levels/exercises/chapter004/level002/help/help.E.txt:38
2013-10-25 13:45:09 +00:00
#, no-wrap
msgid ""
" direction = <code> 0</code> -> speed = <code> 1.0</code>\n"
" direction = <code> 45</code> -> speed = <code> 0.5</code>\n"
" direction = <code> 90</code> -> speed = <code> 0.0</code>\n"
" direction = <code>135</code> -> speed = <code>-0.5</code>\n"
" direction = <code>180</code> -> speed = <code>-1.0</code>"
msgstr ""
#. type: Plain text
2014-09-20 20:29:05 +00:00
#: levels/exercises/chapter004/level002/help/help.E.txt:40
2013-10-25 13:45:09 +00:00
#, no-wrap
2014-09-20 20:29:05 +00:00
msgid "The graphic below shows the speed of the left-hand and right-hand motor as set by the instruction <code><a cbot|motor>motor</a></code>, according to the angle:"
2013-10-25 13:45:09 +00:00
msgstr ""
#. type: Image filename
2014-09-20 20:29:05 +00:00
#: levels/exercises/chapter004/level002/help/help.E.txt:41
2013-10-25 13:45:09 +00:00
#, no-wrap
msgid "radar2"
msgstr ""
#. type: Plain text
2014-09-20 20:29:05 +00:00
#: levels/exercises/chapter004/level002/help/help.E.txt:43
2013-10-25 13:45:09 +00:00
#, no-wrap
2014-09-20 20:29:05 +00:00
msgid "If the cross is straight ahead, the angle is 0 degrees. The motors will get the speeds 1 and 1, which means full speed ahead. If the cross is behind, the right motor will be set to speed -1: it will turn around. You can use the <a cbot|expr>expression</a> <code>1+dir/90</code> in order to calculate the necessary speed of the motors:"
2013-10-25 13:45:09 +00:00
msgstr ""
#. type: \s; block (usually verbatim code)
2014-09-20 20:29:05 +00:00
#: levels/exercises/chapter004/level002/help/help.E.txt:47
2013-10-25 13:45:09 +00:00
#, no-wrap
msgid ""
"<c/>if ( dir < 0 ) // on the right side?\n"
"{\n"
"\tmotor(1, 1+dir/90); // turns more or less\n"
"}"
msgstr ""
#. type: Plain text
2014-09-20 20:29:05 +00:00
#: levels/exercises/chapter004/level002/help/help.E.txt:49
2013-10-25 13:45:09 +00:00
#, no-wrap
2014-09-20 20:29:05 +00:00
msgid "Use the same principle if the angle has got a positive value, ranging between 0 and 180 degrees. It is up to you to work out the exact instructions to be performed:"
2013-10-25 13:45:09 +00:00
msgstr ""
#. type: \s; block (usually verbatim code)
2014-09-20 20:29:05 +00:00
#: levels/exercises/chapter004/level002/help/help.E.txt:53
2013-10-25 13:45:09 +00:00
#, no-wrap
msgid ""
"<code>else // on the left side?\n"
"{\n"
"\t</code>up to you to fill in here...<c/>\n"
"}"
msgstr ""
#. type: Plain text
2014-09-20 20:29:05 +00:00
#: levels/exercises/chapter004/level002/help/help.E.txt:55
2013-10-25 13:45:09 +00:00
#, no-wrap
2014-09-20 20:29:05 +00:00
msgid "At the beginning of the program, you must still declare all the variables. <code>spot</code> is of type <code><a cbot|object>object</a></code>, whereas <code>dir</code> is of type <code><a cbot|float>float</a></code>."
2013-10-25 13:45:09 +00:00
msgstr ""
#. type: \t; header
2014-09-20 20:29:05 +00:00
#: levels/exercises/chapter004/level002/help/help.E.txt:56
2013-10-25 13:45:09 +00:00
#, no-wrap
msgid "See also"
msgstr ""
#. type: Plain text
2014-09-20 20:29:05 +00:00
#: levels/exercises/chapter004/level002/help/help.E.txt:57
2013-10-25 13:45:09 +00:00
#, no-wrap
2014-09-20 20:29:05 +00:00
msgid "<a cbot>Programming</a>, <a cbot|type>types</a> and <a cbot|category>categories</a>."
2013-10-25 13:45:09 +00:00
msgstr ""