From 6e0a8d8ca198816026a0a1983c9a27655f504764 Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Wed, 8 Sep 2021 10:58:33 +0200 Subject: [PATCH] [libcalamaresui] Translate button texts for paste-message --- src/libcalamaresui/utils/Paste.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/libcalamaresui/utils/Paste.cpp b/src/libcalamaresui/utils/Paste.cpp index a29d6d362..9190fcf5c 100644 --- a/src/libcalamaresui/utils/Paste.cpp +++ b/src/libcalamaresui/utils/Paste.cpp @@ -13,6 +13,7 @@ #include "DllMacro.h" #include "utils/Logger.h" #include "utils/Units.h" +#include "widgets/TranslationFix.h" #include #include @@ -166,8 +167,12 @@ CalamaresUtils::Paste::doLogUploadUI( QWidget* parent ) pasteUrlMessage = pasteUrlFmt.arg( pasteUrl ); } - QMessageBox::critical( - nullptr, QCoreApplication::translate( "Calamares::ViewManager", "Install Log Paste URL" ), pasteUrlMessage ); + QMessageBox mb( QMessageBox::Critical, + QCoreApplication::translate( "Calamares::ViewManager", "Install Log Paste URL" ), + pasteUrlMessage, + QMessageBox::Ok ); + Calamares::fixButtonLabels( &mb ); + mb.exec(); return pasteUrl; }