From f00a557d07fa507a01570c96d4e1fdb4778f44fc Mon Sep 17 00:00:00 2001 From: Teo Mrnjavac Date: Wed, 4 Mar 2015 19:52:48 +0100 Subject: [PATCH] Retranslate diagnostics button. --- src/calamares/CalamaresWindow.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/calamares/CalamaresWindow.cpp b/src/calamares/CalamaresWindow.cpp index d21148eb6..feeebbb28 100644 --- a/src/calamares/CalamaresWindow.cpp +++ b/src/calamares/CalamaresWindow.cpp @@ -24,6 +24,7 @@ #include "utils/CalamaresStyle.h" #include "utils/Logger.h" #include "utils/DebugWindow.h" +#include "utils/Retranslator.h" #include "Settings.h" #include "Branding.h" @@ -89,7 +90,10 @@ CalamaresWindow::CalamaresWindow( QWidget* parent ) if ( Calamares::Settings::instance()->debugMode() ) { - QPushButton* debugWindowBtn = new QPushButton( tr( "Show diagnostics" ) ); + QPushButton* debugWindowBtn = new QPushButton; + CALAMARES_RETRANSLATE( + debugWindowBtn->setText( tr( "Show diagnostics" ) ); + ) sideLayout->addWidget( debugWindowBtn ); debugWindowBtn->setFlat( true ); debugWindowBtn->setCheckable( true );