Skip to content

Commit

Permalink
theme ui: Process translations of the "Hotkey(s): " string at runtime
Browse files Browse the repository at this point in the history
Fixes the second issue reported in <http://r.wesnoth.org/p580885>.
  • Loading branch information
irydacea committed Apr 7, 2015
1 parent 01e2148 commit 9e7e089
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/theme.cpp
Expand Up @@ -597,12 +597,12 @@ const std::string theme::action::tooltip(size_t index) const {
if (auto_tooltip_ && tooltip_.empty() && items_.size() > index) {
result << hotkey::get_description(items_[index]);
if (!hotkey::get_names(items_[index]).empty())
result << "\n" << N_("Hotkey(s): ") << hotkey::get_names(items_[index]);
result << "\n" << _("Hotkey(s): ") << hotkey::get_names(items_[index]);
result << "\n" << hotkey::get_tooltip(items_[index]);
} else if (tooltip_name_prepend_ && items_.size() == 1) {
result << hotkey::get_description(items_[index]);
if (!hotkey::get_names(items_[index]).empty())
result << "\n" << N_("Hotkey(s): ") << hotkey::get_names(items_[index]);
result << "\n" << _("Hotkey(s): ") << hotkey::get_names(items_[index]);
result << "\n" << tooltip_;
} else {
result << tooltip_;
Expand Down

0 comments on commit 9e7e089

Please sign in to comment.