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="";
break;
case "editBot":
$siteTitle="Modifier un bot";
$siteDescription="bots arena ";
$permitIndex=false;
$mainSectionScript="../src/editBot.php";
$asideSectionContent=''; //to do
$cssAdditionalScript="";
$jsAdditionalScript="";
break;
default:
error(404,"Not found");
break;
@ -241,4 +250,4 @@ if (isset($_POST['xd_check'])){
<a href="/p/About"><?php echo $lang['ABOUT']; ?></a><a href="https://github.com/gnieark/botsArena">Bots'Arena source code</a><a href="/p/legals"><?php echo $lang['LEGALS']; ?></a>
</footer>
</body>
</html>
</html>

View File

@ -1,18 +1,50 @@
<?php
$lang=array(
'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>
<p>Many games will be proposed here. You wont play to, but you will developp the bot who will play for you.
This website will be the arena for bots confrontation.</p>',
'HOME' => 'Home page',
'VICTORIES' => 'victories',
'DRAW' => 'drawn match',
'MAKE_DUEL' => 'Organise a duel',
'FIGHT' => 'Fight!',
'DEV-YOUR-OWN-BOT' => 'Program your own bot, and send it on this arena..',
'DOC_SPECS_LINKS' =>'Read the technicals specifications',
'ABOUT' => 'About',
'LEGALS' => 'legal terms',
'ADD_YOUR_BOT' => 'Add your bot'
$lang = array(
'lang' => 'en',
'SITE_NAME' => 'Bots\' Arena',
'SITE_DESCRIPTION' => '<p>
Welcome on the Bots\' Arena.<br/>
<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',
'DRAW' => 'drawn match',
'MAKE_DUEL' => 'Organise a duel',
'FIGHT' => 'Fight !',
'DEV-YOUR-OWN-BOT' => 'Program your own bot, and send it on this arena.',
'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',
'LEGALS' => 'Legal terms',
'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
$lang=array(
'lang' => 'fr',
'SITE_NAME' => 'Arène à bots',
'SITE_DESCRIPTION' =>
'<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>
<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',
'DRAW' => 'matchs nuls',
'MAKE_DUEL' => 'Provoquer un duel',
'FIGHT' => 'Baston!',
'DEV-YOUR-OWN-BOT' => 'Developpez votre bot et envoyez le dans cette arène.',
'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_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_HTML'=> '<p><i>Gnieark.</i></p>',
'ABOUT' => 'A propos',
'LEGALS' => 'Mentions légales',
'ADD_YOUR_BOT' => 'Ajoutez votre bot',
'BOT_NAME' => 'Nom de votre bot:',
'YOUR_ALIAS_FOR_EXEMPLE' => 'Votre pseudonyme par exemple',
'BOT_GAME' => 'Le jeu de votre bot',
'BOT_URL' => 'L\'adresse URL de votre bot',
'BOT_DESCRIPTION' => 'Description:',
'YOUR_EMAIL_FOR_BOT_VALIDATION' =>'Votre adresse e-mail (servira pour la validation de votre BOT)',
'SAVE_BOT' => 'Enregistrer'
$lang = array(
'lang' => 'fr',
'SITE_NAME' => 'Arène à bots',
'SITE_DESCRIPTION' => '<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>
<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',
'DRAW' => 'matchs nuls',
'MAKE_DUEL' => 'Provoquer un duel',
'FIGHT' => 'Baston !',
'DEV-YOUR-OWN-BOT' => 'Developpez votre bot et envoyez le dans cette arène.',
'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_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_HTML' => '<p>
<i>Gnieark.</i>
</p>',
'ABOUT' => 'A propos',
'LEGALS' => 'Mentions légales',
'ADD_YOUR_BOT' => 'Ajoutez votre bot',
'BOT_NAME' => 'Nom de votre bot',
'YOUR_ALIAS_FOR_EXEMPLE' => 'Votre pseudonyme par exemple',
'BOT_GAME' => 'Le jeu de votre bot',
'BOT_URL' => 'L\'adresse URL de votre bot',
'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)',
'SAVE_BOT' => 'Enregistrer'
);

View File

@ -1,5 +1,6 @@
<article>
<?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>

1
src/editBot.php Normal file
View File

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