From cb400ca307d6ba6c5bd9216af98dc68f4d101ddb Mon Sep 17 00:00:00 2001 From: Tobias Markus Date: Thu, 5 Feb 2015 18:33:21 +0100 Subject: [PATCH] Adding gettext calls to 2 strings in addon manager --- src/supertux/menu/addon_menu.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/supertux/menu/addon_menu.cpp b/src/supertux/menu/addon_menu.cpp index 13f8e0abb..70992965d 100644 --- a/src/supertux/menu/addon_menu.cpp +++ b/src/supertux/menu/addon_menu.cpp @@ -144,7 +144,7 @@ AddonMenu::rebuild_menu() << installed_addon.get_version() << "' vs '" << addon.get_version() << "'" << std::endl; std::string text = generate_menu_item_text(addon); - add_entry(MAKE_REPOSITORY_MENU_ID(idx), "Install " + text + " *NEW*"); + add_entry(MAKE_REPOSITORY_MENU_ID(idx), str(boost::format( _("Install %s *NEW*") ) % text)); have_new_stuff = true; } } @@ -152,7 +152,7 @@ AddonMenu::rebuild_menu() { // addon is not installed std::string text = generate_menu_item_text(addon); - add_entry(MAKE_REPOSITORY_MENU_ID(idx), "Install " + text); + add_entry(MAKE_REPOSITORY_MENU_ID(idx), str(boost::format( _("Install %s") ) % text)); have_new_stuff = true; } idx += 1; -- 2.11.0