diff --git a/levels/gen_levels_xml.sh b/levels/gen_levels_xml.sh index ecdb2373..87029431 100755 --- a/levels/gen_levels_xml.sh +++ b/levels/gen_levels_xml.sh @@ -29,11 +29,11 @@ for lang in $lang_short; do allsfile=$allsfile_c$dot$langcode.$allsfile_e; echo "<$levelfile>" > $destfile echo "

" >> $allsfile - for key in Title Resume; do + for key in Title Resume ScriptName; do for subkey in text resume; do subval=$(grep "^$key.$lang.*$subkey" $levelfileorig | sed -e "s/^.*$subkey=\"\([^\"]*\)\".*$/\1/") echo "<${key}_$subkey>$subval" >> $destfile - echo "

$subval

" >> $allsfile + echo "

$subval

" >> $allsfile done done echo "" >> $destfile @@ -82,9 +82,8 @@ for lang in $lang_long; do if [ ! -f $pofile ]; then po4a-gettextize -M UTF-8 -L UTF-8 -f xhtml -m levels.xhtml -l levels.$lang.xhtml > $pofile 2>/dev/null sed -e 's/, fuzzy//g' -i $pofile - else - po4a-updatepo -M UTF-8 -f xhtml -m levels.xhtml -p $pofile 2>/dev/null fi + po4a-updatepo -M UTF-8 -f xhtml -m levels.xhtml -p $pofile 2>/dev/null done echo " done" @@ -104,7 +103,7 @@ for levelfile in $(ls *.txt); do esac echo -n "." if [ -f $xmlfile ]; then - for key in Title Resume; do + for key in Title Resume ScriptName; do lineend="" for subkey in text resume; do keyval=$(grep "^<${key}_${subkey}>" $xmlfile | sed -e "s|^<${key}\_${subkey}>\(.*\)<\/${key}\_${subkey}>$|\1|g") @@ -118,7 +117,7 @@ for levelfile in $(ls *.txt); do done fi done - sed -e '/^Title/d;/^Resume/d' $levelfile.old >> $levelfile + sed -e '/^Title/d;/^Resume/d;/^ScriptName/d' $levelfile.old >> $levelfile rm $levelfile.old done diff --git a/levels/po/fr.po b/levels/po/fr.po index 429f43be..68e718a3 100644 --- a/levels/po/fr.po +++ b/levels/po/fr.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" -"POT-Creation-Date: 2012-12-30 17:39+0100\n" +"POT-Creation-Date: 2012-12-30 17:55+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -37,6 +37,15 @@ msgstr "Suivre un chemin" msgid "Move the bot along a given path." msgstr "Déplacer un robot le long d'une trajectoire donnée." +# +#. type: Content of: +#: defi101.xml:6 defi300.xml:3 defi401.xml:6 defi402.xml:6 train201.xml:6 +#: train202.xml:6 train203.xml:6 train204.xml:6 train205.xml:6 train301.xml:6 +#: train302.xml:6 train403.xml:6 train500.xml:3 train601.xml:6 train602.xml:6 +#, no-wrap +msgid "Move" +msgstr "Déplace" + # #. type: Content of: #: defi102.xml:2 train303.xml:2 @@ -51,6 +60,12 @@ msgstr "Massacre" msgid "Use a loop in order to destroy four targets." msgstr "Détruire quatre cibles à l'aide d'une boucle." +#. type: Content of: +#: defi102.xml:6 train303.xml:6 +#, no-wrap +msgid "Go" +msgstr "Go" + # #. type: Content of: #: defi103.xml:2 @@ -65,6 +80,12 @@ msgstr "Bornes" msgid "Collect lots of valuable information from information exchange posts." msgstr "Récolter des informations de direction et de distance." +#. type: Content of: +#: defi103.xml:6 train304.xml:6 train305.xml:6 +#, no-wrap +msgid "Info" +msgstr "Info" + # #. type: Content of: #: defi104.xml:2 @@ -79,6 +100,13 @@ msgstr "Labyrinthe" msgid "Teach your bot how to find its way out of the labyrinth." msgstr "Programmez un robot pour qu'il avance sans se cogner dans un labyrinthe." +#. type: Content of: +#: defi104.xml:6 train306.xml:6 train307.xml:6 +#, no-wrap +#| msgid "Labyrinth 3" +msgid "Labyrinth" +msgstr "Labyrinth" + # #. type: Content of: #: defi200.xml:2 train400.xml:2 @@ -107,6 +135,13 @@ msgstr "Le petit poucet" msgid "Use the radar to put some order into a big mess left behind by a crazy bot." msgstr "Utilisez le radar pour trouver toutes les marques déposées par le petit poucet." +# +#. type: Content of: +#: defi201.xml:6 train402.xml:2 +#, no-wrap +msgid "Radar" +msgstr "Radar" + # #. type: Content of: #: defi202.xml:2 @@ -121,6 +156,13 @@ msgstr "Copieur ..." msgid "Follow a bot, as if you were its shadow." msgstr "Suivez un robot, sans le heurter." +#. type: Content of: +#: defi202.xml:6 train405.xml:6 +#, no-wrap +#| msgid "Follow a path" +msgid "Follow" +msgstr "Follow" + # #. type: Content of: #: defi203.xml:2 @@ -135,6 +177,13 @@ msgstr "Au secours" msgid "Defend yourself agains all alien attacks." msgstr "Défendez-vous de toutes les attaques ennemies." +#. type: Content of: +#: defi203.xml:6 +#, no-wrap +#| msgid "Self-defense" +msgid "Defense" +msgstr "Defense" + # #. type: Content of: #: defi204.xml:2 @@ -149,6 +198,13 @@ msgstr "Radar et pièges 1" msgid "Use your radar to look for various items, but watch out for the mines." msgstr "Utilisez le radar pour trouver des objets répartis aléatoirement, en évitant les bombes." +#. type: Content of: +#: defi204.xml:6 defi205.xml:6 +#, no-wrap +#| msgid "The Trap" +msgid "Traps" +msgstr "Traps" + # #. type: Content of: #: defi205.xml:2 @@ -164,19 +220,13 @@ msgid "Try to figure out how to survive in a hostile environment." msgstr "A vous d'imaginer comment survivre dans un milieu hostile." # -#. type: Content of: -#: defi300.xml:2 train500.xml:2 +#. type: Content of: +#: defi300.xml:2 defi301.xml:6 defi302.xml:6 train500.xml:2 train501.xml:6 +#: train502.xml:6 train503.xml:6 train504.xml:6 #, no-wrap msgid "Mover" msgstr "Déplacements" -# -#. type: Content of: -#: defi300.xml:3 train500.xml:3 -#, no-wrap -msgid "Move" -msgstr "Déplace" - # #. type: Content of: #: defi301.xml:2 train501.xml:2 @@ -1164,6 +1214,13 @@ msgstr "Araignées 1" msgid "Kill three spiders with a small program." msgstr "Tuer trois araignées avec un petit programme." +#. type: Content of: +#: train101.xml:6 +#, no-wrap +#| msgid "Spiders 1" +msgid "Spider1" +msgstr "Spider1" + # #. type: Content of: #: train102.xml:2 @@ -1178,6 +1235,13 @@ msgstr "Pile 1" msgid "Instruct a bot to change the power cell of a nearby winged shooter." msgstr "Programmer un robot pour qu'il change la pile d'un autre robot" +#. type: Content of: +#: train102.xml:6 train105.xml:6 train106.xml:6 +#, no-wrap +#| msgid "Spiders 2" +msgid "Spider2" +msgstr "Spider2" + # #. type: Content of: #: train103.xml:2 @@ -1192,6 +1256,13 @@ msgstr "Titanium 1" msgid "Take a chunk of titanium ore and bring it to the converter." msgstr "Programmer un robot pour qu'il aille chercher un minerai de titanium et l'amène sur le convertisseur" +#. type: Content of: +#: train103.xml:6 +#, no-wrap +#| msgid "Titanium 1" +msgid "Titanium1" +msgstr "Titanium1" + # #. type: Content of: #: train104.xml:2 @@ -1206,6 +1277,13 @@ msgstr "Titanium 2" msgid "Use the bot's radar to look for the titanium ore and bring it to the converter." msgstr "Utiliser le radar pour aller chercher un minerai de titanium" +#. type: Content of: +#: train104.xml:6 +#, no-wrap +#| msgid "Titanium 2" +msgid "Titanium2" +msgstr "Titanium2" + # #. type: Content of: #: train105.xml:2 @@ -1248,6 +1326,13 @@ msgstr "Araignées 3" msgid "Learn to move the bot so that no spider can escape." msgstr "Allez à la rencontre des araignées." +#. type: Content of: +#: train107.xml:6 +#, no-wrap +#| msgid "Spiders 3" +msgid "Spider3" +msgstr "Spider3" + # #. type: Content of: #: train200.xml:2 @@ -1346,6 +1431,12 @@ msgstr "Chasseur de guêpes 1" msgid "Shoot down the flying wasps." msgstr "Attrapez des guêpes en vol" +#. type: Content of: +#: train206.xml:6 +#, no-wrap +msgid "Wasp1" +msgstr "Wasp1" + # #. type: Content of: #: train207.xml:2 @@ -1360,6 +1451,12 @@ msgstr "Chasseur de guêpes 2" msgid "Get better at shooting down the wasps." msgstr "Attrapez des guêpes de manière plus efficace" +#. type: Content of: +#: train207.xml:6 +#, no-wrap +msgid "Wasp2" +msgstr "Wasp2" + # #. type: Content of: #: train302.xml:2 @@ -1444,6 +1541,13 @@ msgstr "Le chercheur d'or" msgid "Instruct your bot to search a zone for subsoil resources." msgstr "Recherche de minerai en sous-sol en programmant un robot pour quadriller une zone." +#. type: Content of: +#: train308.xml:6 +#, no-wrap +#| msgid "Gold Digger" +msgid "Digger" +msgstr "Diggger" + # #. type: Content of: #: train309.xml:2 @@ -1458,9 +1562,15 @@ msgstr "Télécommande #1" msgid "Remote control a robot using an information exchange post, so it will transport uranium ore." msgstr "Télécommandez un robot par le biais d'une borne d'information." +#. type: Content of: +#: train309.xml:6 train603.xml:6 +#, no-wrap +msgid "remote" +msgstr "remote" + # -#. type: Content of: -#: train401.xml:2 +#. type: Content of: +#: train401.xml:2 train401.xml:6 #, no-wrap msgid "Dragster" msgstr "Dragster" @@ -1472,13 +1582,6 @@ msgstr "Dragster" msgid "Program a progressive deceleration in order to avoid the mines right behind the goal." msgstr "Décélération avec commande directe des moteurs." -# -#. type: Content of: -#: train402.xml:2 -#, no-wrap -msgid "Radar" -msgstr "Radar" - # #. type: Content of: #: train402.xml:4 @@ -1486,6 +1589,12 @@ msgstr "Radar" msgid "Use the radar to find lots of stupid blue crosses." msgstr "Utilisez le radar pour trouver des objets répartis aléatoirement." +#. type: Content of: +#: train402.xml:6 +#, no-wrap +msgid "Find" +msgstr "Find" + # #. type: Content of: #: train403.xml:2 @@ -1507,6 +1616,13 @@ msgstr "Chasse à l'homme" msgid "Be patient enough not to waste your ammunitions." msgstr "Abattre quatre cibles mouvantes sans gaspiller un seul coup." +#. type: Content of: +#: train404.xml:6 +#, no-wrap +#| msgid "Patient hunter" +msgid "Patient" +msgstr "Patient" + # #. type: Content of: #: train405.xml:2 @@ -1612,6 +1728,12 @@ msgstr "Télécommande #3" msgid "Remote control a bot without using an information exchange post by using a string." msgstr "Télécommandez un robot sans borne d'information en utilisant une simple chaîne de caractère." +#. type: Content of: +#: train701.xml:6 +#, no-wrap +msgid "Remote3" +msgstr "Remote3" + # #. type: Content of: #: train702.xml:2 @@ -1626,6 +1748,12 @@ msgstr "Télécommande #4" msgid "Remote control a bot without using an information exchange post by defining a class for the orders." msgstr "Télécommandez un robot sans borne d'information en utilisant une classe définissant un ordre." +#. type: Content of: +#: train702.xml:6 +#, no-wrap +msgid "Remote4" +msgstr "Remote4" + # #. type: Content of: #: train703.xml:2 @@ -1639,3 +1767,10 @@ msgstr "Télécommande #5" #, no-wrap msgid "Remote control a bot without using an information exchange post by storing the orders." msgstr "Télécommandez un robot en mémorisant tous les ordres." + +#. type: Content of: +#: train703.xml:6 +#, no-wrap +msgid "Remote5" +msgstr "Remote5" + diff --git a/levels/po/levels.pot b/levels/po/levels.pot index 4d5ba30e..4d03a63d 100644 --- a/levels/po/levels.pot +++ b/levels/po/levels.pot @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" -"POT-Creation-Date: 2012-12-30 17:39+0100\n" +"POT-Creation-Date: 2012-12-30 17:55+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -34,6 +34,12 @@ msgstr "" msgid "Move the bot along a given path." msgstr "" +#. type: Content of: +#: defi101.xml:6 defi300.xml:3 defi401.xml:6 defi402.xml:6 train201.xml:6 train202.xml:6 train203.xml:6 train204.xml:6 train205.xml:6 train301.xml:6 train302.xml:6 train403.xml:6 train500.xml:3 train601.xml:6 train602.xml:6 +#, no-wrap +msgid "Move" +msgstr "" + #. type: Content of: #: defi102.xml:2 train303.xml:2 #, no-wrap @@ -46,6 +52,12 @@ msgstr "" msgid "Use a loop in order to destroy four targets." msgstr "" +#. type: Content of: +#: defi102.xml:6 train303.xml:6 +#, no-wrap +msgid "Go" +msgstr "" + #. type: Content of: #: defi103.xml:2 #, no-wrap @@ -58,6 +70,12 @@ msgstr "" msgid "Collect lots of valuable information from information exchange posts." msgstr "" +#. type: Content of: +#: defi103.xml:6 train304.xml:6 train305.xml:6 +#, no-wrap +msgid "Info" +msgstr "" + #. type: Content of: #: defi104.xml:2 #, no-wrap @@ -70,6 +88,12 @@ msgstr "" msgid "Teach your bot how to find its way out of the labyrinth." msgstr "" +#. type: Content of: +#: defi104.xml:6 train306.xml:6 train307.xml:6 +#, no-wrap +msgid "Labyrinth" +msgstr "" + #. type: Content of: #: defi200.xml:2 train400.xml:2 #, no-wrap @@ -94,6 +118,12 @@ msgstr "" msgid "Use the radar to put some order into a big mess left behind by a crazy bot." msgstr "" +#. type: Content of: +#: defi201.xml:6 train402.xml:2 +#, no-wrap +msgid "Radar" +msgstr "" + #. type: Content of: #: defi202.xml:2 #, no-wrap @@ -106,6 +136,12 @@ msgstr "" msgid "Follow a bot, as if you were its shadow." msgstr "" +#. type: Content of: +#: defi202.xml:6 train405.xml:6 +#, no-wrap +msgid "Follow" +msgstr "" + #. type: Content of: #: defi203.xml:2 #, no-wrap @@ -118,6 +154,12 @@ msgstr "" msgid "Defend yourself agains all alien attacks." msgstr "" +#. type: Content of: +#: defi203.xml:6 +#, no-wrap +msgid "Defense" +msgstr "" + #. type: Content of: #: defi204.xml:2 #, no-wrap @@ -130,6 +172,12 @@ msgstr "" msgid "Use your radar to look for various items, but watch out for the mines." msgstr "" +#. type: Content of: +#: defi204.xml:6 defi205.xml:6 +#, no-wrap +msgid "Traps" +msgstr "" + #. type: Content of: #: defi205.xml:2 #, no-wrap @@ -142,18 +190,12 @@ msgstr "" msgid "Try to figure out how to survive in a hostile environment." msgstr "" -#. type: Content of: -#: defi300.xml:2 train500.xml:2 +#. type: Content of: +#: defi300.xml:2 defi301.xml:6 defi302.xml:6 train500.xml:2 train501.xml:6 train502.xml:6 train503.xml:6 train504.xml:6 #, no-wrap msgid "Mover" msgstr "" -#. type: Content of: -#: defi300.xml:3 train500.xml:3 -#, no-wrap -msgid "Move" -msgstr "" - #. type: Content of: #: defi301.xml:2 train501.xml:2 #, no-wrap @@ -1010,6 +1052,12 @@ msgstr "" msgid "Kill three spiders with a small program." msgstr "" +#. type: Content of: +#: train101.xml:6 +#, no-wrap +msgid "Spider1" +msgstr "" + #. type: Content of: #: train102.xml:2 #, no-wrap @@ -1022,6 +1070,12 @@ msgstr "" msgid "Instruct a bot to change the power cell of a nearby winged shooter." msgstr "" +#. type: Content of: +#: train102.xml:6 train105.xml:6 train106.xml:6 +#, no-wrap +msgid "Spider2" +msgstr "" + #. type: Content of: #: train103.xml:2 #, no-wrap @@ -1034,6 +1088,12 @@ msgstr "" msgid "Take a chunk of titanium ore and bring it to the converter." msgstr "" +#. type: Content of: +#: train103.xml:6 +#, no-wrap +msgid "Titanium1" +msgstr "" + #. type: Content of: #: train104.xml:2 #, no-wrap @@ -1048,6 +1108,12 @@ msgid "" "converter." msgstr "" +#. type: Content of: +#: train104.xml:6 +#, no-wrap +msgid "Titanium2" +msgstr "" + #. type: Content of: #: train105.xml:2 #, no-wrap @@ -1084,6 +1150,12 @@ msgstr "" msgid "Learn to move the bot so that no spider can escape." msgstr "" +#. type: Content of: +#: train107.xml:6 +#, no-wrap +msgid "Spider3" +msgstr "" + #. type: Content of: #: train200.xml:2 #, no-wrap @@ -1168,6 +1240,12 @@ msgstr "" msgid "Shoot down the flying wasps." msgstr "" +#. type: Content of: +#: train206.xml:6 +#, no-wrap +msgid "Wasp1" +msgstr "" + #. type: Content of: #: train207.xml:2 #, no-wrap @@ -1180,6 +1258,12 @@ msgstr "" msgid "Get better at shooting down the wasps." msgstr "" +#. type: Content of: +#: train207.xml:6 +#, no-wrap +msgid "Wasp2" +msgstr "" + #. type: Content of: #: train302.xml:2 #, no-wrap @@ -1252,6 +1336,12 @@ msgstr "" msgid "Instruct your bot to search a zone for subsoil resources." msgstr "" +#. type: Content of: +#: train308.xml:6 +#, no-wrap +msgid "Digger" +msgstr "" + #. type: Content of: #: train309.xml:2 #, no-wrap @@ -1266,8 +1356,14 @@ msgid "" "transport uranium ore." msgstr "" -#. type: Content of: -#: train401.xml:2 +#. type: Content of: +#: train309.xml:6 train603.xml:6 +#, no-wrap +msgid "remote" +msgstr "" + +#. type: Content of: +#: train401.xml:2 train401.xml:6 #, no-wrap msgid "Dragster" msgstr "" @@ -1280,18 +1376,18 @@ msgid "" "the goal." msgstr "" -#. type: Content of: -#: train402.xml:2 -#, no-wrap -msgid "Radar" -msgstr "" - #. type: Content of: #: train402.xml:4 #, no-wrap msgid "Use the radar to find lots of stupid blue crosses." msgstr "" +#. type: Content of: +#: train402.xml:6 +#, no-wrap +msgid "Find" +msgstr "" + #. type: Content of: #: train403.xml:2 #, no-wrap @@ -1310,6 +1406,12 @@ msgstr "" msgid "Be patient enough not to waste your ammunitions." msgstr "" +#. type: Content of: +#: train404.xml:6 +#, no-wrap +msgid "Patient" +msgstr "" + #. type: Content of: #: train405.xml:2 #, no-wrap @@ -1404,6 +1506,12 @@ msgid "" "string." msgstr "" +#. type: Content of: +#: train701.xml:6 +#, no-wrap +msgid "Remote3" +msgstr "" + #. type: Content of: #: train702.xml:2 #, no-wrap @@ -1418,6 +1526,12 @@ msgid "" "a class for the orders." msgstr "" +#. type: Content of: +#: train702.xml:6 +#, no-wrap +msgid "Remote4" +msgstr "" + #. type: Content of: #: train703.xml:2 #, no-wrap @@ -1431,3 +1545,9 @@ msgid "" "Remote control a bot without using an information exchange post by storing " "the orders." msgstr "" + +#. type: Content of: +#: train703.xml:6 +#, no-wrap +msgid "Remote5" +msgstr ""