mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
Translate language also for the launcher
This commit is contained in:
@@ -24,11 +24,15 @@ add_executable(Pdf4QtLaunchPad
|
|||||||
main.cpp
|
main.cpp
|
||||||
icon.rc
|
icon.rc
|
||||||
app.qrc
|
app.qrc
|
||||||
launchapplicationwidget.h launchapplicationwidget.cpp launchapplicationwidget.ui
|
launchapplicationwidget.h
|
||||||
launchdialog.h launchdialog.cpp launchdialog.ui
|
launchapplicationwidget.cpp
|
||||||
|
launchapplicationwidget.ui
|
||||||
|
launchdialog.h
|
||||||
|
launchdialog.cpp
|
||||||
|
launchdialog.ui
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(Pdf4QtLaunchPad PRIVATE Qt6::Core Qt6::Gui Qt6::Widgets)
|
target_link_libraries(Pdf4QtLaunchPad PRIVATE Pdf4QtLibCore Qt6::Core Qt6::Gui Qt6::Widgets)
|
||||||
|
|
||||||
set_target_properties(Pdf4QtLaunchPad PROPERTIES
|
set_target_properties(Pdf4QtLaunchPad PROPERTIES
|
||||||
WIN32_EXECUTABLE ON
|
WIN32_EXECUTABLE ON
|
||||||
|
@@ -21,6 +21,7 @@
|
|||||||
// SOFTWARE.
|
// SOFTWARE.
|
||||||
|
|
||||||
#include "launchdialog.h"
|
#include "launchdialog.h"
|
||||||
|
#include "pdfapplicationtranslator.h"
|
||||||
|
|
||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
|
|
||||||
@@ -33,6 +34,9 @@ int main(int argc, char *argv[])
|
|||||||
QCoreApplication::setApplicationName("PDF4QT LaunchPad");
|
QCoreApplication::setApplicationName("PDF4QT LaunchPad");
|
||||||
QApplication::setApplicationDisplayName(QApplication::translate("Application", "PDF4QT LaunchPad"));
|
QApplication::setApplicationDisplayName(QApplication::translate("Application", "PDF4QT LaunchPad"));
|
||||||
|
|
||||||
|
pdf::PDFApplicationTranslator translator;
|
||||||
|
translator.installTranslator();
|
||||||
|
|
||||||
QIcon appIcon(":/app-icon.svg");
|
QIcon appIcon(":/app-icon.svg");
|
||||||
QApplication::setWindowIcon(appIcon);
|
QApplication::setWindowIcon(appIcon);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user