From: Arun Persaud Date: Fri, 19 Mar 2010 05:15:25 +0000 (-0700) Subject: marked more strings for translation X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=e-DoKo.git;a=commitdiff_plain;h=5451fd5cd006d6b6345f84812b51af9f121fded9 marked more strings for translation --- diff --git a/include/game.php b/include/game.php index 0601e44..130772b 100644 --- a/include/game.php +++ b/include/game.php @@ -185,11 +185,11 @@ unset($comment); if($session) { echo "
\n"; - echo "
Rules: "; + echo '
'._('Rules').': '; switch($RULES['dullen']) { case 'none': - echo " \"not\n"; break; + echo " \"no\n"; break; case 'firstwins': echo " \"ten\n"; break; case 'secondwins': @@ -491,27 +491,27 @@ switch($mystatus) else if($_REQUEST['wedding'] == 'yes') { /* silent solo is set further down */ - echo "Ok, you don't want to play a silent solo...wedding was chosen.
\n"; + echo _("Ok, you don't want to play a silent solo...wedding was chosen.")."
\n"; DB_set_sickness_by_hash($me,'wedding'); } else if($_REQUEST['poverty'] == 'yes') { - echo "Don't think you can win with just a few trump...? ok, poverty chosen
\n"; + echo _("Don't think you can win with just a few trump...? Ok, poverty chosen.")."
\n"; DB_set_sickness_by_hash($me,'poverty'); } else if($_REQUEST['nines'] == 'yes') { - echo "What? You just don't want to play a game because you have a few nines? Well, if no one". - " is playing solo, this game will be canceled.
\n"; + echo _("What? You just don't want to play a game because you have a few nines? Well, if no one". + " is playing solo, this game will be canceled.")."
\n"; DB_set_sickness_by_hash($me,'nines'); } else if($_REQUEST['lowtrump'] == 'yes') { if($RULES['lowtrump']=='cancel') - echo "What? You just don't want to play a game because you have low trump? Well, if no one". - " is playing solo, this game will be canceled.
\n"; + echo _("What? You just don't want to play a game because you have low trump? Well, if no one". + " is playing solo, this game will be canceled.")."
\n"; else - echo "Don't think you can win with low trumps...? ok, poverty chosen
.
\n"; + echo _("Don't think you can win with low trumps...? Ok, poverty chosen.")."
.
\n"; DB_set_sickness_by_hash($me,'lowtrump'); } @@ -555,7 +555,7 @@ switch($mystatus) /* end displaying sickness */ echo "
\n"; - echo "

Checking if someone else selected solo, nines, wedding or poverty.

"; + echo '

'._('Checking if someone else selected solo, nines, wedding or poverty.').'

'; /* check if everyone has reached this stage */ $userids = DB_get_all_userid_by_gameid($gameid); @@ -585,7 +585,7 @@ switch($mystatus) if($mystatus=='check') { /* show cards */ - echo "
Your cards are:
\n"; + echo '
'._('Your cards are').":
\n"; foreach($mycards as $card) display_card($card,$PREF['cardset']); echo "
\n"; @@ -598,7 +598,7 @@ switch($mystatus) * are playing, in case there are any solos this already * will have the correct information in it */ - echo "

Ok, everyone is done... figuring out what kind of game we are playing.

"; + echo '

'._('Ok, everyone is done... figuring out what kind of game we are playing.').'

'; $gametype = DB_get_gametype_by_gameid($gameid); $startplayer = DB_get_startplayer_by_gameid($gameid); @@ -901,7 +901,7 @@ switch($mystatus) /* check if user need to give more cards back */ if( ($myparty=='re' || $myparty=='contra') && count($mycards)>12) { - echo "
you need to get rid of a few cards
\n"; + echo '
'._('You need to get rid of a few cards')."
\n"; $type='exchange'; echo "
Your cards are:
\n"; @@ -1230,13 +1230,13 @@ switch($mystatus) /* has the game started? No, then just wait here...*/ if($gamestatus == 'pre') { - echo "

You finished the setup, but not everyone else finished it... ". - "You need to wait for the others. Just wait for an email.

"; + echo '

'._('You finished the setup, but not everyone else finished it... '. + 'You need to wait for the others. Just wait for an email.').'

'; $mycards = DB_get_hand($me); $mycards = mysort($mycards,$gametype); - echo "
Your cards are:
\n"; + echo '
'._('Your cards are').":
\n"; foreach($mycards as $card) display_card($card,$PREF['cardset']); echo "
\n"; diff --git a/include/output.php b/include/output.php index f8b3e17..79bc19e 100644 --- a/include/output.php +++ b/include/output.php @@ -31,7 +31,8 @@ function output_ask_for_new_game($playerA,$playerB,$playerC,$playerD,$oldgameid) global $RULES; echo "
\n
\n"; - echo "Do you want to continue playing?(This will start a new game, with $playerA starting the game.)\n"; + $output = sprintf(_('Do you want to continue playing? (This will start a new game, with %s starting the game.)'),$playerA); + echo $output."\n"; echo " \n"; echo " \n"; echo " \n"; @@ -41,7 +42,7 @@ function output_ask_for_new_game($playerA,$playerB,$playerC,$playerD,$oldgameid) echo " \n"; echo " \n"; echo " \n"; - echo " \n"; + echo " \n"; echo "
\n
"; return; } @@ -52,13 +53,10 @@ function output_form_for_new_game($names) * after we selected them to make sure that each name * only shows up once */ -?> -
-

Select players (Remember: you need to be one of the players)

- -
- table -'; + echo '

'._('Select players (Remember: you need to be one of the players)').'

'; + echo '
'; + echo ' table'; /* ask player for names */ @@ -97,51 +95,51 @@ function output_form_for_new_game($names) } echo " \n
\n"; } -?> -
- -

Rules

-

Gameplay-related

-

Ten of hearts:

-

- -

-

Schweinchen (both foxes), only in normal games or silent solos:

-

- -

-

Call Re/Contra, etc.:

-

- -

-

Low trump

-

- Player can't trump a fox, that is none of his trump is higher than a fox. - -

-

Scoring-related

-

(not yet implemented)

-

-
-'; + 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="") @@ -216,79 +214,77 @@ function display_link_card($card,$dir="english",$type="card") function output_check_for_sickness($me,$mycards) { global $RULES; - ?> -
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)?"; + echo _('Do you have low trump (cancel game)?'); else - echo "Do you have low trump (poverty)?"; + echo _('Do you have low trump (poverty)?'); if(check_low_trump($mycards)) { - echo " yes"; - echo " no
\n"; + echo ' '._('yes').""; + echo ' '._('no')."
\n"; } else { - echo " no
\n"; + echo ' '._('no')."
\n"; }; } else echo ""; echo "\n"; - echo "\n"; + echo "\n"; echo "
\n"; @@ -356,15 +352,13 @@ function output_form_calls($me,$myparty) function output_check_want_to_play($me) { - ?> -
- 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;