mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-26 17:05:36 -04:00
Use Retranslator in Prepare module (partial).
This commit is contained in:
parent
e5ac1a5c4f
commit
9b2dfdf1ec
2 changed files with 19 additions and 11 deletions
|
@ -21,6 +21,7 @@
|
|||
#include "PrepareCheckWidget.h"
|
||||
|
||||
#include "utils/CalamaresUtilsGui.h"
|
||||
#include "utils/Retranslator.h"
|
||||
#include "Branding.h"
|
||||
|
||||
#include <QBoxLayout>
|
||||
|
@ -33,8 +34,10 @@ PreparePage::PreparePage( QWidget* parent )
|
|||
QBoxLayout *mainLayout = new QVBoxLayout;
|
||||
setLayout( mainLayout );
|
||||
|
||||
QLabel* text = new QLabel( tr( "For best results, please ensure that this "
|
||||
"computer:" ), this );
|
||||
QLabel* text = new QLabel( this );
|
||||
CALAMARES_RETRANSLATE(
|
||||
text->setText( tr( "For best results, please ensure that this computer:" ) );
|
||||
)
|
||||
|
||||
mainLayout->addSpacing( CalamaresUtils::defaultFontHeight() );
|
||||
mainLayout->addWidget( text );
|
||||
|
@ -88,24 +91,27 @@ PreparePage::init( const QList< PrepareEntry >& checkEntries )
|
|||
iconLabel->setPixmap( CalamaresUtils::defaultPixmap( CalamaresUtils::Fail,
|
||||
CalamaresUtils::Original,
|
||||
iconLabel->size() ) );
|
||||
textLabel->setText( tr( "This computer does not satisfy the minimum "
|
||||
"requirements for installing %1.\n"
|
||||
"Installation cannot continue." )
|
||||
CALAMARES_RETRANSLATE(
|
||||
textLabel->setText( tr( "This computer does not satisfy the minimum "
|
||||
"requirements for installing %1.\n"
|
||||
"Installation cannot continue." )
|
||||
.arg( Calamares::Branding::instance()->
|
||||
string( Calamares::Branding::ShortVersionedName ) ) );
|
||||
)
|
||||
}
|
||||
else
|
||||
{
|
||||
iconLabel->setPixmap( CalamaresUtils::defaultPixmap( CalamaresUtils::Information,
|
||||
CalamaresUtils::Original,
|
||||
iconLabel->size() ) );
|
||||
textLabel->setText( tr( "This computer does not satisfy some of the "
|
||||
"recommended requirements for installing %1.\n"
|
||||
"Installation can continue, but some features "
|
||||
"might be disabled." )
|
||||
CALAMARES_RETRANSLATE(
|
||||
textLabel->setText( tr( "This computer does not satisfy some of the "
|
||||
"recommended requirements for installing %1.\n"
|
||||
"Installation can continue, but some features "
|
||||
"might be disabled." )
|
||||
.arg( Calamares::Branding::instance()->
|
||||
string( Calamares::Branding::ShortVersionedName ) ) );
|
||||
|
||||
)
|
||||
}
|
||||
|
||||
mainLayout->insertLayout( mainLayout->count(), infoLayout );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue