diff --git a/projects/mtg/bin/Res/lang/fr.txt b/projects/mtg/bin/Res/lang/fr.txt index 2a27c29be..39eb27dc2 100644 --- a/projects/mtg/bin/Res/lang/fr.txt +++ b/projects/mtg/bin/Res/lang/fr.txt @@ -8,6 +8,22 @@ # If you want to translate creature types and other game elements, do it in this file. Only the "text=" can be done directly in _cards.dat #Limitation: Special characters that are not in the limited 128 ASCII set CAN NOT be put in this file, it will display as garbage +# +# Added in 0.10.x +# +See available tasks=Quetes disponibles +Task Board=Quetes +There are no tasks that need to be done. Come again tomorrow.=Je n'ai pas de quete a vous proposer. Revenez demain +your turn=votre tour +opponent's turn=tour adversaire +you play=vous jouez +opponent plays=adversaire joue +Achievements=Trophees +%i locked sets remain.=Encore %i sets a debloquer. +Unlocked all %i sets.=Vous avez les %i sets. +Card Spoiler=Voir cartes +Back to Trophies=Retour aux trophees + # #Added in 0.9.1 # @@ -139,7 +155,7 @@ PRESS CIRCLE TO GO TO THE DECK EDITOR!=APPUYEZ SUR O POUR CREER UN DECK ! #Shop credits: %i=credits: %i -press [] to refresh=[] pour recharger +[]:other cards=[]: autres cartes #in Game Interrupt?=Interruption ? diff --git a/projects/mtg/src/GameStateDeckViewer.cpp b/projects/mtg/src/GameStateDeckViewer.cpp index aa821952d..f48b674fd 100644 --- a/projects/mtg/src/GameStateDeckViewer.cpp +++ b/projects/mtg/src/GameStateDeckViewer.cpp @@ -33,6 +33,7 @@ GameStateDeckViewer::GameStateDeckViewer(GameApp* parent): GameState(parent) { nbDecks = 0; deckNum = 0; mSwitching = false; + welcome_menu = NULL; } GameStateDeckViewer::~GameStateDeckViewer() { @@ -89,14 +90,13 @@ void GameStateDeckViewer::updateDecks(){ nbDecks = fillDeckMenu(welcome_menu,options.profileFile()); deckNum = 0; newDeckname = ""; - welcome_menu->Add(nbDecks+1, "--NEW--"); - welcome_menu->Add(-1, "Cancel"); + welcome_menu->Add(nbDecks+1, _("--NEW--").c_str()); + welcome_menu->Add(-1, _("Cancel").c_str()); } void GameStateDeckViewer::Start() { - newDeckname = ""; hudAlpha = 0; mSwitching = false; delSellMenu = 0; @@ -141,11 +141,8 @@ void GameStateDeckViewer::Start() backQuad = resources.GetQuad("back"); - welcome_menu = NEW SimpleMenu(10,this,Constants::MENU_FONT,20,20); - nbDecks = fillDeckMenu(welcome_menu,options.profileFile()); - deckNum = 0; - welcome_menu->Add(nbDecks+1, "--NEW--"); - welcome_menu->Add(-1, "Cancel"); + //init welcome menu + updateDecks(); if (GameApp::HasMusic && options[Options::MUSICVOLUME].number > 0){ if (GameApp::music){ @@ -164,7 +161,6 @@ void GameStateDeckViewer::Start() mRotation = 0; mSlide = 0; mAlpha = 255; - newDeckname = ""; currentCard = NULL; loadIndexes(currentCard); diff --git a/projects/mtg/src/GameStateDuel.cpp b/projects/mtg/src/GameStateDuel.cpp index 713233d4f..d2ea8649d 100644 --- a/projects/mtg/src/GameStateDuel.cpp +++ b/projects/mtg/src/GameStateDuel.cpp @@ -98,7 +98,7 @@ void GameStateDuel::Start() } if (decksneeded){ - deckmenu->Add(-1,"Create your Deck!","Highly recommended to get\nthe full Wagic experience!"); + deckmenu->Add(-1,_("Create your Deck!").c_str(),"Highly recommended to get\nthe full Wagic experience!"); premadeDeck = true; fillDeckMenu(deckmenu,RESPATH"/player/premade"); } diff --git a/projects/mtg/src/ShopItem.cpp b/projects/mtg/src/ShopItem.cpp index c6d0de68d..c6e1a9a84 100644 --- a/projects/mtg/src/ShopItem.cpp +++ b/projects/mtg/src/ShopItem.cpp @@ -326,7 +326,7 @@ void ShopItems::Render(){ mFont->SetColor(ARGB(255,255,255,255)); char c[4096]; r->FillRect(0,SCREEN_HEIGHT-17,SCREEN_WIDTH,17,ARGB(128,0,0,0)); - sprintf(c, _("[]:other cards /\\:list").c_str()); + sprintf(c, _("[]:other cards").c_str()); unsigned int len = 4 + mFont->GetStringWidth(c); mFont->DrawString(c,SCREEN_WIDTH-len,SCREEN_HEIGHT-14);