X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=e-DoKo.git;a=blobdiff_plain;f=include%2Foutput.php;h=729452aceed350db79d4e78e45d987e139fe274b;hp=161ef3a8746f1b824c74045d5d5cd1e4fb505041;hb=b9c5f3e252ab1f5725d653528cc8a719e6822f6d;hpb=0a4212f2c7179913c6ae87011b8f00d435af93e3
diff --git a/include/output.php b/include/output.php
index 161ef3a..729452a 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="")
@@ -185,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 "