From d75322c4887cee369e6dee2cca067f42621dc212 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Thu, 16 Feb 2023 00:08:04 +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-3.22/menu.c | 2 +- client/gui-gtk-4.0/menu.c | 2 +- client/gui-qt/menu.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/client/gui-gtk-3.22/menu.c b/client/gui-gtk-3.22/menu.c index b25089d6c3..3fa50f2a68 100644 --- a/client/gui-gtk-3.22/menu.c +++ b/client/gui-gtk-3.22/menu.c @@ -441,7 +441,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_o, 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-4.0/menu.c b/client/gui-gtk-4.0/menu.c index 3a5d7797f2..6ac29b7d57 100644 --- a/client/gui-gtk-4.0/menu.c +++ b/client/gui-gtk-4.0/menu.c @@ -598,7 +598,7 @@ static struct menu_entry_info menu_entries[] = { "SHOW_CITY_GROWTH", N_("City G_rowth"), "show_city_growth", "o", MGROUP_SAFE, show_city_growth_callback, FALSE }, - { "SHOW_CITY_PRODUCTIONS", N_("City _Production Levels"), + { "SHOW_CITY_PRODUCTIONS", N_("City _Production"), "show_city_productions", "p", MGROUP_SAFE, show_city_productions_callback, FALSE }, { "SHOW_CITY_BUY_COST", N_("City Buy Cost"), diff --git a/client/gui-qt/menu.cpp b/client/gui-qt/menu.cpp index 171a73027f..0221e0faa6 100644 --- a/client/gui-qt/menu.cpp +++ b/client/gui-qt/menu.cpp @@ -1112,7 +1112,7 @@ void mr_menu::setup_menus() act->setChecked(gui_options.draw_city_growth); act->setShortcut(QKeySequence(tr("ctrl+o"))); connect(act, &QAction::triggered, this, &mr_menu::slot_city_growth); - act = main_menu->addAction(_("City Production Levels")); + act = main_menu->addAction(_("City Production")); act->setCheckable(true); act->setChecked(gui_options.draw_city_productions); act->setShortcut(QKeySequence(shortcut_to_string( -- 2.39.1