From b3ee6f95a236b56d33b79306e575d14dc4b4e659 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20Br=C3=BCbach?= Date: Sun, 16 Mar 2025 11:02:24 +0100 Subject: [PATCH] tr UI --- cockatrice/src/dialogs/dlg_select_set_for_cards.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cockatrice/src/dialogs/dlg_select_set_for_cards.cpp b/cockatrice/src/dialogs/dlg_select_set_for_cards.cpp index c478da7a6..863b380e1 100644 --- a/cockatrice/src/dialogs/dlg_select_set_for_cards.cpp +++ b/cockatrice/src/dialogs/dlg_select_set_for_cards.cpp @@ -53,7 +53,7 @@ DlgSelectSetForCards::DlgSelectSetForCards(QWidget *parent, DeckListModel *_mode QVBoxLayout *leftLayout = new QVBoxLayout(leftContainer); leftLayout->setContentsMargins(0, 0, 0, 0); - uneditedCardsLabel = new QLabel("Unmodified Cards:", this); + uneditedCardsLabel = new QLabel(this); uneditedCardsArea = new QScrollArea(this); uneditedCardsArea->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff); uneditedCardsArea->setVerticalScrollBarPolicy(Qt::ScrollBarAsNeeded); @@ -72,7 +72,7 @@ DlgSelectSetForCards::DlgSelectSetForCards(QWidget *parent, DeckListModel *_mode QVBoxLayout *rightLayout = new QVBoxLayout(rightContainer); rightLayout->setContentsMargins(0, 0, 0, 0); - modifiedCardsLabel = new QLabel("Modified Cards:", this); + modifiedCardsLabel = new QLabel(this); modifiedCardsArea = new QScrollArea(this); modifiedCardsArea->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff); modifiedCardsArea->setVerticalScrollBarPolicy(Qt::ScrollBarAsNeeded); @@ -132,6 +132,8 @@ DlgSelectSetForCards::DlgSelectSetForCards(QWidget *parent, DeckListModel *_mode void DlgSelectSetForCards::retranslateUi() { + uneditedCardsLabel->setText(tr("Unmodified Cards:")); + modifiedCardsLabel->setText(tr("Modified Cards:")); instructionLabel->setText(tr("Check Sets to enable them. Drag-and-Drop to reorder them and change their " "priority. Cards will use the printing of the highest priority enabled set.")); clearButton->setText(tr("Clear all set information"));