[packagechooser] Handle translation events (stub)

This commit is contained in:
Adriaan de Groot 2019-08-02 11:09:12 +02:00
parent 735d5d2683
commit 727290f75e
2 changed files with 14 additions and 0 deletions

View File

@ -30,4 +30,15 @@ PackageChooserPage::PackageChooserPage( QWidget* parent )
, ui( new Ui::PackageChooserPage )
{
ui->setupUi( this );
CALAMARES_RETRANSLATE(
updateLabels();
)
}
void
PackageChooserPage::updateLabels()
{
ui->productName->setText( QString() );
ui->productScreenshot->hide();
ui->productDescription->setText( tr( "Please pick a product from the list." ) );
}

View File

@ -32,6 +32,9 @@ class PackageChooserPage : public QWidget
public:
explicit PackageChooserPage( QWidget* parent = nullptr );
public slots:
void updateLabels();
private:
Ui::PackageChooserPage* ui;
};