More RTl fixes

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8388 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria 2011-04-19 23:32:27 +00:00
parent c727e0e647
commit 9a1beab185
2 changed files with 4 additions and 2 deletions

View File

@ -504,7 +504,9 @@ public:
m_player_ident_spinner->m_y),
core::dimension2di(m_player_ident_spinner->m_w,
m_player_ident_spinner->m_h));
m_ready_text = GUIEngine::getGUIEnv()->addStaticText(_("%s is ready", playerNameString), rect);
// 'playerNameString' is already fribidize, so we need to use 'insertValues' and not _("...", a) so it's not flipped again
m_ready_text = GUIEngine::getGUIEnv()->addStaticText(StringUtils::insertValues(_("%s is ready"), playerNameString).c_str(),
rect);
m_ready_text->setTextAlignment(gui::EGUIA_CENTER, gui::EGUIA_CENTER );
m_children.remove(m_player_ident_spinner);

View File

@ -248,7 +248,7 @@ void RaceResultGUI::determineTableLayout()
std::string time_string = StringUtils::timeToString(time);
ri->m_finish_time_string = time_string.c_str();
core::dimension2d<u32> rect = m_font->getDimension(ri->m_kart_name);
core::dimension2d<u32> rect = m_font->getDimension(ri->m_kart_name.c_str());
if(rect.Width > m_width_kart_name)
m_width_kart_name = rect.Width;
} // for position