[libcalamaresui] Translate button texts for paste-message
This commit is contained in:
parent
7516740bbf
commit
6e0a8d8ca1
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user