Skip to content

Commit

Permalink
make "[DISABLED]" translatable
Browse files Browse the repository at this point in the history
  • Loading branch information
Narre committed Jun 20, 2024
1 parent 8ed0bc3 commit 23d0a67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/supertux/menu/addon_menu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,13 +121,13 @@ AddonMenu::rebuild_menu()
{
const Addon& addon = m_addon_manager.get_installed_addon(m_installed_addons[index]);
const std::string text = addon_string_util::generate_menu_item_text(addon);
add_entry(MAKE_UPDATE_MENU_ID(index), fmt::format(fmt::runtime(_("{} {}*UPDATE*")), text, !addon.is_enabled() ? "[DISABLED] " : ""));
add_entry(MAKE_UPDATE_MENU_ID(index), fmt::format(fmt::runtime(_("{} {}*UPDATE*")), text, !addon.is_enabled() ? (_("[DISABLED]") + " ") : ""));
}
for (const auto& index : addons_to_list)
{
const Addon& addon = m_addon_manager.get_installed_addon(m_installed_addons[index]);
const std::string text = addon_string_util::generate_menu_item_text(addon);
add_entry(MAKE_INSTALLED_MENU_ID(index), fmt::format(fmt::runtime(_("{}{}")), text, !addon.is_enabled() ? " [DISABLED]" : ""));
add_entry(MAKE_INSTALLED_MENU_ID(index), fmt::format(fmt::runtime(_("{}{}")), text, !addon.is_enabled() ? (" " + _("[DISABLED]")) : ""));
}

add_hl();
Expand Down

0 comments on commit 23d0a67

Please sign in to comment.