Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
b5b6901c
Commit
b5b6901c
authored
Oct 25, 2010
by
Oswald Buddenhagen
Browse files
exclude dead/irrelevant sources from string collection
parent
ddf5a01a
Changes
1
Hide whitespace changes
Inline
Side-by-side
share/qtcreator/translations/translations.pro
View file @
b5b6901c
...
...
@@ -30,16 +30,26 @@ extract.commands += \
$$XMLPATTERNS -output $$CUSTOMWIZARD_TR_H -param files=$$CUSTOMWIZARD_FILES $$PWD/extract-customwizards.xq
QMAKE_EXTRA_TARGETS += extract
plugin_sources = $$files($$IDE_SOURCE_TREE/src/plugins
/*
)
plugin_sources ~= s,^$$re_escape($$IDE_SOURCE_TREE/),,g
plugin_sources -= src/plugins/plugins.pro \
src/plugins/helloworld \ # just an example
# the following ones are dead
src/plugins/qtestlib \
src/plugins/snippets \
src/plugins/regexp
sources = src/app src/libs $$plugin_sources src/shared share/qtcreator/qmldesigner
files = $$files($$PWD
/*
_??.ts) $$PWD/qtcreator_untranslated.ts
for(file, files) {
lang = $$replace(file, .
*_([^
/]
*)\\.ts, \\1)
v = ts-$${lang}.commands
$$v = cd $$IDE_SOURCE_TREE && $$LUPDATE
src share
/qtcreator/qmldesigner
$$MIME_TR_H $$CUSTOMWIZARD_TR_H -ts $$file
$$v = cd $$IDE_SOURCE_TREE && $$LUPDATE
$$sources
$$MIME_TR_H $$CUSTOMWIZARD_TR_H -ts $$file
v = ts-$${lang}.depends
$$v = extract
QMAKE_EXTRA_TARGETS += ts-$$lang
}
ts-all.commands = cd $$IDE_SOURCE_TREE && $$LUPDATE
src share/qtcreator/qmldesigner
$$MIME_TR_H $$CUSTOMWIZARD_TR_H -ts $$files
ts-all.commands = cd $$IDE_SOURCE_TREE && $$LUPDATE
$$sources
$$MIME_TR_H $$CUSTOMWIZARD_TR_H -ts $$files
ts-all.depends = extract
QMAKE_EXTRA_TARGETS += ts-all
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment