From 2fb1d281819a0527b3b3f4cf4c078dae77794b4d Mon Sep 17 00:00:00 2001 From: Martin Doucha Date: Thu, 22 Mar 2018 23:05:14 +0100 Subject: [PATCH] Translate exercises chapter 4 --- icons/radar2_cs.png | Bin 0 -> 4778 bytes icons/tdragst1_cs.png | Bin 0 -> 1055 bytes levels/exercises/chapter004/level001/po/cs.po | 280 ++++++++++++++++++ levels/exercises/chapter004/level002/po/cs.po | 248 ++++++++++++++++ levels/exercises/chapter004/level003/po/cs.po | 72 +++++ levels/exercises/chapter004/level004/po/cs.po | 120 ++++++++ levels/exercises/chapter004/level005/po/cs.po | 248 ++++++++++++++++ 7 files changed, 968 insertions(+) create mode 100644 icons/radar2_cs.png create mode 100644 icons/tdragst1_cs.png create mode 100644 levels/exercises/chapter004/level001/po/cs.po create mode 100644 levels/exercises/chapter004/level002/po/cs.po create mode 100644 levels/exercises/chapter004/level003/po/cs.po create mode 100644 levels/exercises/chapter004/level004/po/cs.po create mode 100644 levels/exercises/chapter004/level005/po/cs.po diff --git a/icons/radar2_cs.png b/icons/radar2_cs.png new file mode 100644 index 0000000000000000000000000000000000000000..ba22617ea8092d54be2fdc7427ff3ff2d51eab9b GIT binary patch literal 4778 zcmZ`-2{e@L-@a!IhLrV=Y7WLNfTC&i6mxIp25A_nh-Q_xii<`?-J5b6vmdCSI~IKFlf12>>{J!31Ls z01V24mq<3~8Rfe10!lb;m^cIjaESlU4FfrOLQthth~bqGPmd5U?Q20^Py$p@Dym8- z4JB37Wfe{BGg{gzXB1GX+9=e^{i)giWq=Lz^t~SW{~L6Yye@1Lznu0BJ%<0Qgv-(p6Ca zOa@Md+5G4T2*R;Z6DFTUZ1l~rbQ#Y6y&!3h4_76vev z=mKqLPdY0eRXcuUX>+r#@*5D9GX0wZSGddf_{Vy|Q~;&8Og;m1oGfd)dK`St*7v&y z0s;fWTi-4OH#RnwmCFN@LxLCDYHLq7QmN%sVPL{8Xam~xAHmi5mBj%->t;%WNv{?f zjaJjbh8zf^J_)0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T?QY literal 0 HcmV?d00001 diff --git a/icons/tdragst1_cs.png b/icons/tdragst1_cs.png new file mode 100644 index 0000000000000000000000000000000000000000..f895c75fc4be06b6441f0c0ca345e9a5638c1373 GIT binary patch literal 1055 zcmV+)1mOFLP)wf~EY{}vYis;d9$>i=M1|28)ND=Yt%mH*1h|5a80)z$w? zOaGvt|Mm62z`*~2fB*ph|KQ;Nb#(v$0N~)@>gwuMRaF)i7C=BifPjFDi;JqNs%vX& zprD}2%F1A1U`tC&wY9a?)zvF2Dm6gi}qV)g(00Cl4M??UK1szBL000Sa zNLh0L04^f{04^f|c%?sf00007bV*G`2jT+}5+4c*aLSzk00SFIL_t(|+U=W*a-uL4 zh7U}ninM?NL8M4+sUr6MUvGo=&f48&kr~4IziFdLCwM+iE(A&h00000000000091u zFM>;X#SNGXaO~j*Jhq;mUMLv*WX(KZg>D*APzx}<*@S`@XX?^a2z$6^+_HU#>K_ri zh6>&Cg{uU_BDNj3{$xV2u!o)Ujz6E1H9c>8rYh^rXl_3*tbpvH3z$z-^4AduhwbTA z0NLik8>RqpBOo?rbZ7#j;37aZf%w_=C+baL3xC)GNOgClI>D)b&49WSv?z!i&m>yR z2A2Xth|7C*+K1c5|3!f5SRCWOF~AV+0)$|0fW3h0FbDw<00Hdq`!68uvU1O0Ex?`$ z-U5s$GMG032sjClJq8&d**5{nz7LSx1$3DMnv4RHyMT@j=r9kE+y!)MK#!TAKazg1z$UBH74 z=y+d1au@JW1A5*WlH3J6(15P@23s4j%~)#zZ4FF>G4`|;(9VD@T(ZZO)&jm8X!x|F zHB!ZNp|^l<1{yx_dAKonD71b+LVg#}K*5cGfzen%sB;E{|D6HmSQWEqU;>&{J&wpd z{0r1@1T?GKe-@(&4M;#|$AAC`fB*=900@8p2 zSRc=PzR&Jv!20rWoA2La0oMTUc67(xVck;pEjq%m&azG3+xWwJgxcRZK}GUaPXJ2Q zi5FSX;y7xIDUz~(@m~U5Q+aQc+ML!zw^dTL8pO(7QmuQK0Ji~tVcH7-00000005vl ZzW|{qg%kbNIn4k7002ovPDHLkV1noj+Y|r* literal 0 HcmV?d00001 diff --git a/levels/exercises/chapter004/level001/po/cs.po b/levels/exercises/chapter004/level001/po/cs.po new file mode 100644 index 00000000..d636bff2 --- /dev/null +++ b/levels/exercises/chapter004/level001/po/cs.po @@ -0,0 +1,280 @@ +# This file is part of the Colobot: Gold Edition source code +# Copyright (C) 2001-2016, Daniel Roux, EPSITEC SA & TerranovaTeam +# This file is distributed under the same license as the Colobot package. +# next_ghost , 2018. +msgid "" +msgstr "" +"Project-Id-Version: 0.1.11\n" +"POT-Creation-Date: DATE\n" +"PO-Revision-Date: 2018-03-17 19:18+01\n" +"Last-Translator: next_ghost \n" +"Language-Team: Czech \n" +"Language: Czech\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=3; plural=((n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2);\n" +"X-Language: cs_CZ\n" +"X-Source-Language: en_US\n" + +#. type: Title-text, ScriptName-text +#: ../scene.txt:1 ../scene.txt:3 +#, no-wrap +msgid "Dragster" +msgstr "Sprint" + +#. type: Resume-text +#: ../scene.txt:2 +#, no-wrap +msgid "Program a progressive deceleration in order to avoid the mines right behind the goal." +msgstr "Naprogramujte postupné brždění, aby robot nenajel na miny za cílem." + +#. type: \b; header +#: ../help/help.E.txt:1 +#, no-wrap +msgid "Exercise" +msgstr "Cvičení" + +#. type: Plain text +#: ../help/help.E.txt:2 +#, no-wrap +msgid "Reach the finishing pad (25m in front of you) as fast as possible, using the instruction motor( , ). You will have to slow down progressively at the end of the move, otherwise the bot will get blown up on the mines." +msgstr "Co nejrychleji dojeďte na cílovou značku (25m před robotem) pomocí příkazu motor( , ). Na konci dráhy budete muset postupně zpomalovat, jinak robot najede na miny za cílem." + +#. type: Plain text +#: ../help/help.E.txt:4 +#, no-wrap +msgid "You could very well write no more than move(25);, this would work perfectly well. However, the aim of this exercise is to learn how to use the instruction motor." +msgstr "Místo toho byste mohli napsat prostě jen move(25);, to by fungovalo stejně dobře. Jenže cílem tohoto cvičení je naučit se používat příkaz motor." + +#. type: Bullet: '1)' +#: ../help/help.E.txt:7 +#, no-wrap +msgid "The speed of the left-hand motor." +msgstr "Výkon levého motoru." + +#. type: Bullet: '2)' +#: ../help/help.E.txt:8 +#, no-wrap +msgid "The speed of the right-hand motor." +msgstr "Výkon pravého motoru." + +#. type: Source code +#: ../help/help.E.txt:10 +#, no-wrap +msgid "\tmotor( left, right );" +msgstr "\tmotor( left, right );" + +#. type: Bullet: '-' +#: ../help/help.E.txt:13 +#, no-wrap +msgid "1 = full throttle backward" +msgstr "1 = plnou rychlostí couvat" + +#. type: Plain text +#: ../help/help.E.txt:14 +#, no-wrap +msgid "" +" 0 = stop\n" +" 1 = full throttle forward" +msgstr "" +" 0 = zastavit\n" +" 1 = plnou rychlostí vpřed" + +#. type: Plain text +#: ../help/help.E.txt:17 +#, no-wrap +msgid "For example, motor(0.5, 0.5); will move the motor forward with half-speed, until new instructions are given to the motors." +msgstr "Například motor(0.5, 0.5); spustí oba motory vpřed na poloviční výkon, dokud nezměníte výkon motorů jiným příkazem." + +#. type: Plain text +#: ../help/help.E.txt:19 +#, no-wrap +msgid "With the instruction motor(0.5, 0.6);, the bot will move forward with half-speed, turning at the same time slightly to the left: the right-hand motor moves a little faster (0.6) than the left-hand motor (0.5)." +msgstr "Po příkazu motor(0.5, 0.6); pojede robot vpřed poloviční rychlostí a bude mírně zatáčet doleva: pravý motor poběží rychleji (0.6) než levý motor (0.5)." + +#. type: \b; header +#: ../help/help.E.txt:21 +#, no-wrap +msgid "General principle" +msgstr "Obecný postup" + +#. type: Plain text +#: ../help/help.E.txt:22 +#, no-wrap +msgid "" +"In order to move forward for exactly 25 meters and not more, you must move full speed during the first 23 meters, then reduce the speed of the motors progressively during the last two meters.\n" +"The variable position gives you at any moment the current position of the bot, and the instruction distance( , ); returns the distance between two points. The best way to know where you are consists in saving the current position before the start into a variable, for example a variable called start. Then you can calculate the distance between the starting position and your current position with distance(position, start)." +msgstr "" +"Abyste ujeli přesně 25 metrů a ne více, musíte jet plnou rychlostí jen prvních 23 metrů, a pak na posledních dvou metrech postupně snižovat rychlost.\n" +"Proměnná position udává vždy aktuální polohu robota a příkaz distance( , ); vrací vzdálenost mezi dvěma body. Jakou vzdálenost jste už ujeli můžete nejlépe zjistit tak, že si na začátku uložíte startovní polohu robota do proměnné, kterou nazveme například start. Pak můžete spočítat vzdálenost mezi startovní polohou a aktuální polohou příkazem distance(position, start)." + +#. type: \b; header +#: ../help/help.E.txt:25 +#, no-wrap +msgid "The program" +msgstr "Program" + +#. type: Bullet: '1)' +#: ../help/help.E.txt:26 +#, no-wrap +msgid "declare the variables" +msgstr "Deklarujte proměnné" + +#. type: Source code +#: ../help/help.E.txt:27 +#, no-wrap +msgid "" +"\tpoint start;\n" +"\tfloat len;" +msgstr "" +"\tpoint start;\n" +"\tfloat len;" + +#. type: Bullet: '2)' +#: ../help/help.E.txt:30 +#, no-wrap +msgid "save the starting position" +msgstr "Uložte si startovní polohu" + +#. type: Source code +#: ../help/help.E.txt:31 +#, no-wrap +msgid "\tstart = position;" +msgstr "\tstart = position;" + +#. type: Bullet: '3)' +#: ../help/help.E.txt:33 +#, no-wrap +msgid "start full throttle :" +msgstr "Rozjeďte se plnou rychlostí:" + +#. type: Source code +#: ../help/help.E.txt:34 +#, no-wrap +msgid "\tmotor(1, 1);" +msgstr "\tmotor(1, 1);" + +#. type: Bullet: '4)' +#: ../help/help.E.txt:36 +#, no-wrap +msgid "Perform an infinite while loop:" +msgstr "Opakujte v nekonečném cyklu while:" + +#. type: Source code +#: ../help/help.E.txt:37 +#, no-wrap +msgid "" +"\twhile ( true )\n" +"\t{\n" +"\t\tlen = distance(position, start);\n" +"\t\tif ( len > 25-2 )\n" +"\t\t{\n" +"\t\t\tmotor( less than before ! );\n" +"\t\t}\n" +"\t}" +msgstr "" +"\twhile ( true )\n" +"\t{\n" +"\t\tlen = distance(position, start);\n" +"\t\tif ( len > 25-2 )\n" +"\t\t{\n" +"\t\t\tmotor( pomaleji než při minulém volání! );\n" +"\t\t}\n" +"\t}" + +#. type: Plain text +#: ../help/help.E.txt:46 +#, no-wrap +msgid "As long as the distance between the start and the current position is smaller than 23m, the instruction in braces after the if instruction will not be executed, so the motors keep their maximum speed as they were told by the motor(1,1); instruction." +msgstr "Dokud bude vzdálenost od startovní pozice menší než 23 metrů, příkazy ve složených závorkách za příkazem if se budou přeskakovat, takže motory poběží na plný výkon dle příkazu motor(1,1); na začátku programu." + +#. type: Bullet: 'o' +#: ../help/help.E.txt:49 +#, no-wrap +msgid "2.0 meters left -> speed = 1.00 (maximum)" +msgstr "Když zbývají 2.0 metry -> rychlost = 1.00 (maximum)" + +#. type: Bullet: 'o' +#: ../help/help.E.txt:50 +#, no-wrap +msgid "1.5 meters left -> speed = 0.75" +msgstr "Když zbývá 1.5 metru -> rychlost = 0.75" + +#. type: Bullet: 'o' +#: ../help/help.E.txt:51 +#, no-wrap +msgid "1.0 meter left -> speed = 0.50" +msgstr "Když zbývá 1.0 metr -> rychlost = 0.50" + +#. type: Bullet: 'o' +#: ../help/help.E.txt:52 +#, no-wrap +msgid "0.5 meter left -> speed = 0.25" +msgstr "Když zbývá 0.5 metru -> rychlost = 0.25" + +#. type: Bullet: 'o' +#: ../help/help.E.txt:53 +#, no-wrap +msgid "0.0 meter left -> speed = 0.00 (stop)" +msgstr "Když zbývá 0.0 metrů -> rychlost = 0.00" + +#. type: Image filename +#: ../help/help.E.txt:55 +#, no-wrap +msgid "tdragst1" +msgstr "tdragst1_cs" + +#. type: Plain text +#: ../help/help.E.txt:56 +#, no-wrap +msgid "You can use the following expression (25-len)/2 in order to calculate the value for the speed instruction that must be given to the motors." +msgstr "Potřebný výkon motorů můžete vypočítat výrazem (25-len)/2." + +#. type: Plain text +#: ../help/help.E.txt:58 +#, no-wrap +msgid "It is now up to you to put everything together and to test the program." +msgstr "Sestavit celý program a vyzkoušet ho už je na Vás." + +#. type: \b; header +#: ../help/help.E.txt:60 +#, no-wrap +msgid "Remark" +msgstr "Poznámky" + +#. type: Plain text +#: ../help/help.E.txt:61 +#, no-wrap +msgid "You can use values greater than 1 for the instruction motor();, but the bot will not move any faster." +msgstr "Příkazu motor(); můžete zadat i hodnoty větší než 1, ale robot nepojede o nic rychleji." + +#. type: \t; header +#: ../help/help.E.txt:63 +#, no-wrap +msgid "See also" +msgstr "Užitečné odkazy" + +#. type: Plain text +#: ../help/help.E.txt:64 +#, no-wrap +msgid "Programming, types and categories." +msgstr "Programování, datové typy a kategorie." + +#. type: Plain text +#: ../help/help.E.txt:6 +#, no-wrap +msgid "This instruction asks for two values:" +msgstr "Tento příkaz vyžaduje dva parametry:" + +#. type: Plain text +#: ../help/help.E.txt:12 +#, no-wrap +msgid "The values must range between -1 and 1:" +msgstr "Hodnoty musejí být v rozsahu -1 až 1:" + +#. type: Plain text +#: ../help/help.E.txt:48 +#, no-wrap +msgid "In order to slow down progressively, the speed of the motors must be proportional to the remaining distance:" +msgstr "Abyste postupně zpomalovali, musíte výkon motorů snižovat přímo úměrně zbývající vzdálenosti:" diff --git a/levels/exercises/chapter004/level002/po/cs.po b/levels/exercises/chapter004/level002/po/cs.po new file mode 100644 index 00000000..138232b8 --- /dev/null +++ b/levels/exercises/chapter004/level002/po/cs.po @@ -0,0 +1,248 @@ +# This file is part of the Colobot: Gold Edition source code +# Copyright (C) 2001-2016, Daniel Roux, EPSITEC SA & TerranovaTeam +# This file is distributed under the same license as the Colobot package. +# next_ghost , 2018. +msgid "" +msgstr "" +"Project-Id-Version: 0.1.11\n" +"POT-Creation-Date: DATE\n" +"PO-Revision-Date: 2018-03-18 16:13+01\n" +"Last-Translator: next_ghost \n" +"Language-Team: Czech \n" +"Language: Czech\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=3; plural=((n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2);\n" +"X-Language: cs_CZ\n" +"X-Source-Language: en_US\n" + +#. type: Title-text +#: ../scene.txt:1 +#, no-wrap +msgid "Radar" +msgstr "Radar" + +#. type: Resume-text +#: ../scene.txt:2 +#, no-wrap +msgid "Use the radar to find lots of stupid blue crosses." +msgstr "Hledejte pomocí radaru spoustu hloupých modrých křížků." + +#. type: ScriptName-text +#: ../scene.txt:3 +#, no-wrap +msgid "Find" +msgstr "Hledac" + +#. type: \b; header +#: ../help/help.E.txt:1 +#, no-wrap +msgid "Exercise" +msgstr "Cvičení" + +#. type: Plain text +#: ../help/help.E.txt:2 +#, no-wrap +msgid "Let the bot find all the blue crosses 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:" +msgstr "Pošlete robota najít všechny modré křížky na zemi. Každý křížek zmizí, když přes něj robot přejede. Zde je obecný postup, jak úkol vyřešit:" + +#. type: Bullet: 'o' +#: ../help/help.E.txt:5 +#, no-wrap +msgid "Look for a cross" +msgstr "Najít křížek." + +#. type: Bullet: 'o' +#: ../help/help.E.txt:6 +#, no-wrap +msgid "If there is none, stop the program." +msgstr "Pokud žádný neexistuje, ukončit program." + +#. type: Bullet: 'o' +#: ../help/help.E.txt:7 +#, no-wrap +msgid "Calculate the direction of the cross." +msgstr "Vypočítat směr ke křížku." + +#. type: Bullet: 'o' +#: ../help/help.E.txt:8 +#, no-wrap +msgid "Set the speed of the motors in such a way that they will find their way to the cross." +msgstr "Nastavit výkon motorů, aby robot ke křížku postupně dojel." + +#. type: \b; header +#: ../help/help.E.txt:10 +#, no-wrap +msgid "The program" +msgstr "Program" + +#. type: Plain text +#: ../help/help.E.txt:11 +#, no-wrap +msgid "Use a while loop in order to repeat several instructions over and over:" +msgstr "Opakujte několik příkazů stále dokola pomocí cyklu while:" + +#. type: Source code +#: ../help/help.E.txt:12 +#, no-wrap +msgid "" +"while ( true )\n" +"{\n" +"\tinstructions...\n" +"}" +msgstr "" +"while ( true )\n" +"{\n" +"\tpříkazy...\n" +"}" + +#. type: Plain text +#: ../help/help.E.txt:17 +#, no-wrap +msgid "The instruction radar will detect the blue crosses and put their description into a variable, for example spot. In this case, radar() needs only one parameter, i.e. the category of the object that it must look for:" +msgstr "Najděte modré křížky pomocí příkazu radar a uložte si jejich popis do proměnné, nazvěme ji například spot. V tomto případě potřebuje příkaz radar() pouze jeden parametr, tj. kategorii objektu, který má hledat:" + +#. type: Source code +#: ../help/help.E.txt:18 +#, no-wrap +msgid "spot = radar(WayPoint);" +msgstr "spot = radar(WayPoint);" + +#. type: Plain text +#: ../help/help.E.txt:20 +#, no-wrap +msgid "Once all the crosses have been found, radar will return the value null. You will have to test this case and react accordingly with the instruction if:" +msgstr "Po nalezení posledního křížku vrátí příkaz radar hodnotu null. Tuto možnost musíte vhodně ošetřit příkazem if:" + +#. type: Source code +#: ../help/help.E.txt:21 +#, no-wrap +msgid "" +"if ( spot == null ) // no more ?\n" +"{\n" +"\tmotor(0, 0); // stops the motors\n" +"\tbreak; // stops the loop\n" +"}" +msgstr "" +"if ( spot == null ) // už žádné křížky?\n" +"{\n" +"\tmotor(0, 0); // zastavit motory\n" +"\tbreak; // ukončit cyklus\n" +"}" + +#. type: Plain text +#: ../help/help.E.txt:26 +#, no-wrap +msgid "The instruction break will stop the infinite loop while (true)." +msgstr "Příkaz break ukončí nekonečný cyklus while (true)." + +#. type: Plain text +#: ../help/help.E.txt:28 +#, no-wrap +msgid "Use the instruction direction() 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 spot.position. The following line will put the angle of the necessary rotation into the variable dir:" +msgstr "Úhel, o který se robot musí otočit směrem ke křížku, vypočítejte příkazem direction(). Polohu objektu udává výraz spot.position. Následující řádek uloží potřebný úhel do proměnné dir:" + +#. type: Source code +#: ../help/help.E.txt:29 +#, no-wrap +msgid "dir = direction(spot.position);" +msgstr "dir = direction(spot.position);" + +#. type: Plain text +#: ../help/help.E.txt:31 +#, no-wrap +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:" +msgstr "Pokud bude modrý křížek nalevo od robota, úhel bude kladný, naopak pro křížek napravo bude záporný. Pokud je křížek nalevo od robota, musíte pravý motor spustit na plný výkon a levý motor na nižší výkon podle úhlu:" + +#. type: Plain text +#: ../help/help.E.txt:33 +#, no-wrap +msgid "" +" direction = 0 -> speed = 1.0\n" +" direction = 45 -> speed = 0.5\n" +" direction = 90 -> speed = 0.0\n" +" direction = 135 -> speed = -0.5\n" +" direction = 180 -> speed = -1.0" +msgstr "" +" úhel = 0 -> výkon = 1.0\n" +" úhel = 45 -> výkon = 0.5\n" +" úhel = 90 -> výkon = 0.0\n" +" úhel = 135 -> výkon = -0.5\n" +" úhel = 180 -> výkon = -1.0" + +#. type: Plain text +#: ../help/help.E.txt:39 +#, no-wrap +msgid "The graphic below shows the speed of the left-hand and right-hand motor as set by the instruction motor, according to the angle:" +msgstr "Obrázek níže ilustruje, jaký výkon jednotlivých motorů má příkaz motor nastavit v závislosti na úhlu:" + +#. type: Image filename +#: ../help/help.E.txt:41 +#, no-wrap +msgid "radar2" +msgstr "radar2_cs" + +#. type: Plain text +#: ../help/help.E.txt:42 +#, no-wrap +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 expression 1+dir/90 in order to calculate the necessary speed of the motors:" +msgstr "Pokud je křížek rovně před robotem, úhel bude 0 stupňů. Motorům se zadá výkon 1 a 1, což znamená plnou rychlostí vpřed. Pokud je křížek za robotem, pravému motoru se zadá výkon -1: robot se otočí. Vhodný výkon motorů můžete vypočítat výrazem 1+dir/90:" + +#. type: Source code +#: ../help/help.E.txt:43 +#, no-wrap +msgid "" +"if ( dir < 0 ) // on the right side?\n" +"{\n" +"\tmotor(1, 1+dir/90); // turns more or less\n" +"}" +msgstr "" +"if ( dir < 0 ) // je křížek napravo?\n" +"{\n" +"\tmotor(1, 1+dir/90); // zatočit podle úhlu\n" +"}" + +#. type: Plain text +#: ../help/help.E.txt:48 +#, no-wrap +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:" +msgstr "Podobně postupujte, pokud je úhel kladný, v rozsahu od 0 do 180 stupňů. Vymyslet správné příkazy pro robota už je na Vás:" + +#. type: Source code +#: ../help/help.E.txt:49 +#, no-wrap +msgid "" +"else // on the left side?\n" +"{\n" +"\tup to you to fill in here...\n" +"}" +msgstr "" +"else // je křížek nalevo?\n" +"{\n" +"\tsem doplňte příkazy...\n" +"}" + +#. type: Plain text +#: ../help/help.E.txt:54 +#, no-wrap +msgid "At the beginning of the program, you must still declare all the variables. spot is of type object, whereas dir is of type float." +msgstr "Na začátku programu samozřejmě musíte deklarovat všechny proměnné. Proměnná spot musí mít typ object, dir musí mít typ float." + +#. type: \t; header +#: ../help/help.E.txt:56 +#, no-wrap +msgid "See also" +msgstr "Užitečné odkazy" + +#. type: Plain text +#: ../help/help.E.txt:57 +#, no-wrap +msgid "Programming, types and categories." +msgstr "Programování, datové typy a kategorie." + +#. type: Plain text +#: ../help/help.E.txt:4 +#, no-wrap +msgid "Repeat forever:" +msgstr "Opakovat stále dokola:" diff --git a/levels/exercises/chapter004/level003/po/cs.po b/levels/exercises/chapter004/level003/po/cs.po new file mode 100644 index 00000000..b10052ba --- /dev/null +++ b/levels/exercises/chapter004/level003/po/cs.po @@ -0,0 +1,72 @@ +# This file is part of the Colobot: Gold Edition source code +# Copyright (C) 2001-2016, Daniel Roux, EPSITEC SA & TerranovaTeam +# This file is distributed under the same license as the Colobot package. +# next_ghost , 2018. +msgid "" +msgstr "" +"Project-Id-Version: 0.1.11\n" +"POT-Creation-Date: DATE\n" +"PO-Revision-Date: 2018-03-18 18:21+01\n" +"Last-Translator: next_ghost \n" +"Language-Team: Czech \n" +"Language: Czech\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=3; plural=((n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2);\n" +"X-Language: cs_CZ\n" +"X-Source-Language: en_US\n" + +#. type: Title-text +#: ../scene.txt:1 +#, no-wrap +msgid "Crazy bot" +msgstr "Pomatený robot" + +#. type: Resume-text +#: ../scene.txt:2 +#, no-wrap +msgid "Use the radar to put some order into a big mess left behind by a crazy bot." +msgstr "Použijte radar, abyste uklidili nepořádek po bláznivém robotu." + +#. type: ScriptName-text +#: ../scene.txt:3 +#, no-wrap +msgid "Move" +msgstr "Uklid" + +#. type: \b; header +#: ../help/help.E.txt:1 +#, no-wrap +msgid "Exercise" +msgstr "Cvičení" + +#. type: Plain text +#: ../help/help.E.txt:2 +#, no-wrap +msgid "In this exercise, a \"crazy bot\" places many blue crosses on the ground. In order to find them, you can reuse the program written in the previous exercise. This can show you the flexibility of such a program: it adapts to whatever environment it encounters." +msgstr "V tomto cvičení za sebou \"pomatený robot\" nechává na zemi spoustu modrých křížků. Využijte program z předchozího cvičení, abyste je uklidili. Ověříte si tím flexibilitu takového programu: dokáže se přizpůsobit libovolnému prostředí." + +#. type: \t; header +#: ../help/help.E.txt:4 +#, no-wrap +msgid "Remark" +msgstr "Poznámky" + +#. type: Plain text +#: ../help/help.E.txt:5 +#, no-wrap +msgid "Do not wait too long, because the crazy bot gets down to work immediately. Fortunately, as long as you are in the program editor, the game will pause." +msgstr "Zbytečně neotálejte, protože pomatený robot už začal řádit. Naštěstí se hra během psaní programu pozastaví." + +#. type: \t; header +#: ../help/help.E.txt:7 +#, no-wrap +msgid "See also" +msgstr "Užitečné odkazy" + +#. type: Plain text +#: ../help/help.E.txt:8 +#, no-wrap +msgid "Programming, types and categories." +msgstr "Programování, datové typy a kategorie." diff --git a/levels/exercises/chapter004/level004/po/cs.po b/levels/exercises/chapter004/level004/po/cs.po new file mode 100644 index 00000000..6e6a81e3 --- /dev/null +++ b/levels/exercises/chapter004/level004/po/cs.po @@ -0,0 +1,120 @@ +# This file is part of the Colobot: Gold Edition source code +# Copyright (C) 2001-2016, Daniel Roux, EPSITEC SA & TerranovaTeam +# This file is distributed under the same license as the Colobot package. +# next_ghost , 2018. +msgid "" +msgstr "" +"Project-Id-Version: 0.1.11\n" +"POT-Creation-Date: DATE\n" +"PO-Revision-Date: 2018-03-19 21:34+01\n" +"Last-Translator: next_ghost \n" +"Language-Team: Czech \n" +"Language: Czech\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=3; plural=((n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2);\n" +"X-Language: cs_CZ\n" +"X-Source-Language: en_US\n" + +#. type: Title-text +#: ../scene.txt:1 +#, no-wrap +msgid "Patient hunter" +msgstr "Trpělivý lovec" + +#. type: Resume-text +#: ../scene.txt:2 +#, no-wrap +msgid "Be patient enough not to waste your ammunitions." +msgstr "Buďte dost trpěliví, abyste neplýtvali střelivem." + +#. type: ScriptName-text +#: ../scene.txt:3 +#, no-wrap +msgid "Patient" +msgstr "Trpelivost" + +#. type: \b; header +#: ../help/help.E.txt:1 +#, no-wrap +msgid "Exercise" +msgstr "Cvičení" + +#. type: Plain text +#: ../help/help.E.txt:2 +#, no-wrap +msgid "You must find a way to destroy the four moving target bots without wasting one shot. Notice that after every move, the targets will stay motionless during one second." +msgstr "Vymyslete způsob, jak zničit čtyři pohyblivé cvičné cíle a ani jednou při tom neminout. Všimněte si, že cvičné cíle zůstanou po každém přesunu na jednu sekundu nehybně stát." + +#. type: \b; header +#: ../help/help.E.txt:4 +#, no-wrap +msgid "General principle" +msgstr "Obecný postup" + +#. type: Bullet: '1)' +#: ../help/help.E.txt:5 +#, no-wrap +msgid "Detect a target with the instruction radar(TargetBot);." +msgstr "Najděte cíl příkazem radar(TargetBot);." + +#. type: Bullet: '2)' +#: ../help/help.E.txt:6 +#, no-wrap +msgid "Turn towards the target with turn(direction());." +msgstr "Otočte k cíli příkazem turn(direction());." + +#. type: Bullet: '3)' +#: ../help/help.E.txt:7 +#, no-wrap +msgid "After the rotation, check if the target did not move." +msgstr "Po otočení zkontrolujte, jestli se cíl nepohnul." + +#. type: Bullet: '4)' +#: ../help/help.E.txt:8 +#, no-wrap +msgid "If it did not, wait 0.2 seconds with wait(0.2);." +msgstr "Pokud se nepohnul, počkejte 0,2 sekundy příkazem wait(0.2);." + +#. type: Bullet: '5)' +#: ../help/help.E.txt:9 +#, no-wrap +msgid "Re-check if the target did not move." +msgstr "Znovu zkontrolujte, jestli se cíl nepohnul." + +#. type: Bullet: '6)' +#: ../help/help.E.txt:10 +#, no-wrap +msgid "If it did not, shoot with fire(2); and wait 2 seconds for the target to be hit by the bullets and destroyed." +msgstr "Pokud se nepohnul, vystřelte příkazem fire(2); a počkejte 2 sekundy, než střely cíl zasáhnou a zničí." + +#. type: Plain text +#: ../help/help.E.txt:12 +#, no-wrap +msgid "There are of course other ways to achieve the goal." +msgstr "Samozřejmě jsou i jiné možnosti, jak úkol splnit." + +#. type: \b; header +#: ../help/help.E.txt:14 +#, no-wrap +msgid "Remark" +msgstr "Poznámky" + +#. type: Plain text +#: ../help/help.E.txt:15 +#, no-wrap +msgid "In order to increase the efficiency of your shots, aim a little downward with aim(-3);." +msgstr "Abyste zlepšili přesnost palby, namiřte trochu dolů příkazem aim(-3);." + +#. type: \t; header +#: ../help/help.E.txt:17 +#, no-wrap +msgid "See also" +msgstr "Užitečné odkazy" + +#. type: Plain text +#: ../help/help.E.txt:18 +#, no-wrap +msgid "Programming, types and categories." +msgstr "Programování, datové typy a kategorie." diff --git a/levels/exercises/chapter004/level005/po/cs.po b/levels/exercises/chapter004/level005/po/cs.po new file mode 100644 index 00000000..6f091fe7 --- /dev/null +++ b/levels/exercises/chapter004/level005/po/cs.po @@ -0,0 +1,248 @@ +# This file is part of the Colobot: Gold Edition source code +# Copyright (C) 2001-2016, Daniel Roux, EPSITEC SA & TerranovaTeam +# This file is distributed under the same license as the Colobot package. +# next_ghost , 2018. +msgid "" +msgstr "" +"Project-Id-Version: 0.1.11\n" +"POT-Creation-Date: DATE\n" +"PO-Revision-Date: 2018-03-21 23:38+01\n" +"Last-Translator: next_ghost \n" +"Language-Team: Czech \n" +"Language: Czech\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=3; plural=((n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2);\n" +"X-Language: cs_CZ\n" +"X-Source-Language: en_US\n" + +#. type: Title-text +#: ../scene.txt:1 +#, no-wrap +msgid "Shadow" +msgstr "Ocásek" + +#. type: Resume-text +#: ../scene.txt:2 +#, no-wrap +msgid "Follow a bot, as if you were its shadow." +msgstr "Jezděte za jiným robotem jako jeho ocásek." + +#. type: ScriptName-text +#: ../scene.txt:3 +#, no-wrap +msgid "Follow" +msgstr "Ocasek" + +#. type: \b; header +#: ../help/help.E.txt:1 +#, no-wrap +msgid "Exercise" +msgstr "Cvičení" + +#. type: Plain text +#: ../help/help.E.txt:2 +#, no-wrap +msgid "You must follow the target bot 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." +msgstr "Držte se blízko cvičného cíle naloženého výbušninami, ale nesmíte se ho dotknout, jinak vybuchne. Pokaždé, když se cvičný cíl zastaví, musíte k němu být blíže než 10 metrů. Když s ním udržíte krok 10 zastávek po sobě, zavede Vás na cílovou značku a cvičení skončí. Cvičný cíl při každé zastávce kontroluje, kde jste. Pokud budete moc daleko, budete muset začít znovu od začátku." + +#. type: \b; header +#: ../help/help.E.txt:4 +#, no-wrap +msgid "General principle" +msgstr "Obecný postup" + +#. type: Bullet: 'o' +#: ../help/help.E.txt:6 +#, no-wrap +msgid "Look for the target bot." +msgstr "Najít cvičný cíl." + +#. type: Bullet: 'o' +#: ../help/help.E.txt:7 +#, no-wrap +msgid "Calculate the distance to the bot." +msgstr "Vypočítat vzdálenost k cíli." + +#. type: Bullet: 'o' +#: ../help/help.E.txt:8 +#, no-wrap +msgid "if the distance to the target bot is less than 5m, move backward." +msgstr "Pokud je vzdálenost menší než 5m, zacouvat." + +#. type: Bullet: 'o' +#: ../help/help.E.txt:9 +#, no-wrap +msgid "Otherwise, calculate the direction of the target bot, and move towards it." +msgstr "Jinak spočítat směrový úhel a popojet k cvičnému cíli." + +#. type: Plain text +#: ../help/help.E.txt:11 +#, no-wrap +msgid "As many times before, use while (true) in order to perform the infinite loop:" +msgstr "Stejně jako mnohokrát předtím, použijte cyklus while (true) k vytvoření nekonečné smyčky:" + +#. type: Source code +#: ../help/help.E.txt:12 +#, no-wrap +msgid "" +"while (true)\n" +"{\n" +"\tinstructions to be repeated ...\n" +"}" +msgstr "" +"while (true)\n" +"{\n" +"\tpříkazy, které se mají opakovat...\n" +"}" + +#. type: Plain text +#: ../help/help.E.txt:17 +#, no-wrap +msgid "Look for the target bot with the instruction radar:" +msgstr "Cvičný cíl najděte příkazem radar:" + +#. type: Source code +#: ../help/help.E.txt:18 +#, no-wrap +msgid "\ttarget = radar(TargetBot);" +msgstr "\ttarget = radar(TargetBot);" + +#. type: Plain text +#: ../help/help.E.txt:20 +#, no-wrap +msgid "You do not have to test if the radar found a target bot: there must be one." +msgstr "Nemusíte kontrolovat, jestli radar něco našel, protože jeden cvičný cíl v tomto cvičení být musí." + +#. type: Plain text +#: ../help/help.E.txt:22 +#, no-wrap +msgid "Use the instruction distance( , ) to calculate the distance between two points. The first point will be the position of your own bot, given by position. The second point is the position of the target bot, given by target.position." +msgstr "Pro výpočet vzdálenosti mezi dvěma body použijte příkaz distance( , ). První bod bude poloha vašeho robota daná výrazem position. Druhý bod bude poloha cvičného cíle daná výrazem target.position." + +#. type: Source code +#: ../help/help.E.txt:23 +#, no-wrap +msgid "len = distance(position, target.position);" +msgstr "len = distance(position, target.position);" + +#. type: Plain text +#: ../help/help.E.txt:25 +#, no-wrap +msgid "" +"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" +"\tDistance = 5.0 meters -> speed = 0.0\n" +"\tDistance = 2.5 meters -> speed = -0.5\n" +"\tDistance = 0.0 meters -> speed = -1.0\n" +"You can use the expression distance/5-1 in order to achieve this, together with the if to test if the target is closer than 5m:" +msgstr "" +"Pokud jste od cvičného cíle méně než 5m daleko, couvejte rychlostí nepřímo úměrnou vzdálenosti: čím blíže k němu jste, tím rychleji musíte couvat.\n" +"\tVzdálenost = 5.0 metrů -> výkon = 0.0\n" +"\tVzdálenost = 2.5 metru -> výkon = -0.5\n" +"\tVzdálenost = 0.0 metrů -> výkon = -1.0\n" +"Vhodný výkon motorů můžete vypočítat výrazem distance/5-1 a vzdálenost od cvičného cíle kontrolujte příkazem if:" + +#. type: Source code +#: ../help/help.E.txt:30 +#, no-wrap +msgid "" +"if ( len < 5 ) // too close ?\n" +"{\n" +"\tmotor(len/5-1, len/5-1); // moves backward\n" +"}" +msgstr "" +"if ( len < 5 ) // moc blízko?\n" +"{\n" +"\tmotor(len/5-1, len/5-1); // zacouvat\n" +"}" + +#. type: Plain text +#: ../help/help.E.txt:35 +#, no-wrap +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 direction. You can then adjust the speed of the right-hand and left-hand motor in order to follow the target:" +msgstr "Pokud je vzdálenost od cvičného cíle větší než 5m, jeďte k němu. Nejprve příkazem direction spočítejte směrový úhel, o který se k němu musíte otočit. Pak můžete nastavit výkon motorů a vyjet k cíli:" + +#. type: Source code +#: ../help/help.E.txt:36 +#, no-wrap +msgid "" +"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\tit is up to you to fill in\n" +"\t}\n" +"}" +msgstr "" +"else\n" +"{\n" +"\tdir = direction(target.position);\n" +"\tif ( dir >= 0 ) // cíl je nalevo?\n" +"\t{\n" +"\t\tmotor(1-dir/90, 1);\n" +"\t}\n" +"\telse // cíl je napravo?\n" +"\t{\n" +"\t\tzbytek dopište sami\n" +"\t}\n" +"}" + +#. type: Plain text +#: ../help/help.E.txt:49 +#, no-wrap +msgid "" +"When the target is on your left, dir takes a positive value, ranging between 0 and 180. The expression 1-dir/90 returns a speed ranging between 1 and -1, according to the direction:\n" +"\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 "" +"Když bude cíl nalevo od robota, proměnná dir bude obsahovat kladnou hodnotu od 0 do 180. Výraz 1-dir/90 vrátí hodnotu výkonu od -1 do 1 v závislosti na směrovém úhlu:\n" +"\túhel = 0 -> výkon = 1.0\n" +"\túhel = 45 -> výkon = 0.5\n" +"\túhel = 90 -> výkon = 0.0\n" +"\túhel = 135 -> výkon = -0.5\n" +"\túhel = 180 -> výkon = -1.0" + +#. type: Image filename +#: ../help/help.E.txt:56 +#, no-wrap +msgid "radar2" +msgstr "radar2_cs" + +#. type: Plain text +#: ../help/help.E.txt:57 +#, no-wrap +msgid "When the target is on the right side, dir is negative, ranging between 0 and -180." +msgstr "Když bude cíl napravo od robota, dir bude obsahovat zápornou hodnotu od 0 do -180." + +#. type: Plain text +#: ../help/help.E.txt:59 +#, no-wrap +msgid "The only task left for you now is to declare the variables that you use in the program. target is of type object, whereas dir and len are of type float." +msgstr "Dále už musíte jen deklarovat proměnné, které budete v programu používat. Proměnná target je typu object, zatímco proměnné dir a len jsou typu float." + +#. type: \t; header +#: ../help/help.E.txt:61 +#, no-wrap +msgid "See also" +msgstr "Užitečné odkazy" + +#. type: Plain text +#: ../help/help.E.txt:62 +#, no-wrap +msgid "Programming, types and categories." +msgstr "Programování, datové typy a kategorie." + +#. type: Plain text +#: ../help/help.E.txt:5 +#, no-wrap +msgid "Repeat forever :" +msgstr "Opakovat stále dokola:"