From 1549213b3b2a81069ba6d34e963083f9dc6bb402 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Sat, 11 Jun 2022 12:09:40 +0300 Subject: [PATCH 35/35] Qualify "Mine" See osdn #44668 Signed-off-by: Marko Lindqvist --- client/gui-gtk-3.22/citydlg.c | 2 +- client/gui-gtk-4.0/citydlg.c | 2 +- client/gui-qt/citydlg.cpp | 2 +- common/fc_types.h | 2 +- common/reqtext.c | 4 ++-- common/requirements.c | 2 +- common/unit.c | 2 +- data/alien/terrain.ruleset | 2 +- data/civ1/terrain.ruleset | 2 +- data/civ2/terrain.ruleset | 2 +- data/civ2civ3/terrain.ruleset | 2 +- data/classic/terrain.ruleset | 2 +- data/goldkeep/terrain.ruleset | 2 +- data/multiplayer/terrain.ruleset | 2 +- data/sandbox/terrain.ruleset | 2 +- data/webperimental/terrain.ruleset | 2 +- 16 files changed, 17 insertions(+), 17 deletions(-) diff --git a/client/gui-gtk-3.22/citydlg.c b/client/gui-gtk-3.22/citydlg.c index 6016b318e7..056fa124cd 100644 --- a/client/gui-gtk-3.22/citydlg.c +++ b/client/gui-gtk-3.22/citydlg.c @@ -2971,7 +2971,7 @@ static void popup_workertask_dlg(struct city *pcity, struct tile *ptile) } if (action_id_univs_not_blocking(ACTION_MINE, NULL, &for_terr)) { - choice_dialog_add(shl, _("Mine"), + choice_dialog_add(shl, Q_("?act:Mine"), G_CALLBACK(set_city_workertask), GINT_TO_POINTER(ACTIVITY_MINE), FALSE, NULL); } diff --git a/client/gui-gtk-4.0/citydlg.c b/client/gui-gtk-4.0/citydlg.c index b5df3d909c..166a4fe9d3 100644 --- a/client/gui-gtk-4.0/citydlg.c +++ b/client/gui-gtk-4.0/citydlg.c @@ -2991,7 +2991,7 @@ static void popup_workertask_dlg(struct city *pcity, struct tile *ptile) } if (action_id_univs_not_blocking(ACTION_MINE, NULL, &for_terr)) { - choice_dialog_add(shl, _("Mine"), + choice_dialog_add(shl, Q_("?act:Mine"), G_CALLBACK(set_city_workertask), GINT_TO_POINTER(ACTIVITY_MINE), FALSE, NULL); } diff --git a/client/gui-qt/citydlg.cpp b/client/gui-qt/citydlg.cpp index aa1043af8d..df90b94360 100644 --- a/client/gui-qt/citydlg.cpp +++ b/client/gui-qt/citydlg.cpp @@ -1392,7 +1392,7 @@ void city_map::context_menu(QPoint point) con_plant = con_menu->addAction(_("Plant")); } if (action_id_univs_not_blocking(ACTION_MINE, NULL, &for_terr)) { - con_mine = con_menu->addAction(_("Mine")); + con_mine = con_menu->addAction(Q_("?act:Mine")); } if (pterr->cultivate_result != NULL diff --git a/common/fc_types.h b/common/fc_types.h index cf0306b3a1..643db5af0a 100644 --- a/common/fc_types.h +++ b/common/fc_types.h @@ -109,7 +109,7 @@ enum output_type_id { #define SPECENUM_VALUE2NAME "Unused Road" /* Action with the result ACTRES_CULTIVATE */ #define SPECENUM_VALUE3 ACTIVITY_MINE -#define SPECENUM_VALUE3NAME N_("Mine") +#define SPECENUM_VALUE3NAME N_("?act:Mine") /* Action with the result ACTRES_IRRIGATE */ #define SPECENUM_VALUE4 ACTIVITY_IRRIGATE #define SPECENUM_VALUE4NAME N_("Irrigate") diff --git a/common/reqtext.c b/common/reqtext.c index 28f342c489..058c2707a5 100644 --- a/common/reqtext.c +++ b/common/reqtext.c @@ -1790,11 +1790,11 @@ bool req_text_insert(char *buf, size_t bufsz, struct player *pplayer, if (preq->present) { cat_snprintf(buf, bufsz, _("Requires that the unit is performing activity %s."), - _(unit_activity_name(preq->source.value.activity))); + Q_(unit_activity_name(preq->source.value.activity))); } else { cat_snprintf(buf, bufsz, _("Requires that the unit is not performing activity %s."), - _(unit_activity_name(preq->source.value.activity))); + Q_(unit_activity_name(preq->source.value.activity))); } return TRUE; case REQ_RANGE_TILE: diff --git a/common/requirements.c b/common/requirements.c index c0444c9943..103a041a7f 100644 --- a/common/requirements.c +++ b/common/requirements.c @@ -4935,7 +4935,7 @@ const char *universal_name_translation(const struct universal *psource, return buf; case VUT_ACTIVITY: cat_snprintf(buf, bufsz, _("%s activity"), - _(unit_activity_name(psource->value.activity))); + Q_(unit_activity_name(psource->value.activity))); return buf; case VUT_MINMOVES: /* TRANS: Minimum unit movement points left for requirement to be met diff --git a/common/unit.c b/common/unit.c index 0872fa7e8f..c6e1273048 100644 --- a/common/unit.c +++ b/common/unit.c @@ -618,7 +618,7 @@ const char *get_activity_text(enum unit_activity activity) return _("Pollution"); case ACTIVITY_MINE: /* TRANS: Activity name, verb in English */ - return _("Mine"); + return Q_("?act:Mine"); case ACTIVITY_PLANT: /* TRANS: Activity name, verb in English */ return _("Plant"); diff --git a/data/alien/terrain.ruleset b/data/alien/terrain.ruleset index 45615b6335..ffd4fe9044 100644 --- a/data/alien/terrain.ruleset +++ b/data/alien/terrain.ruleset @@ -803,7 +803,7 @@ allowing Greenhouses to be built anywhere.\ ") [extra_mine] -name = _("Mine") +name = _("?extra:Mine") category = "Infra" causes = "Mine" rmcauses = "Pillage" diff --git a/data/civ1/terrain.ruleset b/data/civ1/terrain.ruleset index 79e557a02c..d5a438415f 100644 --- a/data/civ1/terrain.ruleset +++ b/data/civ1/terrain.ruleset @@ -948,7 +948,7 @@ further bonus.\ ") [extra_mine] -name = _("Mine") +name = _("?extra:Mine") category = "Infra" causes = "Mine" rmcauses = "Pillage" diff --git a/data/civ2/terrain.ruleset b/data/civ2/terrain.ruleset index 586e73f01e..1d16490c14 100644 --- a/data/civ2/terrain.ruleset +++ b/data/civ2/terrain.ruleset @@ -1020,7 +1020,7 @@ further bonus.\ ") [extra_mine] -name = _("Mine") +name = _("?extra:Mine") category = "Infra" causes = "Mine" rmcauses = "Pillage" diff --git a/data/civ2civ3/terrain.ruleset b/data/civ2civ3/terrain.ruleset index a8c1a9740e..f30dcfcdd7 100644 --- a/data/civ2civ3/terrain.ruleset +++ b/data/civ2civ3/terrain.ruleset @@ -1238,7 +1238,7 @@ further bonus.\ ") [extra_mine] -name = _("Mine") +name = _("?extra:Mine") category = "Infra" causes = "Mine" rmcauses = "Pillage" diff --git a/data/classic/terrain.ruleset b/data/classic/terrain.ruleset index 0e21334d63..96f16a12af 100644 --- a/data/classic/terrain.ruleset +++ b/data/classic/terrain.ruleset @@ -1211,7 +1211,7 @@ further bonus.\ ") [extra_mine] -name = _("Mine") +name = _("?extra:Mine") category = "Infra" causes = "Mine" rmcauses = "Pillage" diff --git a/data/goldkeep/terrain.ruleset b/data/goldkeep/terrain.ruleset index 4a0c8d7a41..e3863c398b 100644 --- a/data/goldkeep/terrain.ruleset +++ b/data/goldkeep/terrain.ruleset @@ -1187,7 +1187,7 @@ further bonus.\ ") [extra_mine] -name = _("Mine") +name = _("?extra:Mine") category = "Infra" causes = "Mine" rmcauses = "Pillage" diff --git a/data/multiplayer/terrain.ruleset b/data/multiplayer/terrain.ruleset index 54da6a224a..918a5baead 100644 --- a/data/multiplayer/terrain.ruleset +++ b/data/multiplayer/terrain.ruleset @@ -1185,7 +1185,7 @@ further bonus.\ ") [extra_mine] -name = _("Mine") +name = _("?extra:Mine") category = "Infra" causes = "Mine" rmcauses = "Pillage" diff --git a/data/sandbox/terrain.ruleset b/data/sandbox/terrain.ruleset index f9a43c0f3d..2d0ff21ad2 100644 --- a/data/sandbox/terrain.ruleset +++ b/data/sandbox/terrain.ruleset @@ -1239,7 +1239,7 @@ further bonus.\ ") [extra_mine] -name = _("Mine") +name = _("?extra:Mine") category = "Infra" causes = "Mine" rmcauses = "Pillage" diff --git a/data/webperimental/terrain.ruleset b/data/webperimental/terrain.ruleset index 7af0b19e2b..5faca8bbe9 100644 --- a/data/webperimental/terrain.ruleset +++ b/data/webperimental/terrain.ruleset @@ -1211,7 +1211,7 @@ further bonus.\ ") [extra_mine] -name = _("Mine") +name = _("?extra:Mine") category = "Infra" causes = "Mine" rmcauses = "Pillage" -- 2.35.1