- Update French translation
- Added call to translation function for some parts where it was missing
This commit is contained in:
@@ -248,7 +248,7 @@ void DeckMenu::Render()
|
||||
renderer->RenderQuad(quad.get(), avatarX, avatarY);
|
||||
}
|
||||
// fill in the description part of the screen
|
||||
string text = wordWrap(currentMenuItem->desc, descWidth, mainFont->mFontID );
|
||||
string text = wordWrap(_(currentMenuItem->desc), descWidth, mainFont->mFontID );
|
||||
mainFont->DrawString(text.c_str(), descX, descY);
|
||||
mFont->SetColor(ARGB(255,255,255,255));
|
||||
|
||||
@@ -257,7 +257,7 @@ void DeckMenu::Render()
|
||||
if (currentMenuItem->meta)
|
||||
{
|
||||
ostringstream oss;
|
||||
oss << "Deck: " << currentMenuItem->meta->getName() << endl;
|
||||
oss << _("Deck: ") << currentMenuItem->meta->getName() << endl;
|
||||
oss << currentMenuItem->meta->getStatsSummary();
|
||||
|
||||
mainFont->DrawString(oss.str(), statsX, statsY);
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
#include "DeckStats.h"
|
||||
#include "MTGDeck.h"
|
||||
#include "utils.h"
|
||||
#include "Translate.h"
|
||||
|
||||
//Possible improvements:
|
||||
//Merge this with DeckStats
|
||||
@@ -174,9 +175,9 @@ string DeckMetaData::getStatsSummary()
|
||||
LoadStats();
|
||||
|
||||
ostringstream statsSummary;
|
||||
statsSummary << "Difficulty: " << getDifficultyString() << endl
|
||||
<< "Victory %: " << getVictoryPercentage() << endl
|
||||
<< "Games Played: " << getGamesPlayed() << endl;
|
||||
statsSummary << _("Difficulty: ") << _(getDifficultyString()) << endl
|
||||
<< _("Victory %: ") << getVictoryPercentage() << endl
|
||||
<< _("Games Played: ") << getGamesPlayed() << endl;
|
||||
|
||||
return statsSummary.str();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user