colobot-data/levels/exercises/chapter004/level005/po/fr.po

252 lines
9.4 KiB
Plaintext
Raw Normal View History

# Copyright (C) 2019 Free Software Foundation, Inc.
2013-10-25 13:45:09 +00:00
# This file is distributed under the same license as the PACKAGE package.
# BCE <.>, 2019.
2013-10-25 13:45:09 +00:00
msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"
2014-09-20 20:29:05 +00:00
"POT-Creation-Date: DATE\n"
"PO-Revision-Date: 2019-06-15 18:29+0200\n"
"Last-Translator: BCE <.>\n"
"Language-Team: French <>\n"
"Language: fr\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"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
"X-Generator: Lokalize 18.12.3\n"
2013-10-25 13:45:09 +00:00
#. type: Title-text
2015-05-11 19:54:24 +00:00
#: ../scene.txt:1
2013-10-25 13:45:09 +00:00
#, no-wrap
2014-09-20 20:29:05 +00:00
msgid "Shadow"
msgstr "Copieur ..."
2013-10-25 13:45:09 +00:00
#. type: Resume-text
2015-05-11 19:54:24 +00:00
#: ../scene.txt:2
2013-10-25 13:45:09 +00:00
#, no-wrap
2014-09-20 20:29:05 +00:00
msgid "Follow a bot, as if you were its shadow."
msgstr "Suivez un robot, sans le heurter."
2013-10-25 13:45:09 +00:00
#. type: ScriptName-text
2015-05-11 19:54:24 +00:00
#: ../scene.txt:3
2013-10-25 13:45:09 +00:00
#, no-wrap
2014-09-20 20:29:05 +00:00
msgid "Follow"
msgstr "Suivre"
2013-10-25 13:45:09 +00:00
#. type: \b; header
2015-05-11 19:54:24 +00:00
#: ../help/help.E.txt:1
#, no-wrap
2013-10-25 13:45:09 +00:00
msgid "Exercise"
msgstr "Exercice"
2013-10-25 13:45:09 +00:00
#. type: Plain text
2015-05-11 19:54:24 +00:00
#: ../help/help.E.txt:2
#, no-wrap
2014-09-20 20:29:05 +00:00
msgid "You must follow the <a object|bottr>target bot</a> with the explosive device, but without touching it, otherwise it will blow up. Every time the target bot stops, you must be close to it (less than 10m). After you managed to stay close to the target bot at 10 successive stops, it will lead you to the finishing pad, and the exercise is over. At every stop, the target bot checks that you are there. If you are not there, you must start over again."
2013-10-25 13:45:09 +00:00
msgstr ""
2014-09-20 20:29:05 +00:00
"Vous devez programmer le <a object|bottr>robot</a> d'entraînement pour suivre la caisse d'explosifs, mais sans la toucher, car elle est très fragile. Chaque fois que la caisse s'arrête 2 secondes, vous devez être à proximité immédiate (moins de 10 mètres). Après 10 arrêts, la caisse s'approche de la plate-forme d'arrivée, pous vous y ammener.\n"
"A chaque arrêt, la caisse vérifie que vous êtes bien là. Si ce n'est pas le cas, le compteur est remis à zéro. Vous devez donc réussir 10 fois consécutives!"
2013-10-25 13:45:09 +00:00
#. type: \b; header
2015-05-11 19:54:24 +00:00
#: ../help/help.E.txt:4
#, no-wrap
2013-10-25 13:45:09 +00:00
msgid "General principle"
msgstr "Idée générale"
2013-10-25 13:45:09 +00:00
#. type: Plain text
2015-05-11 19:54:24 +00:00
#: ../help/help.E.txt:5
#, no-wrap
2015-05-11 19:54:24 +00:00
msgid "Repeat forever :"
msgstr "Répéter à l'infini:"
2013-10-25 13:45:09 +00:00
#. type: Bullet: 'o'
2015-05-11 19:54:24 +00:00
#: ../help/help.E.txt:6
#, no-wrap
2013-10-25 13:45:09 +00:00
msgid "Look for the target bot."
msgstr "Chercher la caisse."
2013-10-25 13:45:09 +00:00
#. type: Bullet: 'o'
2015-05-11 19:54:24 +00:00
#: ../help/help.E.txt:7
#, no-wrap
2013-10-25 13:45:09 +00:00
msgid "Calculate the distance to the bot."
msgstr "Calculer la distance jusqu'à la caisse."
2013-10-25 13:45:09 +00:00
#. type: Bullet: 'o'
2015-05-11 19:54:24 +00:00
#: ../help/help.E.txt:8
#, no-wrap
2013-10-25 13:45:09 +00:00
msgid "if the distance to the target bot is less than 5m, move backward."
msgstr "Si cette distance est plus petite que 5 mètres, reculer."
2013-10-25 13:45:09 +00:00
#. type: Bullet: 'o'
2015-05-11 19:54:24 +00:00
#: ../help/help.E.txt:9
#, no-wrap
2013-10-25 13:45:09 +00:00
msgid "Otherwise, calculate the direction of the target bot, and move towards it."
msgstr "Sinon, calculer la direction de la caisse et s'y diriger."
2013-10-25 13:45:09 +00:00
#. type: Plain text
2015-05-11 19:54:24 +00:00
#: ../help/help.E.txt:11
#, no-wrap
2014-09-20 20:29:05 +00:00
msgid "As many times before, use <code><a cbot|while>while</a> (true)</code> in order to perform the infinite loop:"
msgstr "La boucle infinie s'effectue avec un traditionnel <code><a cbot|while>while</a>( true )</code>."
2013-10-25 13:45:09 +00:00
2015-05-11 19:54:24 +00:00
#. type: Source code
#: ../help/help.E.txt:12
#, no-wrap
2013-10-25 13:45:09 +00:00
msgid ""
"<code>while (true)\n"
"{\n"
"\t</code>instructions to be repeated ...<c/>\n"
"}"
msgstr ""
"<code>while ( true )\n"
"{\n"
"\t</code>instructions à répéter ...<c/>\n"
"}"
2013-10-25 13:45:09 +00:00
#. type: Plain text
2015-05-11 19:54:24 +00:00
#: ../help/help.E.txt:17
#, no-wrap
2014-09-20 20:29:05 +00:00
msgid "Look for the target bot with the instruction <code><a cbot|radar>radar</a></code>:"
msgstr "La recherche de la caisse se fait dans toutes les directions, avec <code><a cbot|radar>radar</a></code> :"
2013-10-25 13:45:09 +00:00
2015-05-11 19:54:24 +00:00
#. type: Source code
#: ../help/help.E.txt:18
2013-10-25 13:45:09 +00:00
#, no-wrap
msgid "<c/>\ttarget = radar(TargetBot);"
msgstr "<c/>\ttarget = radar(TargetBot);"
2013-10-25 13:45:09 +00:00
#. type: Plain text
2015-05-11 19:54:24 +00:00
#: ../help/help.E.txt:20
2013-10-25 13:45:09 +00:00
#, no-wrap
msgid "You do not have to test if the radar found a target bot: there must be one."
msgstr "Vous n'avez pas besoin de tester si le radar a trouvé un robot cible : il doit y en avoir un."
2013-10-25 13:45:09 +00:00
#. type: Plain text
2015-05-11 19:54:24 +00:00
#: ../help/help.E.txt:22
#, no-wrap
2014-09-20 20:29:05 +00:00
msgid "Use the instruction <code><a cbot|dist>distance</a>( , )</code> to calculate the distance between two points. The first point will be the position of your own bot, given by <code>position</code>. The second point is the position of the target bot, given by <code>target.position</code>."
msgstr "Le calcul de la distance jusqu'à la caisse utilise l'instruction <code><a cbot|dist>distance</a>(p1, p2)</code>. Cette instruction retourne la distance entre deux points <code>p1</code> et <code>p2</code>. Le premier point sera ici la position du <a object|bottr>robot</a>, obtenue simplement avec <code>pos</code>. La position de la caisse est obtenue à travers la description de l'objet <code>target</code> avec l'expression <code>target.position</code>."
2013-10-25 13:45:09 +00:00
2015-05-11 19:54:24 +00:00
#. type: Source code
#: ../help/help.E.txt:23
#, no-wrap
2013-10-25 13:45:09 +00:00
msgid "<c/>len = distance(position, target.position);"
msgstr "<c/>len = distance(pos, target.position);"
2013-10-25 13:45:09 +00:00
#. type: Plain text
2015-05-11 19:54:24 +00:00
#: ../help/help.E.txt:25
#, no-wrap
2013-10-25 13:45:09 +00:00
msgid ""
2014-09-20 20:29:05 +00:00
"If the distance to the target bot is smaller than 5m, move backward with a speed inversely proportional to the distance: the closer you are to the bot, the faster you must move backward.\n"
2013-10-25 13:45:09 +00:00
"\tDistance = 5.0 meters -> speed = 0.0\n"
"\tDistance = 2.5 meters -> speed = -0.5\n"
"\tDistance = 0.0 meters -> speed = -1.0\n"
2014-09-20 20:29:05 +00:00
"You can use the <a cbot|expr>expression</a> <code>distance/5-1</code> in order to achieve this, together with the <code><a cbot|if>if</a></code> to test if the target is closer than 5m:"
2013-10-25 13:45:09 +00:00
msgstr ""
2014-09-20 20:29:05 +00:00
"Si la distance est inférieure à 5 mètres, il faut reculer d'une vitesse proportionnelle à la distance. Plus la distance est petite, plus il faut reculer vivement.\n"
"\tDistance = 5.0 mètres -> vitesse = 0.0\n"
"\tDistance = 2.5 mètres -> vitesse = -0.5\n"
"\tDistance = 0.0 mètres -> vitesse = -1.0\n"
2014-09-20 20:29:05 +00:00
"Ceci s'obtient très simplement avec l'<a cbot|expr>expression</a> <code>distance/5-1</code>. Donc, avec un <code><a cbot|if>if</a></code>:"
2013-10-25 13:45:09 +00:00
2015-05-11 19:54:24 +00:00
#. type: Source code
#: ../help/help.E.txt:30
#, no-wrap
2013-10-25 13:45:09 +00:00
msgid ""
"<c/>if ( len < 5 ) // too close ?\n"
"{\n"
"\tmotor(len/5-1, len/5-1); // moves backward\n"
"}"
msgstr ""
"<c/>if ( len < 5 ) // trop proche?\n"
"{\n"
"\tmotor(len/5-1, len/5-1); // recule\n"
"}"
2013-10-25 13:45:09 +00:00
#. type: Plain text
2015-05-11 19:54:24 +00:00
#: ../help/help.E.txt:35
#, no-wrap
2014-09-20 20:29:05 +00:00
msgid "If the distance to the target is greater than 5m, move towards the target. First calculate the angle necessary to face the target with the instruction <code><a cbot|direct>direction</a></code>. You can then adjust the speed of the right-hand and left-hand motor in order to follow the target:"
msgstr "Si la distance dépasse 5 mètres, on avance en direction de la caisse en calculant l'angle avec <code><a cbot|direct>direction</a></code>."
2013-10-25 13:45:09 +00:00
2015-05-11 19:54:24 +00:00
#. type: Source code
#: ../help/help.E.txt:36
#, no-wrap
2013-10-25 13:45:09 +00:00
msgid ""
"<c/>else\n"
"{\n"
"\tdir = direction(target.position);\n"
"\tif ( dir >= 0 ) // target on the left side?\n"
"\t{\n"
"\t\tmotor(1-dir/90, 1);\n"
"\t}\n"
"\telse // target on the right side?\n"
"\t{\n"
"\t\t<n/>it is up to you to fill in<c/>\n"
"\t}\n"
"}"
msgstr ""
"<c/>else\n"
"{\n"
"\tdir = direction(target.position);\n"
"\tif ( dir < 0 ) // à droite?\n"
"\t{\n"
"\t\tmotor(1, 1+dir/90);\n"
"\t}\n"
"\telse // à gauche?\n"
"\t{\n"
"\t\t<n/>//... à vous de trouver ...<c/>\n"
"\t}\n"
"}"
2013-10-25 13:45:09 +00:00
#. type: Plain text
2015-05-11 19:54:24 +00:00
#: ../help/help.E.txt:49
#, no-wrap
2013-10-25 13:45:09 +00:00
msgid ""
2014-09-20 20:29:05 +00:00
"When the target is on your left, <code>dir</code> takes a positive value, ranging between 0 and 180. The <a cbot|expr>expression</a> <code>1-dir/90</code> returns a speed ranging between 1 and -1, according to the direction:\n"
2013-10-25 13:45:09 +00:00
"\tdirection = 0 -> speed = 1.0\n"
"\tdirection = 45 -> speed = 0.5\n"
"\tdirection = 90 -> speed = 0.0\n"
"\tdirection = 135 -> speed = -0.5\n"
"\tdirection = 180 -> speed = -1.0"
msgstr ""
2014-09-20 20:29:05 +00:00
"Lorsque la caisse est à gauche, <code>dir</code> est positif, compris entre 0 et 180 degrés. L'<a cbot|expr>expression</a> <code>1-dir/90</code> donne une vitesse comprise entre 1 et -1, selon la direction.\n"
"\tdirection = 0 -> vitesse = 1.0\n"
"\tdirection = 45 -> vitesse = 0.5\n"
"\tdirection = 90 -> vitesse = 0.0\n"
"\tdirection = 135 -> vitesse = -0.5\n"
"\tdirection = 180 -> vitesse = -1.0"
2013-10-25 13:45:09 +00:00
#. type: Image filename
2015-05-11 19:54:24 +00:00
#: ../help/help.E.txt:56
#, no-wrap
2013-10-25 13:45:09 +00:00
msgid "radar2"
msgstr "radar2"
2013-10-25 13:45:09 +00:00
#. type: Plain text
2015-05-11 19:54:24 +00:00
#: ../help/help.E.txt:57
#, no-wrap
2014-09-20 20:29:05 +00:00
msgid "When the target is on the right side, <code>dir</code> is negative, ranging between 0 and -180."
msgstr "Lorsque la caisse est à droite, <code>dir</code> est négatif, compris entre 0 et -180 degrés."
2013-10-25 13:45:09 +00:00
#. type: Plain text
2015-05-11 19:54:24 +00:00
#: ../help/help.E.txt:59
#, no-wrap
2014-09-20 20:29:05 +00:00
msgid "The only task left for you now is to declare the <a cbot|var>variables</a> that you use in the program. <code>target</code> is of type <code>object</code>, whereas <code>dir</code> and <code>len</code> are of type <code>float</code>."
2013-10-25 13:45:09 +00:00
msgstr ""
2014-09-20 20:29:05 +00:00
"Pour que ce programme fonctionne, il faut encore déclarer toutes les <a cbot|var>variables</a> utilisées.\n"
"<code>target</code> est de type <code>object</code>, alors que <code>dir</code> et <code>len</code> sont de type <code>float</code>."
2013-10-25 13:45:09 +00:00
#. type: \t; header
2015-05-11 19:54:24 +00:00
#: ../help/help.E.txt:61
#, no-wrap
2013-10-25 13:45:09 +00:00
msgid "See also"
msgstr "Voir aussi"
2013-10-25 13:45:09 +00:00
#. type: Plain text
2015-05-11 19:54:24 +00:00
#: ../help/help.E.txt:62
#, 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>."
msgstr "<a tchasse>Exercice précédent</a>, <a cbot>programmation</a>, <a cbot|type>types</a> et <a cbot|category>catégories</a>."