Skip to content

Commit

Permalink
Adding gettext calls to 2 strings in addon manager
Browse files Browse the repository at this point in the history
  • Loading branch information
tobbi committed Feb 5, 2015
1 parent 73cb1e1 commit cb400ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/supertux/menu/addon_menu.cpp
Expand Up @@ -144,15 +144,15 @@ 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;
}
}
catch(const std::exception& err)
{
// 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;
Expand Down

0 comments on commit cb400ca

Please sign in to comment.