From ffab72cc67e6a3f3fc6a2432521c6d2125edf982 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Thu, 16 Feb 2023 00:18:51 +0200 Subject: [PATCH 25/25] Fix "City Production Levels" misnomer It has nothing to do with Level, but it controls if name of the current production is shown. See osdn #46670 Signed-off-by: Marko Lindqvist --- client/gui-gtk-2.0/menu.c | 2 +- client/gui-gtk-3.0/menu.c | 2 +- client/gui-gtk-3.22/menu.c | 2 +- client/gui-qt/menu.cpp | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/client/gui-gtk-2.0/menu.c b/client/gui-gtk-2.0/menu.c index cb5f91b483..d9437fe88a 100644 --- a/client/gui-gtk-2.0/menu.c +++ b/client/gui-gtk-2.0/menu.c @@ -1547,7 +1547,7 @@ static GtkActionGroup *get_safe_group(void) "n", NULL, G_CALLBACK(show_city_names_callback), FALSE}, {"SHOW_CITY_GROWTH", NULL, _("City G_rowth"), "r", NULL, G_CALLBACK(show_city_growth_callback), FALSE}, - {"SHOW_CITY_PRODUCTIONS", NULL, _("City _Production Levels"), + {"SHOW_CITY_PRODUCTIONS", NULL, _("City _Production"), "p", NULL, G_CALLBACK(show_city_productions_callback), FALSE}, {"SHOW_CITY_BUY_COST", NULL, _("City Buy Cost"), diff --git a/client/gui-gtk-3.0/menu.c b/client/gui-gtk-3.0/menu.c index 9ffe9077fc..8715d40b9d 100644 --- a/client/gui-gtk-3.0/menu.c +++ b/client/gui-gtk-3.0/menu.c @@ -428,7 +428,7 @@ static struct menu_entry_info menu_entries[] = G_CALLBACK(show_city_names_callback), MGROUP_SAFE }, { "SHOW_CITY_GROWTH", N_("City G_rowth"), GDK_KEY_r, GDK_CONTROL_MASK, G_CALLBACK(show_city_growth_callback), MGROUP_SAFE }, - { "SHOW_CITY_PRODUCTIONS", N_("City _Production Levels"), GDK_KEY_p, GDK_CONTROL_MASK, + { "SHOW_CITY_PRODUCTIONS", N_("City _Production"), GDK_KEY_p, GDK_CONTROL_MASK, G_CALLBACK(show_city_productions_callback), MGROUP_SAFE }, { "SHOW_CITY_BUY_COST", N_("City Buy Cost"), 0, 0, G_CALLBACK(show_city_buy_cost_callback), MGROUP_SAFE }, diff --git a/client/gui-gtk-3.22/menu.c b/client/gui-gtk-3.22/menu.c index cea0a5c800..3eceec2038 100644 --- a/client/gui-gtk-3.22/menu.c +++ b/client/gui-gtk-3.22/menu.c @@ -427,7 +427,7 @@ static struct menu_entry_info menu_entries[] = G_CALLBACK(show_city_names_callback), MGROUP_SAFE }, { "SHOW_CITY_GROWTH", N_("City G_rowth"), GDK_KEY_r, GDK_CONTROL_MASK, G_CALLBACK(show_city_growth_callback), MGROUP_SAFE }, - { "SHOW_CITY_PRODUCTIONS", N_("City _Production Levels"), GDK_KEY_p, GDK_CONTROL_MASK, + { "SHOW_CITY_PRODUCTIONS", N_("City _Production"), GDK_KEY_p, GDK_CONTROL_MASK, G_CALLBACK(show_city_productions_callback), MGROUP_SAFE }, { "SHOW_CITY_BUY_COST", N_("City Buy Cost"), 0, 0, G_CALLBACK(show_city_buy_cost_callback), MGROUP_SAFE }, diff --git a/client/gui-qt/menu.cpp b/client/gui-qt/menu.cpp index fdf42682d5..b80144e017 100644 --- a/client/gui-qt/menu.cpp +++ b/client/gui-qt/menu.cpp @@ -1167,7 +1167,7 @@ void mr_menu::setup_menus() act->setChecked(gui_options.draw_city_growth); act->setShortcut(QKeySequence(tr("ctrl+r"))); connect(act, &QAction::triggered, this, &mr_menu::slot_city_growth); - act = menu->addAction(_("City Production Levels")); + act = menu->addAction(_("City Production")); act->setCheckable(true); act->setChecked(gui_options.draw_city_productions); act->setShortcut(QKeySequence(shortcut_to_string( -- 2.39.1