X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=e-DoKo.git;a=blobdiff_plain;f=include%2Foutput.php;h=bdc1caa994c6eda3f8ee410934d55aa5cc79779e;hp=33f7b199d4b9e0c9e18b3f1a99a49fabdeb2b0fe;hb=1d7d5131dff614192a146b839e2781e8a65fdc03;hpb=7a11a1918c28f15403ad3f77254988fe9f25d82e
diff --git a/include/output.php b/include/output.php
index 33f7b19..bdc1caa 100644
--- a/include/output.php
+++ b/include/output.php
@@ -1,4 +1,23 @@
+ *
+ * This file is part of e-DoKo.
+ *
+ * e-DoKo is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * e-DoKo is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with e-DoKo. If not, see .
+ *
+ */
+
/* make sure that we are not called from outside the scripts,
* use a variable defined in config.php to check this
*/
@@ -12,16 +31,18 @@ function output_ask_for_new_game($playerA,$playerB,$playerC,$playerD,$oldgameid)
global $RULES;
echo "
\n\n
";
return;
}
@@ -32,13 +53,10 @@ function output_form_for_new_game($names)
* after we selected them to make sure that each name
* only shows up once
*/
-?>
-
-';
+ echo '';
+ echo '
'._('Rules').'
';
+ echo '
'._('Gameplay-related').'
';
+ echo '
'._('Ten of hearts').':
';
+ echo '
';
+ echo ' ';
+ echo '
';
+ echo '
'._('Schweinchen (both foxes), only in normal games or silent solos').':
';
+ echo '
';
+ echo ' ';
+ echo '
';
+ echo '
'._('Call Re/Contra, etc.').':
';
+ echo '
';
+ echo ' ';
+ echo '
';
+ echo '
'._('Low trump').'
';
+ echo '
';
+ echo ' '._('Player can\'t trump a fox, that is none of his trump is higher than a fox.');
+ echo ' ';
+ echo '
';
+ echo '
'._('Scoring-related').'
';
+ echo '
'._('(not yet implemented)').'
';
+ echo ' ';
+ echo ' ';
+
}
function output_table($data,$caption="",$class="",$id="")
@@ -186,59 +213,78 @@ function display_link_card($card,$dir="english",$type="card")
function output_check_for_sickness($me,$mycards)
{
- ?>
-
Thanks for joining the game...
-
- do you want to play solo?
-
-
-
- '._('Thanks for joining the game').'... ';
+ echo '';
+ echo ' '._('Do you want to play solo?').'';
+ echo ' ';
+ echo ' ';
+
+ echo _('Wedding?');
if(check_wedding($mycards))
{
- echo " yes";
- echo " no \n";
+ echo ' '._('yes')."";
+ echo ' '._('no')." \n";
}
else
{
- echo " no \n";
+ echo ' '._('no')." \n";
};
- echo "Do you have poverty?";
+ echo _('Do you have poverty?');
if(count_trump($mycards)<4)
{
- echo " yes";
- echo " no \n";
+ echo ' '._('yes')."";
+ echo ' '._('no')." \n";
}
else
{
- echo " no \n";
+ echo ' '._('no')." \n";
};
- echo "Do you have too many nines?";
+ echo _('Do you have too many nines?');
if(count_nines($mycards)>4)
{
- echo " yes";
- echo " no \n";
+ echo ' '._('yes')."";
+ echo ' '._('no')." \n";
}
else
{
- echo " no \n";
+ echo ' '._('no')." \n";
};
+ if($RULES['lowtrump']=='cancel' || $RULES['lowtrump']=='poverty')
+ {
+ if($RULES['lowtrump']=='cancel')
+ echo _('Do you have low trump (cancel game)?');
+ else
+ echo _('Do you have low trump (poverty)?');
+
+ if(check_low_trump($mycards))
+ {
+ echo ' '._('yes')."";
+ echo ' '._('no')." \n";
+ }
+ else
+ {
+ echo ' '._('no')." \n";
+ };
+ }
+ else
+ echo "";
+
echo "\n";
- echo "\n";
+ echo "\n";
echo "
- Do you want to play a game of DoKo?
- yes
- no
-';
+ echo ' '._('Do you want to play a game of DoKo?').' ';
+ echo ' '._('yes').'';
+ echo ' '._('no').' ';
echo "\n";
echo "\n";
- echo "\n";
+ echo "\n";
echo "
\n";
return;
@@ -301,7 +376,7 @@ function output_header()
e-Doko
-
+
@@ -314,7 +389,9 @@ function output_header()