mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-08 22:59:12 +00:00
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
01e21487ba
commit
9e7e08908c
@ -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_;
|
||||
|
Loading…
x
Reference in New Issue
Block a user