From 26f8ac8801d2ed83f1e374c3e6e61e4835fb4ee4 Mon Sep 17 00:00:00 2001 From: "wagic.the.homebrew@gmail.com" Date: Thu, 11 Jun 2009 15:11:40 +0000 Subject: [PATCH] Erwan - Added some french translations - Up to 0.7.1 --- projects/mtg/bin/Res/lang/fr.txt | 29 ++++++++++++++++++++++++----- projects/mtg/src/Credits.cpp | 29 +++++++++++++++-------------- projects/mtg/src/GameStateDuel.cpp | 4 ++-- projects/mtg/src/GameStateMenu.cpp | 2 +- 4 files changed, 42 insertions(+), 22 deletions(-) diff --git a/projects/mtg/bin/Res/lang/fr.txt b/projects/mtg/bin/Res/lang/fr.txt index 9c2910131..4e8f2c320 100644 --- a/projects/mtg/bin/Res/lang/fr.txt +++ b/projects/mtg/bin/Res/lang/fr.txt @@ -44,10 +44,29 @@ You have a total of %i cards in your collection=Vous avez un total de %i cartes The cards in your collection have an average value of %i credits=La valeur moyenne de chacune de vos cartes est de %i credits The shopkeeper would buy your entire collection for around %i credits=Le marchand acheterait votre collection pour environ %i credits You currently have %i credits=Vous possedez %i credits -Need more cards? Go to http://wololo.net/wagic=Vous voulez plus de cartes ? Allez sur http://wololo.net/wagic +More cards and mods at http://wololo.net/wagic=Nouvelles cartes et mods sur http://wololo.net/wagic These stats will be updated next time you run Wagic=Ces stats seront mises a jour au prochain demarrage de Wagic Yes=Oui No=Non +NO DECK AVAILABLE,=PAS DE DECK DISPONIBLE, +PRESS CIRCLE TO GO TO THE DECK EDITOR!=APPUYEZ SUR O POUR CREER UN DECK ! + +#End of Match +Difficulty Bonus=Bonus Difficulte +'Live dangerously and you live right' Bonus=Bonus 'Live dangerously and you live right' +Life Delta Bonus=Bonus Points de vie +'Decree of Theophilus' Bonus=Bonus 'Decret de Teophile' +'Fast and Furious' Bonus=Bonus 'Fast and Furious' +Victory=Victoire +Congratulations! You earn %i credits=Felicitations, vous gagnez %i credits +You have been defeated=Vous avez perdu +Player %i wins (%i)=Le joueur %i gagne (%i) +Please support this project !=Soutenez ce projet ! +Wagic is free, open source, and developed on the little free time I have=Wagic est gratuit, open source, et developpe sur mon temps libre +If you enjoy this game, please consider donating a few bucks=Si vous appreciez ce jeu, merci de me faire un don +(Seriously, donate or I'll kill this cute little bunny)=(serieux si vous me faites pas un don, je tue un pokemon) +Thanks in advance for your support.=Merci d'avance pour votre aide. + #Phases Untap=Degagement @@ -1132,7 +1151,7 @@ Callow Jushi=Jushi novice Calming Licid=Litique calmant Calming Verse=Poeme apaisant Caltrops=Chausse-trappes -Cancel=Revocation +#Cancel=Revocation Candles' Glow=Lueur des bougies Candles of Leng=Bougies de Leng Canker Abomination=Abomination chancreuse @@ -4181,7 +4200,7 @@ Kinsbaile Balloonist=Aerostier de Kinsbayel Kinsbaile Borderguard=Garde frontiere de Kinsbayel Kinsbaile Cavalier=Cavalier de Kinsbayel Kinsbaile Skirmisher=Assaillant de Kinsbayel -Kinscaer Harpoonist=Harponneur de Kinscar +Kinscaer Harpoonist=Harponneur de KinscaE Kird Ape=Gorille beringei Kiri-Onna=Kiri-onna Kirtar's Desire=Desir selon Kirtar @@ -4711,7 +4730,7 @@ Mark of Sakiko=Marque de Sakiko Mark of the Oni=Marque des oni Marker Beetles=Scarabees Balises Maro=Maro -Marrow-Gnawer=Ronge-molle +Marrow-Gnawer=Ronge-moEle Marsh Boa=Boa des marecages Marsh Crocodile=Crocodile des marais Marsh Flitter=Voltigeuse des marecages @@ -6909,7 +6928,7 @@ Shaper Guildmage=Ghildmage des Faconneurs Shaper Parasite=Parasite forgeur Shapesharer=Partageforme Shapeshifter=Changeforme -Shapeshifter's Marrow=Molle de changeforme +Shapeshifter's Marrow=MoEle de changeforme Shard Phoenix=Phenix d'echardes Shard Volley=Volee d'echardes Shared Animosity=Animosite partagee diff --git a/projects/mtg/src/Credits.cpp b/projects/mtg/src/Credits.cpp index f62e45e94..3889178b2 100644 --- a/projects/mtg/src/Credits.cpp +++ b/projects/mtg/src/Credits.cpp @@ -4,6 +4,7 @@ #include "../include/config.h" #include "../include/PlayerData.h" #include "../include/DeckStats.h" +#include "../include/Translate.h" CreditBonus::CreditBonus(int _value, string _text){ value = _value; @@ -45,28 +46,28 @@ void Credits::compute(Player * _p1, Player * _p2, GameApp * _app){ if (app->gameType == GAME_TYPE_MOMIR) value = 200; int difficulty = go->values[OPTIONS_DIFFICULTY].getIntValue(); if (go->values[OPTIONS_DIFFICULTY_MODE_UNLOCKED].getIntValue() && difficulty) { - CreditBonus * b = NEW CreditBonus(100*difficulty, "Difficulty Bonus"); + CreditBonus * b = NEW CreditBonus(100*difficulty, _("Difficulty Bonus")); bonus.push_back(b); } if (p1->life == 1) { - CreditBonus * b = NEW CreditBonus(111, "'Live dangerously and you live right' Bonus"); + CreditBonus * b = NEW CreditBonus(111, _("'Live dangerously and you live right' Bonus")); bonus.push_back(b); } int diff = p1->life - p2->life; if (diff){ - CreditBonus * b = NEW CreditBonus(diff, "Life Delta Bonus"); + CreditBonus * b = NEW CreditBonus(diff, _("Life Delta Bonus")); bonus.push_back(b); } if (p1->game->library->nb_cards == 0) { - CreditBonus * b = NEW CreditBonus(391, "'Decree of Theophilus' Bonus"); + CreditBonus * b = NEW CreditBonus(391, _("'Decree of Theophilus' Bonus")); bonus.push_back(b); } if (g->turn < 15) { - CreditBonus * b = NEW CreditBonus((20 - g->turn)*17, "'Fast and Furious' Bonus"); + CreditBonus * b = NEW CreditBonus((20 - g->turn)*17, _("'Fast and Furious' Bonus")); bonus.push_back(b); } @@ -94,7 +95,7 @@ void Credits::compute(Player * _p1, Player * _p2, GameApp * _app){ vector::iterator it; if (bonus.size()){ - CreditBonus * b = NEW CreditBonus(value, "Victory"); + CreditBonus * b = NEW CreditBonus(value, _("Victory")); bonus.insert(bonus.begin(),b); for ( it=bonus.begin()+1 ; it < bonus.end(); ++it){ value+= (*it)->value; @@ -125,13 +126,13 @@ void Credits::Render(){ char buffer[512]; if (!p1->isAI() && p2->isAI() ){ if (g->gameOver != p1){ - sprintf (buffer, "Congratulations! You earn %i credits", value); + sprintf (buffer, _("Congratulations! You earn %i credits").c_str(), value); if (unlockedQuad){ showMsg = 0; r->RenderQuad(unlockedQuad, 20, 20); } }else{ - sprintf (buffer, "You have been defeated"); + sprintf (buffer, _("You have been defeated").c_str()); } }else{ int winner = 2; @@ -139,7 +140,7 @@ void Credits::Render(){ winner = 1; } int p0life = p1->life; - sprintf(buffer, "Player %i wins (%i)", winner, p0life ); + sprintf(buffer, _("Player %i wins (%i)").c_str(), winner, p0life ); } @@ -154,11 +155,11 @@ void Credits::Render(){ y+=15; if (showMsg == 1){ - f2->DrawString("Please support this project !" ,10,y+15); - f->DrawString("Wagic is free, open source, and developed on the little free time I have" ,10,y+30); - f->DrawString("If you enjoy this game, please consider donating a few bucks" ,10,y+42); - f->DrawString("(Seriously, donate or I'll kill this cute little bunny)" ,10,y+54); - f->DrawString("Thanks in advance for your support." ,10,y+66); + f2->DrawString(_("Please support this project!").c_str() ,10,y+15); + f->DrawString(_("Wagic is free, open source, and developed on the little free time I have").c_str() ,10,y+30); + f->DrawString(_("If you enjoy this game, please consider donating a few bucks").c_str() ,10,y+42); + f->DrawString(_("(Seriously, donate or I'll kill this cute little bunny)").c_str() ,10,y+54); + f->DrawString(_("Thanks in advance for your support.").c_str() ,10,y+66); f2->DrawString("-> http://wololo.net/wagic" ,10,y+78); } diff --git a/projects/mtg/src/GameStateDuel.cpp b/projects/mtg/src/GameStateDuel.cpp index dad85bb27..0eebfb068 100644 --- a/projects/mtg/src/GameStateDuel.cpp +++ b/projects/mtg/src/GameStateDuel.cpp @@ -407,8 +407,8 @@ void GameStateDuel::Render() } break; case DUEL_STATE_ERROR_NO_DECK: - mFont->DrawString("NO DECK AVAILABLE,",0,SCREEN_HEIGHT/2); - mFont->DrawString("PRESS CIRCLE TO GO TO THE DECK EDITOR!",0,SCREEN_HEIGHT/2 + 20); + mFont->DrawString(_("NO DECK AVAILABLE,").c_str(),0,SCREEN_HEIGHT/2); + mFont->DrawString(_("PRESS CIRCLE TO GO TO THE DECK EDITOR!").c_str(),0,SCREEN_HEIGHT/2 + 20); break; case DUEL_STATE_MENU: case DUEL_STATE_CANCEL: diff --git a/projects/mtg/src/GameStateMenu.cpp b/projects/mtg/src/GameStateMenu.cpp index 4552c442b..ec69dd426 100644 --- a/projects/mtg/src/GameStateMenu.cpp +++ b/projects/mtg/src/GameStateMenu.cpp @@ -11,7 +11,7 @@ #include "../include/utils.h" #include "../include/DeckDataWrapper.h" -static const char* GAME_VERSION = "WTH?! 0.7.0 - by WilLoW"; +static const char* GAME_VERSION = "WTH?! 0.7.1 - by WilLoW"; #define ALPHA_WARNING 0 #define DEFAULT_ANGLE_MULTIPLIER 0.4