From 9e7e08908c1374fb4a99f0fbf948c449b1ed5497 Mon Sep 17 00:00:00 2001 From: "Ignacio R. Morelle" Date: Tue, 7 Apr 2015 19:12:41 -0300 Subject: [PATCH] theme ui: Process translations of the "Hotkey(s): " string at runtime Fixes the second issue reported in . --- src/theme.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/theme.cpp b/src/theme.cpp index 93b1d39525c..434bb599835 100644 --- a/src/theme.cpp +++ b/src/theme.cpp @@ -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_;