From: Tobias Markus Date: Thu, 5 Feb 2015 17:33:21 +0000 (+0100) Subject: Adding gettext calls to 2 strings in addon manager X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=cb400ca307d6ba6c5bd9216af98dc68f4d101ddb;p=supertux.git Adding gettext calls to 2 strings in addon manager --- 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;