From a3017c215fd99c86223add51a8b7bca234eee5dd Mon Sep 17 00:00:00 2001 From: "omegablast2002@yahoo.com" Date: Tue, 1 Jan 2013 02:00:34 +0000 Subject: [PATCH] corrected the translation of the phase names string in guiphasebar --- projects/mtg/src/GuiPhaseBar.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/projects/mtg/src/GuiPhaseBar.cpp b/projects/mtg/src/GuiPhaseBar.cpp index 684071b66..960ebc0d5 100644 --- a/projects/mtg/src/GuiPhaseBar.cpp +++ b/projects/mtg/src/GuiPhaseBar.cpp @@ -153,8 +153,11 @@ void GuiPhaseBar::Render() } } - char buf[64]; - sprintf(buf, _("(%s%s) %s").c_str(), currentP.c_str(), interrupt.c_str(), observer->phaseRing->phaseName(phase->id)); + char buf[200]; + //running this string through translate returns gibberish even though we defined the variables in the lang.txt + string phaseNameToTranslate = observer->phaseRing->phaseName(phase->id); + phaseNameToTranslate = _(phaseNameToTranslate); + sprintf(buf, _("(%s%s) %s").c_str(), currentP.c_str(), interrupt.c_str(),phaseNameToTranslate.c_str()); font->DrawString(buf, SCREEN_WIDTH - 5, 2, JGETEXT_RIGHT); }