From b83d0fa7c30157ad00d3b612cff593742a42ed79 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Sat, 4 Dec 2021 23:44:58 +0200 Subject: [PATCH 39/39] Qt: Use sex_name_translation() instead of hardcoding strings See osdn #43336 Signed-off-by: Marko Lindqvist --- client/gui-qt/dialogs.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/gui-qt/dialogs.cpp b/client/gui-qt/dialogs.cpp index f2a97d60a3..db8c40d509 100644 --- a/client/gui-qt/dialogs.cpp +++ b/client/gui-qt/dialogs.cpp @@ -482,8 +482,8 @@ races_dialog::races_dialog(struct player *pplayer, qgroupbox_layout->addWidget(leader_name, 1, 0, 1, 2); qgroupbox_layout->addWidget(is_male, 2, 1); qgroupbox_layout->addWidget(is_female, 2, 0); - is_female->setText(_("Female")); - is_male->setText(_("Male")); + is_female->setText(sex_name_translation(SEX_FEMALE)); + is_male->setText(sex_name_translation(SEX_MALE)); no_name->setLayout(qgroupbox_layout); description = new QTextEdit; -- 2.33.0