diff --git a/HeadsetControl-Qt.pro b/HeadsetControl-Qt.pro index 5cd0f1a..ecaa74c 100644 --- a/HeadsetControl-Qt.pro +++ b/HeadsetControl-Qt.pro @@ -35,11 +35,15 @@ TRANSLATIONS += \ src/Resources/tr/HeadsetControl-Qt_en.ts RESOURCES += \ - src/Resources/resources.qrc \ - src/Resources/translations.qrc + src/Resources/resources.qrc RC_FILE = src/Resources/appicon.rc +# Build/embed translations automatically +CONFIG += lrelease +QM_FILES_RESOURCE_PREFIX=/translations/tr +CONFIG += embed_translations + # Default rules for deployment. qnx: target.path = /tmp/$${TARGET}/bin else: unix:!android: target.path = /opt/$${TARGET}/bin diff --git a/src/Resources/tr/HeadsetControl-Qt_en.qm b/src/Resources/tr/HeadsetControl-Qt_en.qm deleted file mode 100644 index ebb6ec2..0000000 Binary files a/src/Resources/tr/HeadsetControl-Qt_en.qm and /dev/null differ diff --git a/src/Resources/tr/HeadsetControl-Qt_fr.qm b/src/Resources/tr/HeadsetControl-Qt_fr.qm deleted file mode 100644 index af63f42..0000000 Binary files a/src/Resources/tr/HeadsetControl-Qt_fr.qm and /dev/null differ diff --git a/src/Resources/translations.qrc b/src/Resources/translations.qrc deleted file mode 100644 index baffa68..0000000 --- a/src/Resources/translations.qrc +++ /dev/null @@ -1,6 +0,0 @@ - - - tr/HeadsetControl-Qt_en.qm - tr/HeadsetControl-Qt_fr.qm - - \ No newline at end of file