aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike FABIAN <mike.fabian@basyskom.de>2010-03-09 15:41:53 +0100
committerMike FABIAN <mike.fabian@basyskom.de>2010-03-09 15:45:03 +0100
commitc8d4b46e66d195dd708e72f028578c9bd24bd30b (patch)
tree1fbe33098f3db062235ccb2b68f368ca27c893dd
parentea88ef58d9c5029b9ce9516bb17e5f4cc0a25cda (diff)
Changes: make it possible to override the -markuntranlated option from dui_translation.prf
RevBy: TrustMe Details:
-rw-r--r--mkspecs/features/dui_translations.prf18
1 files changed, 9 insertions, 9 deletions
diff --git a/mkspecs/features/dui_translations.prf b/mkspecs/features/dui_translations.prf
index 18204673..0bfc6667 100644
--- a/mkspecs/features/dui_translations.prf
+++ b/mkspecs/features/dui_translations.prf
@@ -60,23 +60,23 @@ defineReplace(prependAll) {
return($$result)
}
+defineReplace(targetPath) {
+ return($$replace(1, /, $$QMAKE_DIR_SEP))
+}
isEmpty(LRELEASE_OPTIONS) {
LRELEASE_OPTIONS = -idbased
+ # add “-markuntranslated '!!\ '” if available (needs new Qt 4.6):
+ out = $$system($$targetPath($$[QT_INSTALL_BINS]/lrelease) -help)
+ # the second parameter of contains can be a regexp!
+ contains(out, .*markuntranslated.*) {
+ LRELEASE_OPTIONS += -markuntranslated '!!\ '
+ }
}
isEmpty(LUPDATE_OPTIONS) {
LUPDATE_OPTIONS = -locations absolute -no-ui-lines -no-sort
}
-defineReplace(targetPath) {
- return($$replace(1, /, $$QMAKE_DIR_SEP))
-}
LRELEASE = $$targetPath($$[QT_INSTALL_BINS]/lrelease) $$LRELEASE_OPTIONS
LUPDATE = $$targetPath($$[QT_INSTALL_BINS]/lupdate) $$LUPDATE_OPTIONS
-# add “-markuntranslated '!!\ '” if available (needs new Qt 4.6):
-out = $$system($$LRELEASE -help)
-# the second parameter of contains can be a regexp!
-contains(out, .*markuntranslated.*) {
- LRELEASE += -markuntranslated '!!\ '
-}
TRANSLATIONS = $$prependAll(LANGUAGES, $$TRANSLATIONDIR/$${CATALOGNAME}_,.ts)