main: Mark strings as translatable where applicable
This commit is contained in:
parent
2d3564d626
commit
036eed3ec8
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue