Permalink
Browse files

Made "Time: " translatable and fixed encoding of skill descriptions i…

…n the menu.
  • Loading branch information...
Yohann Ferreira
Yohann Ferreira committed Nov 17, 2012
1 parent 7b2e364 commit 74ce43d03f85aa4a1bdae86d082bb10206806ef3
Showing with 7 additions and 4 deletions.
  1. +2 −2 src/modes/menu/menu.cpp
  2. +5 −2 src/modes/menu/menu_views.cpp
View
@@ -1056,8 +1056,8 @@ void MenuMode::_DrawBottomMenu()
os_time << (minutes < 10 ? "0" : "") << static_cast<uint32>(minutes) << ":";
os_time << (seconds < 10 ? "0" : "") << static_cast<uint32>(seconds);
std::string time = std::string("Time: ") + os_time.str();
VideoManager->Text()->Draw(MakeUnicodeString(time));
hoa_utils::ustring time_ustr = UTranslate("Time: ") + MakeUnicodeString(os_time.str());
VideoManager->Text()->Draw(time_ustr);
// Display the current funds that the party has
VideoManager->MoveRelative(0, 30);
@@ -857,8 +857,11 @@ void SkillsWindow::Update()
if(_skills_list.GetNumberOptions() > 0 && _skills_list.GetSelection() >= 0 && static_cast<int32>(_skills_list.GetNumberOptions()) > _skills_list.GetSelection()) {
GlobalSkill *skill = _GetCurrentSkill();
std::string desc = MakeStandardString(skill->GetName()) + "\n\n" + MakeStandardString(skill->GetDescription());
_description.SetDisplayText(MakeUnicodeString(desc));
hoa_utils::ustring description = skill->GetName();
description += MakeUnicodeString("\n\n");
description += skill->GetDescription();
_description.SetDisplayText(description);
}
} // void SkillsWindow::Update()

0 comments on commit 74ce43d

Please sign in to comment.