theme ui: Process translations of the "Hotkey(s): " string at runtime
Fixes the second issue reported in <http://r.wesnoth.org/p580885>.
This commit is contained in:
parent
a1106c392f
commit
a8b8dd8023
1 changed files with 2 additions and 2 deletions
|
@ -596,12 +596,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_;
|
||||
|
|
Loading…
Add table
Reference in a new issue