added a few items to translate on card gui. names and text should now correctly translate in trophy room and shop.
This commit is contained in:
@@ -441,7 +441,7 @@ void CardGui::AlternateRender(MTGCard * card, const Pos& pos)
|
|||||||
unsigned i = 0;
|
unsigned i = 0;
|
||||||
unsigned h = neofont ? 14 : 11;
|
unsigned h = neofont ? 14 : 11;
|
||||||
for (std::vector<string>::const_iterator it = txt.begin(); it != txt.end(); ++it, ++i)
|
for (std::vector<string>::const_iterator it = txt.begin(); it != txt.end(); ++it, ++i)
|
||||||
font->DrawString(it->c_str(), x + (Carditem->mPosX - BigWidth / 2) * pos.actZ, pos.actY + (-BigHeight / 2 + Carditem->mPosY + h * i) * pos.actZ);
|
font->DrawString(_(it->c_str()), x + (Carditem->mPosX - BigWidth / 2) * pos.actZ, pos.actY + (-BigHeight / 2 + Carditem->mPosY + h * i) * pos.actZ);
|
||||||
}
|
}
|
||||||
else if (Carditem->mName == "mana")
|
else if (Carditem->mName == "mana")
|
||||||
{
|
{
|
||||||
@@ -550,7 +550,7 @@ void CardGui::AlternateRender(MTGCard * card, const Pos& pos)
|
|||||||
if (found != string::npos)
|
if (found != string::npos)
|
||||||
{
|
{
|
||||||
stringstream st;
|
stringstream st;
|
||||||
st << card->data->name;
|
st << _(card->data->name);
|
||||||
formattedfield = FormattedData(formattedfield, "title", st.str());
|
formattedfield = FormattedData(formattedfield, "title", st.str());
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -606,26 +606,26 @@ void CardGui::AlternateRender(MTGCard * card, const Pos& pos)
|
|||||||
switch(card->getRarity())
|
switch(card->getRarity())
|
||||||
{
|
{
|
||||||
case Constants::RARITY_M:
|
case Constants::RARITY_M:
|
||||||
sRarity ="Mythic";
|
sRarity =_("Mythic");
|
||||||
break;
|
break;
|
||||||
case Constants::RARITY_R:
|
case Constants::RARITY_R:
|
||||||
sRarity ="Rare";
|
sRarity =_("Rare");
|
||||||
break;
|
break;
|
||||||
case Constants::RARITY_U:
|
case Constants::RARITY_U:
|
||||||
sRarity ="Uncommon";
|
sRarity =_("Uncommon");
|
||||||
break;
|
break;
|
||||||
case Constants::RARITY_C:
|
case Constants::RARITY_C:
|
||||||
sRarity ="Common";
|
sRarity =_("Common");
|
||||||
break;
|
break;
|
||||||
case Constants::RARITY_L:
|
case Constants::RARITY_L:
|
||||||
sRarity ="Land";
|
sRarity =_("Land");
|
||||||
break;
|
break;
|
||||||
case Constants::RARITY_T:
|
case Constants::RARITY_T:
|
||||||
sRarity ="Token";
|
sRarity =_("Token");
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
case Constants::RARITY_S:
|
case Constants::RARITY_S:
|
||||||
sRarity ="Special";
|
sRarity =_("Special");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
formattedfield = FormattedData(formattedfield, "rarity", sRarity);
|
formattedfield = FormattedData(formattedfield, "rarity", sRarity);
|
||||||
|
|||||||
Reference in New Issue
Block a user