main: Mark strings as translatable where applicable
This commit is contained in:
parent
2d3564d626
commit
036eed3ec8
|
@ -94,17 +94,17 @@ public:
|
||||||
#endif
|
#endif
|
||||||
QCoreApplication::setAttribute(Qt::AA_ShareOpenGLContexts);
|
QCoreApplication::setAttribute(Qt::AA_ShareOpenGLContexts);
|
||||||
CEditorApplication App(argc, argv);
|
CEditorApplication App(argc, argv);
|
||||||
App.setApplicationName("PrimeWorldEditor");
|
App.setApplicationName(QStringLiteral("PrimeWorldEditor"));
|
||||||
App.setApplicationVersion( APP_VERSION );
|
App.setApplicationVersion( APP_VERSION );
|
||||||
App.setOrganizationName("Aruki");
|
App.setOrganizationName(QStringLiteral("Aruki"));
|
||||||
App.setWindowIcon(QIcon(":/icons/win/AppIcon.ico"));
|
App.setWindowIcon(QIcon(QStringLiteral(":/icons/win/AppIcon.ico")));
|
||||||
|
|
||||||
// Create UI relay
|
// Create UI relay
|
||||||
CUIRelay UIRelay(&App);
|
CUIRelay UIRelay(&App);
|
||||||
gpUIRelay = &UIRelay;
|
gpUIRelay = &UIRelay;
|
||||||
|
|
||||||
// Set up dark theme
|
// Set up dark theme
|
||||||
qApp->setStyle(QStyleFactory::create("Fusion"));
|
qApp->setStyle(QStyleFactory::create(QStringLiteral("Fusion")));
|
||||||
SetupPalette();
|
SetupPalette();
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
MacOSSetDarkAppearance();
|
MacOSSetDarkAppearance();
|
||||||
|
@ -115,7 +115,8 @@ public:
|
||||||
|
|
||||||
// Init log
|
// Init log
|
||||||
bool Initialized = NLog::InitLog(LocateLogPath());
|
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);
|
qInstallMessageHandler(QtLogRedirect);
|
||||||
|
|
||||||
// Locate data directory and check write permissions
|
// Locate data directory and check write permissions
|
||||||
|
@ -128,7 +129,7 @@ public:
|
||||||
|
|
||||||
if (!gpEditorStore->DatabasePathExists())
|
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.");
|
"PWE's executable must remain as deployed.");
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue