Merge pull request #43 from gnieark/dev

translation
This commit is contained in:
Gnieark 2015-12-27 14:04:14 +01:00
commit 448fb767a8
5 changed files with 108 additions and 46 deletions

View File

@ -161,6 +161,15 @@ if(isset($_GET['arena'])){
$jsAdditionalScript=""; $jsAdditionalScript="";
break; break;
case "editBot":
$siteTitle="Modifier un bot";
$siteDescription="bots arena ";
$permitIndex=false;
$mainSectionScript="../src/editBot.php";
$asideSectionContent=''; //to do
$cssAdditionalScript="";
$jsAdditionalScript="";
break;
default: default:
error(404,"Not found"); error(404,"Not found");
break; break;

View File

@ -1,18 +1,50 @@
<?php <?php
$lang = array( $lang = array(
'lang' => 'en', 'lang' => 'en',
'SITE_NAME' => 'bots\'arena',
'SITE_DESCRIPTION' => '<p>Welcome on the bots\'arena.<br/><b>this website is still in dev. it doesn\'t work yet</b><br/>This vhost is a mirror of dev branch <a href="https://github.com/gnieark/botsArena/tree/dev">this github repo</a></p> 'SITE_NAME' => 'Bots\' Arena',
<p>Many games will be proposed here. You wont play to, but you will developp the bot who will play for you. 'SITE_DESCRIPTION' => '<p>
This website will be the arena for bots confrontation.</p>', Welcome on the Bots\' Arena.<br/>
'HOME' => 'Home page', <b>This website is still in developpement. It doesn\'t work yet.</b><br/>
This vhost is a mirror of dev branch <a href="https://github.com/gnieark/botsArena/tree/dev">this github repo</a>
</p>
<p>
Many games will be proposed here. You wont play to, but you will developp the bot who will play for you.<br/>
This website will be the arena for bots confrontation.
</p>',
'HOME' => 'Home',
'VICTORIES' => 'victories', 'VICTORIES' => 'victories',
'DRAW' => 'drawn match', 'DRAW' => 'drawn match',
'MAKE_DUEL' => 'Organise a duel', 'MAKE_DUEL' => 'Organise a duel',
'FIGHT' => 'Fight !', 'FIGHT' => 'Fight !',
'DEV-YOUR-OWN-BOT' => 'Program your own bot, and send it on this arena..',
'DEV-YOUR-OWN-BOT' => 'Program your own bot, and send it on this arena.',
'DOC_SPECS_LINKS' => 'Read the technicals specifications', 'DOC_SPECS_LINKS' => 'Read the technicals specifications',
'E_MAIL_ADD_BOT_INTRO' => 'A big thank for your participation. Follow the link below to confirm the addition of your bot',
'E_MAIL_ADD_BOT_INTRO_HTML' => '<p>
A big thank for your participation.
</p>
<p>
Just a click on the following link to confirm the addition of the bot
</p>',
'E_MAIL_ADD_BOT_SIGNATURE' => 'Gnieark',
'E_MAIL_ADD_BOT_SIGNATURE_HTML' => '<p>
<i>Gnieark.</i>
</p>',
'ABOUT' => 'About', 'ABOUT' => 'About',
'LEGALS' => 'legal terms', 'LEGALS' => 'Legal terms',
'ADD_YOUR_BOT' => 'Add your bot'
'ADD_YOUR_BOT' => 'Add your bot',
'BOT_NAME' => 'Bot name',
'YOUR_ALIAS_FOR_EXEMPLE' => 'Your username eg',
'BOT_GAME' => 'The game of your bot',
'BOT_URL' => 'The URL of your bot',
'BOT_DESCRIPTION' => 'Description (html code will not be interpreted, URL will be converted into link):',
'YOUR_EMAIL_FOR_BOT_VALIDATION' => 'Your email address (will serve to validate your bot)',
'SAVE_BOT' => 'Save'
); );

View File

@ -1,30 +1,49 @@
<?php <?php
$lang = array( $lang = array(
'lang' => 'fr', 'lang' => 'fr',
'SITE_NAME' => 'Arène à bots', 'SITE_NAME' => 'Arène à bots',
'SITE_DESCRIPTION' => 'SITE_DESCRIPTION' => '<p>
'<p>Bienvenue sur cette arène à bots.<br/><b>Ce site est en cours de développement. Il fonctionne, mais beaucoup de détails restent à régler, dont la traduction anglais</b></p> Bienvenue sur cette arène à bots.<br/>
<p>Plusieurs jeux sont proposés ici. Vous ne devez pas y jouer, mais dévolopper le "bot" qui jouera en votre nom. <b>Ce site est en cours de développement. Il fonctionne, mais beaucoup de détails restent à régler, dont la traduction anglais</b>
Ce site permet de faire s\'affronter les bots des différents développeurs.</p>', </p>
'HOME' => 'accueil', <p>
Plusieurs jeux sont proposés ici. Vous ne devez pas y jouer, mais dévolopper le "bot" qui jouera en votre nom.
Ce site permet de faire s\'affronter les bots des différents développeurs.
</p>',
'HOME' => 'Accueil',
'VICTORIES' => 'victoires', 'VICTORIES' => 'victoires',
'DRAW' => 'matchs nuls', 'DRAW' => 'matchs nuls',
'MAKE_DUEL' => 'Provoquer un duel', 'MAKE_DUEL' => 'Provoquer un duel',
'FIGHT' => 'Baston !', 'FIGHT' => 'Baston !',
'DEV-YOUR-OWN-BOT' => 'Developpez votre bot et envoyez le dans cette arène.', 'DEV-YOUR-OWN-BOT' => 'Developpez votre bot et envoyez le dans cette arène.',
'DOC_SPECS_LINKS' => 'Voici les spécifications techniques', 'DOC_SPECS_LINKS' => 'Voici les spécifications techniques',
'E_MAIL_ADD_BOT_INTRO' => 'Un grand merci pour la participation. Suivez le lien suivant pour valider l\'ajout du bot', 'E_MAIL_ADD_BOT_INTRO' => 'Un grand merci pour la participation. Suivez le lien suivant pour valider l\'ajout du bot',
'E_MAIL_ADD_BOT_INTRO_HTML' => '<p>Un grand merci pour la participation.</p><p>Juste un click sur le lien suivant pour valider l\ajout du bot</p>', 'E_MAIL_ADD_BOT_INTRO_HTML' => '<p>
Un grand merci pour la participation.
</p>
<p>
Juste un click sur le lien suivant pour valider l\ajout du bot
</p>',
'E_MAIL_ADD_BOT_SIGNATURE' => 'Gnieark', 'E_MAIL_ADD_BOT_SIGNATURE' => 'Gnieark',
'E_MAIL_ADD_BOT_SIGNATURE_HTML'=> '<p><i>Gnieark.</i></p>', 'E_MAIL_ADD_BOT_SIGNATURE_HTML' => '<p>
<i>Gnieark.</i>
</p>',
'ABOUT' => 'A propos', 'ABOUT' => 'A propos',
'LEGALS' => 'Mentions légales', 'LEGALS' => 'Mentions légales',
'ADD_YOUR_BOT' => 'Ajoutez votre bot', 'ADD_YOUR_BOT' => 'Ajoutez votre bot',
'BOT_NAME' => 'Nom de votre bot:', 'BOT_NAME' => 'Nom de votre bot',
'YOUR_ALIAS_FOR_EXEMPLE' => 'Votre pseudonyme par exemple', 'YOUR_ALIAS_FOR_EXEMPLE' => 'Votre pseudonyme par exemple',
'BOT_GAME' => 'Le jeu de votre bot', 'BOT_GAME' => 'Le jeu de votre bot',
'BOT_URL' => 'L\'adresse URL de votre bot', 'BOT_URL' => 'L\'adresse URL de votre bot',
'BOT_DESCRIPTION' => 'Description:', 'BOT_DESCRIPTION' => 'Description (le code html ne sera pas interprété, les URL seront transformées en lien)',
'YOUR_EMAIL_FOR_BOT_VALIDATION' =>'Votre adresse e-mail (servira pour la validation de votre BOT)', 'YOUR_EMAIL_FOR_BOT_VALIDATION' => 'Votre adresse e-mail (servira pour la validation de votre bot)',
'SAVE_BOT' => 'Enregistrer' 'SAVE_BOT' => 'Enregistrer'
); );

View File

@ -1,5 +1,6 @@
<article> <article>
<?php <?php
echo '<h2>A props de '.htmlentities($_GET['params']).'</h2><p>Inscrit le '.$theBot['date_inscription'].'</p><p>'.$theBot['description'].'</p>'; echo '<h2>A props de '.htmlentities($_GET['params']).'</h2><p>Inscrit le '.$theBot['date_inscription'].'</p><p>'.$theBot['description'].'</p>
<p><i><a href="/p/editBot/'.$theBot['id'].'">Si vous êtes le propriétaire de ce bot, vous pouvez le modifier</a></i></p>';
?> ?>
</article> </article>

1
src/editBot.php Normal file
View File

@ -0,0 +1 @@
<h2>EditBot</h2>