From 4131a36e5a64ca41d6309b9242310dca5e7056e4 Mon Sep 17 00:00:00 2001 From: Peter Nelson Date: Fri, 9 Jan 2026 23:03:33 +0000 Subject: [PATCH] Change: Show only selected badge in badge filter dropdown buttons. (#14855) This avoids complicating languages and translations trying to compose a string from multiple parts. Also makes these dropdown buttons more consistent with other dropdown buttons. --- src/lang/english.txt | 1 - src/newgrf_badge_gui.cpp | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/lang/english.txt b/src/lang/english.txt index c6dde9ddf7..b6f1f0d893 100644 --- a/src/lang/english.txt +++ b/src/lang/english.txt @@ -5978,4 +5978,3 @@ STR_BADGE_CONFIG_FILTERS :{WHITE}Badge Fi STR_BADGE_CONFIG_PREVIEW :Preview Image STR_BADGE_CONFIG_NAME :Name STR_BADGE_FILTER_ANY_LABEL :Any {STRING} -STR_BADGE_FILTER_IS_LABEL :{STRING} is {STRING} diff --git a/src/newgrf_badge_gui.cpp b/src/newgrf_badge_gui.cpp index f0086af8fd..fd91ad3b4a 100644 --- a/src/newgrf_badge_gui.cpp +++ b/src/newgrf_badge_gui.cpp @@ -505,7 +505,7 @@ std::string NWidgetBadgeFilter::GetStringParameter(const BadgeFilterChoices &cho return ::GetString(STR_BADGE_FILTER_ANY_LABEL, GetClassBadge(this->badge_class)->name); } - return ::GetString(STR_BADGE_FILTER_IS_LABEL, GetClassBadge(it->first)->name, GetBadge(it->second)->name); + return ::GetString(GetBadge(it->second)->name); } /**