Commit ace7f1cd authored by Ramon Buldó's avatar Ramon Buldó

translations: update source translation

parent 998d37c1
This diff is collapsed.
......@@ -47,6 +47,22 @@ MhwdCommon::getDescription()
}
QString
MhwdCommon::getButtonFreeText()
{
QString text = QString( tr ( "Auto Install Open-Source Driver" ) );
return QString ( "<a href=\"#\">" + text + "</a>" );
}
QString
MhwdCommon::getButtonNonFreeText()
{
QString text = QString( tr ( "Auto Install Proprietary Driver" ) );
return QString ( "<a href=\"#\">" + text + "</a>" );
}
void
MhwdCommon::load( Ui::PageMhwd* ui )
{
......
......@@ -29,6 +29,8 @@ public:
static QString getDescription();
static QString getName();
static QString getTitle();
static QString getButtonFreeText();
static QString getButtonNonFreeText();
static void load( Ui::PageMhwd* ui );
static bool installConfiguration( QString configuration );
static bool installFreeConfiguration( );
......
......@@ -67,6 +67,9 @@ MhwdModule::MhwdModule( QWidget* parent, const QVariantList& args ) :
ui->removeAction->setIcon( QIcon::fromTheme( "list-remove", QIcon( ":/icons/remove.png" ) ) );
ui->reinstallAction->setIcon( QIcon::fromTheme( "view-refresh", QIcon( ":/icons/restore.png" ) ) );
ui->buttonInstallFree->setText( MhwdCommon::getButtonFreeText() );
ui->buttonInstallNonFree->setText( MhwdCommon::getButtonNonFreeText() );
// Connect signals and slots
connect( ui->buttonInstallFree, &QLabel::linkActivated,
[=] ( const QString& link )
......
......@@ -42,6 +42,9 @@ MhwdPage::MhwdPage( QWidget* parent ) :
ui->removeAction->setIcon( QIcon::fromTheme( "list-remove", QIcon( ":/icons/remove.png" ) ) );
ui->reinstallAction->setIcon( QIcon::fromTheme( "view-refresh", QIcon( ":/icons/restore.png" ) ) );
ui->buttonInstallFree->setText( MhwdCommon::getButtonFreeText() );
ui->buttonInstallNonFree->setText( MhwdCommon::getButtonNonFreeText() );
// Connect signals and slots
connect( ui->buttonInstallFree, &QLabel::linkActivated,
[=] ( const QString& link )
......
......@@ -34,14 +34,14 @@
<item>
<widget class="QLabel" name="buttonInstallFree">
<property name="text">
<string>&lt;a href=&quot;#&quot;&gt;Auto Install Open-Source Driver&lt;/a&gt;</string>
<string/>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="buttonInstallNonFree">
<property name="text">
<string>&lt;a href=&quot;#&quot;&gt;Auto Install Proprietary Driver&lt;/a&gt;</string>
<string/>
</property>
<property name="textFormat">
<enum>Qt::RichText</enum>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment