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);
|
QFrame *warningFrame = new QFrame(this);
|
||||||
warningFrame->setFrameShape(QFrame::StyledPanel);
|
warningFrame->setFrameShape(QFrame::StyledPanel);
|
||||||
|
|
||||||
QLabel *warningLabel = new QLabel(this);
|
warningLabel = new QLabel(this);
|
||||||
warningLabel->setTextFormat(Qt::RichText);
|
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);
|
warningLabel->setWordWrap(true);
|
||||||
|
|
||||||
auto *warningLayout = new QVBoxLayout(warningFrame);
|
auto *warningLayout = new QVBoxLayout(warningFrame);
|
||||||
|
|
@ -48,6 +46,8 @@ PrintingSelector::PrintingSelector(QWidget *parent, AbstractTabDeckEditor *_deck
|
||||||
warningLayout->addWidget(warningLabel);
|
warningLayout->addWidget(warningLabel);
|
||||||
|
|
||||||
layout->addWidget(warningFrame);
|
layout->addWidget(warningFrame);
|
||||||
|
} else {
|
||||||
|
warningLabel = nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
widgetLoadingBufferTimer = new QTimer(this);
|
widgetLoadingBufferTimer = new QTimer(this);
|
||||||
|
|
@ -104,6 +104,12 @@ PrintingSelector::PrintingSelector(QWidget *parent, AbstractTabDeckEditor *_deck
|
||||||
void PrintingSelector::retranslateUi()
|
void PrintingSelector::retranslateUi()
|
||||||
{
|
{
|
||||||
navigationCheckBox->setText(tr("Display Navigation Buttons"));
|
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()
|
void PrintingSelector::printingsInDeckChanged()
|
||||||
|
|
|
||||||
|
|
@ -46,6 +46,7 @@ private:
|
||||||
QWidget *sortAndOptionsContainer;
|
QWidget *sortAndOptionsContainer;
|
||||||
QHBoxLayout *sortAndOptionsLayout;
|
QHBoxLayout *sortAndOptionsLayout;
|
||||||
QCheckBox *navigationCheckBox;
|
QCheckBox *navigationCheckBox;
|
||||||
|
QLabel *warningLabel;
|
||||||
PrintingSelectorCardSortingWidget *sortToolBar;
|
PrintingSelectorCardSortingWidget *sortToolBar;
|
||||||
PrintingSelectorCardSearchWidget *searchBar;
|
PrintingSelectorCardSearchWidget *searchBar;
|
||||||
FlowWidget *flowWidget;
|
FlowWidget *flowWidget;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue