mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-18 08:22:15 -07:00
Translation
This commit is contained in:
parent
b28b491ec3
commit
61abedf6c1
3 changed files with 205 additions and 188 deletions
File diff suppressed because it is too large
Load diff
|
|
@ -36,10 +36,8 @@ PrintingSelector::PrintingSelector(QWidget *parent, AbstractTabDeckEditor *_deck
|
|||
QFrame *warningFrame = new QFrame(this);
|
||||
warningFrame->setFrameShape(QFrame::StyledPanel);
|
||||
|
||||
QLabel *warningLabel = new QLabel(this);
|
||||
warningLabel = new QLabel(this);
|
||||
warningLabel->setTextFormat(Qt::RichText);
|
||||
warningLabel->setText("<b>Warning:</b> You appear to be using custom card art, which has known bugs when also "
|
||||
"using the printing selector in this version of Cockatrice.");
|
||||
warningLabel->setWordWrap(true);
|
||||
|
||||
auto *warningLayout = new QVBoxLayout(warningFrame);
|
||||
|
|
@ -48,6 +46,8 @@ PrintingSelector::PrintingSelector(QWidget *parent, AbstractTabDeckEditor *_deck
|
|||
warningLayout->addWidget(warningLabel);
|
||||
|
||||
layout->addWidget(warningFrame);
|
||||
} else {
|
||||
warningLabel = nullptr;
|
||||
}
|
||||
|
||||
widgetLoadingBufferTimer = new QTimer(this);
|
||||
|
|
@ -104,6 +104,12 @@ PrintingSelector::PrintingSelector(QWidget *parent, AbstractTabDeckEditor *_deck
|
|||
void PrintingSelector::retranslateUi()
|
||||
{
|
||||
navigationCheckBox->setText(tr("Display Navigation Buttons"));
|
||||
|
||||
if (warningLabel) {
|
||||
warningLabel->setText(
|
||||
tr("<b>Warning:</b> You appear to be using custom card art, which has known bugs when also "
|
||||
"using the printing selector in this version of Cockatrice."));
|
||||
}
|
||||
}
|
||||
|
||||
void PrintingSelector::printingsInDeckChanged()
|
||||
|
|
|
|||
|
|
@ -46,6 +46,7 @@ private:
|
|||
QWidget *sortAndOptionsContainer;
|
||||
QHBoxLayout *sortAndOptionsLayout;
|
||||
QCheckBox *navigationCheckBox;
|
||||
QLabel *warningLabel;
|
||||
PrintingSelectorCardSortingWidget *sortToolBar;
|
||||
PrintingSelectorCardSearchWidget *searchBar;
|
||||
FlowWidget *flowWidget;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue