1
0
Fork 0

Disabling translations is tricky.

This commit is contained in:
James Turner 2018-08-28 17:12:31 +01:00
parent 61f33e0195
commit 2329654e3b
3 changed files with 8 additions and 0 deletions

View file

@ -40,4 +40,7 @@ if (${do_translate})
endforeach()
file(APPEND ${translation_res} "</qresource>\n</RCC>")
# set this so config.h can detect it
set(HAVE_QRC_TRANSLATIONS TRUE)
endif() # of do translate

View file

@ -207,7 +207,9 @@ private:
static void initQtResources()
{
Q_INIT_RESOURCE(resources);
#if defined(HAVE_QRC_TRANSLATIONS)
Q_INIT_RESOURCE(translations);
#endif
}
static void simgearMessageOutput(QtMsgType type, const QMessageLogContext &context, const QString &msg)

View file

@ -65,3 +65,6 @@
#define FG_BUILD_TYPE "@FG_BUILD_TYPE@"
#define HAVE_PUI
#cmakedefine HAVE_QRC_TRANSLATIONS