[X2Go-Commits] [x2gokdriveclient] 02/03: x2gokdriveclient.pro: add translations support.
git-admin at x2go.org
git-admin at x2go.org
Fri May 26 22:05:49 CEST 2023
This is an automated email from the git hooks/post-receive script.
x2go pushed a commit to branch master
in repository x2gokdriveclient.
commit 95dd50164bfccff93b365214a8076c488d719e76
Author: Mihai Moldovan <ionic at ionic.de>
Date: Fri May 26 21:51:22 2023 +0200
x2gokdriveclient.pro: add translations support.
---
debian/changelog | 1 +
x2gokdriveclient.pro | 18 ++++++++++++++++++
2 files changed, 19 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index 311c2d8..7569679 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -100,6 +100,7 @@ x2gokdriveclient (0.0.0.1-0x2go1) UNRELEASED; urgency=medium
- misc: pre-release date update.
- x2gokdriveclient.pro: add VERSION variable, currently unused, but might
become handy at a later point in time.
+ - x2gokdriveclient.pro: add translations support.
* debian/rules:
+ Let qmake add general Qt {C{,XX},L}FLAGS instead of overriding them.
Especially needed for C++11 support.
diff --git a/x2gokdriveclient.pro b/x2gokdriveclient.pro
index 061e710..ebd032a 100644
--- a/x2gokdriveclient.pro
+++ b/x2gokdriveclient.pro
@@ -21,6 +21,8 @@ RESOURCES += res/resources.qrc
VERSION = "$$cat($${PWD}/VERSION.x2gokdriveclient)"
# Input
+TRANSLATIONS += res/i18n/x2gokdriveclient_de.ts
+
HEADERS += src/client.h \
src/displayarea.h \
src/menuframe.h \
@@ -45,3 +47,19 @@ LIBS += -ldwmapi
}
LIBS += -lz
+
+!isEmpty(TRANSLATIONS) {
+ isEmpty(QMAKE_LRELEASE) {
+ qtPrepareTool(QMAKE_LRELEASE, lrelease)
+ }
+
+ isEmpty(TS_DIR):TS_DIR = .
+ TSQM.name = lrelease ${QMAKE_FILE_IN}
+ TSQM.input = TRANSLATIONS
+ TSQM.output = $$TS_DIR/${QMAKE_FILE_BASE}.qm
+ TSQM.commands = $$QMAKE_LRELEASE ${QMAKE_FILE_IN}
+ TSQM.CONFIG = no_link
+ QMAKE_EXTRA_COMPILERS += TSQM
+ PRE_TARGETDEPS += compiler_TSQM_make_all
+}
+else:message("No translation files in project")
--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/x2gokdriveclient.git
More information about the x2go-commits
mailing list