Skip to content

Commit

Permalink
Made "Time: " translatable and fixed encoding of skill descriptions i…
Browse files Browse the repository at this point in the history
…n the menu.
  • Loading branch information
Yohann Ferreira committed Nov 17, 2012
1 parent 7b2e364 commit 74ce43d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/modes/menu/menu.cpp
Expand Up @@ -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);
Expand Down
7 changes: 5 additions & 2 deletions src/modes/menu/menu_views.cpp
Expand Up @@ -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()
Expand Down

0 comments on commit 74ce43d

Please sign in to comment.