Skip to content

Commit 39110c3

Browse files
committedMay 27, 2020
Replaced the "make ts" target with a simple shell script
The invocation of lupdate is so trivial that it doesn't really make sense to set it up through qmake.
1 parent 876a262 commit 39110c3

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed
 

‎dist/update-translations.sh

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Updates the .ts files based on the strings found in the source code
2+
# Meant to be run from repository root
3+
lupdate -locations relative -no-obsolete src -ts translations/*.ts

‎translations/translations.pro

-4
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,9 @@ OBJECTS_DIR =
6161
win32:CONFIG -= embed_manifest_exe
6262

6363
TRANSLATIONS = $$prependAppend(LANGUAGES, $$PWD/tiled_, .ts)
64-
LUPDATE = $$fixSlashes($$[QT_INSTALL_BINS]/lupdate) -locations relative -no-obsolete
6564
LRELEASE = $$QMAKE_LRELEASE
6665
isEmpty(LRELEASE):LRELEASE = $$fixSlashes($$[QT_INSTALL_BINS]/lrelease)
6766

68-
ts.commands = cd $$PWD/.. && $$LUPDATE src -ts $$TRANSLATIONS
69-
QMAKE_EXTRA_TARGETS += ts
70-
7167
win32 {
7268
TARGET_DIR = .
7369
} else:macx {

0 commit comments

Comments
 (0)
Please sign in to comment.