[libcalamaresui] Translate button texts for paste-message

This commit is contained in:
Adriaan de Groot 2021-09-08 10:58:33 +02:00
parent 7516740bbf
commit 6e0a8d8ca1

View File

@ -13,6 +13,7 @@
#include "DllMacro.h" #include "DllMacro.h"
#include "utils/Logger.h" #include "utils/Logger.h"
#include "utils/Units.h" #include "utils/Units.h"
#include "widgets/TranslationFix.h"
#include <QApplication> #include <QApplication>
#include <QClipboard> #include <QClipboard>
@ -166,8 +167,12 @@ CalamaresUtils::Paste::doLogUploadUI( QWidget* parent )
pasteUrlMessage = pasteUrlFmt.arg( pasteUrl ); pasteUrlMessage = pasteUrlFmt.arg( pasteUrl );
} }
QMessageBox::critical( QMessageBox mb( QMessageBox::Critical,
nullptr, QCoreApplication::translate( "Calamares::ViewManager", "Install Log Paste URL" ), pasteUrlMessage ); QCoreApplication::translate( "Calamares::ViewManager", "Install Log Paste URL" ),
pasteUrlMessage,
QMessageBox::Ok );
Calamares::fixButtonLabels( &mb );
mb.exec();
return pasteUrl; return pasteUrl;
} }