main: Mark strings as translatable where applicable

This commit is contained in:
Lioncash 2020-06-28 06:48:05 -04:00
parent 2d3564d626
commit 036eed3ec8
1 changed files with 7 additions and 6 deletions

View File

@ -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;
}