|
|
@ -21,6 +21,7 @@
|
|
|
|
#include "CalamaresVersion.h"
|
|
|
|
#include "CalamaresVersion.h"
|
|
|
|
#include "utils/Logger.h"
|
|
|
|
#include "utils/Logger.h"
|
|
|
|
#include "utils/CalamaresUtils.h"
|
|
|
|
#include "utils/CalamaresUtils.h"
|
|
|
|
|
|
|
|
#include "utils/Retranslator.h"
|
|
|
|
#include "ViewManager.h"
|
|
|
|
#include "ViewManager.h"
|
|
|
|
|
|
|
|
|
|
|
|
#include <QApplication>
|
|
|
|
#include <QApplication>
|
|
|
@ -86,23 +87,15 @@ GreetingPage::GreetingPage( QWidget* parent )
|
|
|
|
mainLayout->addWidget( m_text );
|
|
|
|
mainLayout->addWidget( m_text );
|
|
|
|
mainLayout->addStretch();
|
|
|
|
mainLayout->addStretch();
|
|
|
|
|
|
|
|
|
|
|
|
retranslate();
|
|
|
|
CALAMARES_RETRANSLATE(
|
|
|
|
}
|
|
|
|
m_text->setText( tr( "<h1>Welcome to the %1 installer.</h1><br/>"
|
|
|
|
|
|
|
|
"This program will ask you some questions and "
|
|
|
|
|
|
|
|
"set up %2 on your computer." )
|
|
|
|
void
|
|
|
|
.arg( Calamares::Branding::instance()->
|
|
|
|
GreetingPage::changeEvent( QEvent* e )
|
|
|
|
string( Calamares::Branding::VersionedName ) )
|
|
|
|
{
|
|
|
|
.arg( Calamares::Branding::instance()->
|
|
|
|
QWidget::changeEvent( e );
|
|
|
|
string( Calamares::Branding::ProductName ) ) );
|
|
|
|
switch ( e->type() )
|
|
|
|
)
|
|
|
|
{
|
|
|
|
|
|
|
|
case QEvent::LanguageChange:
|
|
|
|
|
|
|
|
retranslate();
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
default:
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -114,15 +107,3 @@ GreetingPage::focusInEvent( QFocusEvent* e )
|
|
|
|
e->accept();
|
|
|
|
e->accept();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void
|
|
|
|
|
|
|
|
GreetingPage::retranslate()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
m_text->setText( tr( "<h1>Welcome to the %1 installer.</h1><br/>"
|
|
|
|
|
|
|
|
"This program will ask you some questions and "
|
|
|
|
|
|
|
|
"set up %2 on your computer." )
|
|
|
|
|
|
|
|
.arg( Calamares::Branding::instance()->
|
|
|
|
|
|
|
|
string( Calamares::Branding::VersionedName ) )
|
|
|
|
|
|
|
|
.arg( Calamares::Branding::instance()->
|
|
|
|
|
|
|
|
string( Calamares::Branding::ProductName ) ) );
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|