Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Add translations.
Signed-off-by: Tomi Leppänen <tomi.leppanen@jolla.com>
- Loading branch information
Showing
5 changed files
with
69 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
TEMPLATE = aux | ||
|
||
TRANSLATION_CATALOG = qml_plugin_systemsettings | ||
|
||
# Translation Source | ||
TS_FILE = $$OUT_PWD/$${TRANSLATION_CATALOG}.ts | ||
|
||
ts.commands += lupdate $$PWD/.. -ts $$TS_FILE | ||
ts.CONFIG += no_check_exist no_link | ||
ts.output = $$TS_FILE | ||
ts.input = .. | ||
|
||
ts_install.files = $$TS_FILE | ||
ts_install.path = /usr/share/translations/source | ||
ts_install.CONFIG += no_check_exist | ||
|
||
# Engineering English Translation | ||
EE_QM = $$OUT_PWD/$${TRANSLATION_CATALOG}_eng_en.qm | ||
|
||
# XXX should add -markuntranslated "-" when proper translations are in place | ||
qm.commands += lrelease -idbased $$TS_FILE -qm $$EE_QM | ||
qm.CONFIG += no_check_exist no_link | ||
qm.depends = ts | ||
qm.input = $$TS_FILE | ||
qm.output = $$EE_QM | ||
|
||
qm_install.path = /usr/share/translations | ||
qm_install.files = $$EE_QM | ||
qm_install.CONFIG += no_check_exist | ||
|
||
QMAKE_EXTRA_TARGETS += ts qm | ||
PRE_TARGETDEPS += ts qm | ||
|
||
INSTALLS += ts_install qm_install |