From 036eed3ec8b368d8f964d2451693c58ef2f01819 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sun, 28 Jun 2020 06:48:05 -0400 Subject: [PATCH] main: Mark strings as translatable where applicable --- src/Editor/main.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/Editor/main.cpp b/src/Editor/main.cpp index 0c4c85a4..2f908189 100644 --- a/src/Editor/main.cpp +++ b/src/Editor/main.cpp @@ -94,17 +94,17 @@ public: #endif QCoreApplication::setAttribute(Qt::AA_ShareOpenGLContexts); CEditorApplication App(argc, argv); - App.setApplicationName("PrimeWorldEditor"); + App.setApplicationName(QStringLiteral("PrimeWorldEditor")); App.setApplicationVersion( APP_VERSION ); - App.setOrganizationName("Aruki"); - App.setWindowIcon(QIcon(":/icons/win/AppIcon.ico")); + App.setOrganizationName(QStringLiteral("Aruki")); + App.setWindowIcon(QIcon(QStringLiteral(":/icons/win/AppIcon.ico"))); // Create UI relay CUIRelay UIRelay(&App); gpUIRelay = &UIRelay; // Set up dark theme - qApp->setStyle(QStyleFactory::create("Fusion")); + qApp->setStyle(QStyleFactory::create(QStringLiteral("Fusion"))); SetupPalette(); #ifdef __APPLE__ MacOSSetDarkAppearance(); @@ -115,7 +115,8 @@ public: // Init log bool Initialized = NLog::InitLog(LocateLogPath()); - if (!Initialized) UICommon::ErrorMsg(0, "Couldn't open log file. Logging will not work for this session."); + if (!Initialized) + UICommon::ErrorMsg(nullptr, "Couldn't open log file. Logging will not work for this session."); qInstallMessageHandler(QtLogRedirect); // Locate data directory and check write permissions @@ -128,7 +129,7 @@ public: if (!gpEditorStore->DatabasePathExists()) { - UICommon::ErrorMsg(0, "Unable to locate PWE resources directory; " + UICommon::ErrorMsg(nullptr, "Unable to locate PWE resources directory; " "PWE's executable must remain as deployed."); return 1; }