From 910bb10fc597c84ff1dec1a5b0940304a9c5b5ed Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Thu, 16 Feb 2023 00:14:55 +0200 Subject: [PATCH 19/19] 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.0/menu.c | 2 +- client/gui-gtk-3.22/menu.c | 2 +- client/gui-gtk-4.0/menu.c | 2 +- client/gui-qt/menu.cpp | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/client/gui-gtk-3.0/menu.c b/client/gui-gtk-3.0/menu.c index f07cb3adfd..127b522abe 100644 --- a/client/gui-gtk-3.0/menu.c +++ b/client/gui-gtk-3.0/menu.c @@ -434,7 +434,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-3.22/menu.c b/client/gui-gtk-3.22/menu.c index 26d010549a..684a78a14d 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 fbb2d5b8e6..4a86945831 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 862b7ba60b..b8a3143424 100644 --- a/client/gui-qt/menu.cpp +++ b/client/gui-qt/menu.cpp @@ -1134,7 +1134,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 = 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