From a64bbd22fea794d7bef2277f87fbf66caf2ff6a3 Mon Sep 17 00:00:00 2001 From: Gnieark Date: Sun, 27 Dec 2015 12:57:16 +0100 Subject: [PATCH 1/3] home --- html/index.php | 2 +- lang/fr.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/html/index.php b/html/index.php index 1e1546c..564e614 100644 --- a/html/index.php +++ b/html/index.php @@ -241,4 +241,4 @@ if (isset($_POST['xd_check'])){ Bots'Arena source code - + \ No newline at end of file diff --git a/lang/fr.php b/lang/fr.php index f55d268..dec3982 100644 --- a/lang/fr.php +++ b/lang/fr.php @@ -24,7 +24,7 @@ $lang=array( '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:', + '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' ); \ No newline at end of file From f12207546e162475b79c6cf1dd4c49e6f2a0b2b5 Mon Sep 17 00:00:00 2001 From: Gnieark Date: Sun, 27 Dec 2015 13:03:45 +0100 Subject: [PATCH 2/3] edit bots --- html/index.php | 9 +++++++++ src/aboutBot.php | 3 ++- src/editBot.php | 1 + 3 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 src/editBot.php diff --git a/html/index.php b/html/index.php index 564e614..18afcf6 100644 --- a/html/index.php +++ b/html/index.php @@ -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; diff --git a/src/aboutBot.php b/src/aboutBot.php index a0e0fae..f0185f3 100644 --- a/src/aboutBot.php +++ b/src/aboutBot.php @@ -1,5 +1,6 @@ \ No newline at end of file diff --git a/src/editBot.php b/src/editBot.php new file mode 100644 index 0000000..c688725 --- /dev/null +++ b/src/editBot.php @@ -0,0 +1 @@ +

EditBot

\ No newline at end of file From 20d703b2dc17b9987de3141194c27e7ffb7ee544 Mon Sep 17 00:00:00 2001 From: Jordann Date: Sun, 27 Dec 2015 13:53:12 +0100 Subject: [PATCH 3/3] Add translation --- lang/en.php | 64 +++++++++++++++++++++++++++++++++------------ lang/fr.php | 75 +++++++++++++++++++++++++++++++++-------------------- 2 files changed, 95 insertions(+), 44 deletions(-) diff --git a/lang/en.php b/lang/en.php index 9f55ffa..638d174 100644 --- a/lang/en.php +++ b/lang/en.php @@ -1,18 +1,50 @@ 'en', - 'SITE_NAME' => 'bots\'arena', - 'SITE_DESCRIPTION' => '

Welcome on the bots\'arena.
this website is still in dev. it doesn\'t work yet
This vhost is a mirror of dev branch this github repo

-

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.

', - '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' => '

+ Welcome on the Bots\' Arena.
+ This website is still in developpement. It doesn\'t work yet.
+ This vhost is a mirror of dev branch this github repo +

+

+ 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. +

', + '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' => '

+ A big thank for your participation. +

+

+ Just a click on the following link to confirm the addition of the bot +

', + 'E_MAIL_ADD_BOT_SIGNATURE' => 'Gnieark', + 'E_MAIL_ADD_BOT_SIGNATURE_HTML' => '

+ Gnieark. +

', + + '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' ); \ No newline at end of file diff --git a/lang/fr.php b/lang/fr.php index dec3982..eb3bfe4 100644 --- a/lang/fr.php +++ b/lang/fr.php @@ -1,30 +1,49 @@ 'fr', - 'SITE_NAME' => 'Arène à bots', - 'SITE_DESCRIPTION' => - '

Bienvenue sur cette arène à bots.
Ce site est en cours de développement. Il fonctionne, mais beaucoup de détails restent à régler, dont la traduction anglais

-

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.

', - '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' => '

Un grand merci pour la participation.

Juste un click sur le lien suivant pour valider l\ajout du bot

', - 'E_MAIL_ADD_BOT_SIGNATURE' => 'Gnieark', - 'E_MAIL_ADD_BOT_SIGNATURE_HTML'=> '

Gnieark.

', - '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' + +$lang = array( + 'lang' => 'fr', + + 'SITE_NAME' => 'Arène à bots', + 'SITE_DESCRIPTION' => '

+ Bienvenue sur cette arène à bots.
+ Ce site est en cours de développement. Il fonctionne, mais beaucoup de détails restent à régler, dont la traduction anglais +

+

+ 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. +

', + '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' => '

+ Un grand merci pour la participation. +

+

+ Juste un click sur le lien suivant pour valider l\ajout du bot +

', + 'E_MAIL_ADD_BOT_SIGNATURE' => 'Gnieark', + 'E_MAIL_ADD_BOT_SIGNATURE_HTML' => '

+ Gnieark. +

', + + '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' ); \ No newline at end of file