[app] Added Polish translations to the build
This commit is contained in:
parent
93064a57bb
commit
6ee937d06e
1 changed files with 7 additions and 4 deletions
11
app/app.pro
11
app/app.pro
|
@ -57,8 +57,7 @@ OTHER_FILES += \
|
||||||
settings/*.json \
|
settings/*.json \
|
||||||
data/default/* \
|
data/default/* \
|
||||||
data/zlibrary/core/encodings/* \
|
data/zlibrary/core/encodings/* \
|
||||||
data/zlibrary/core/resources/* \
|
data/zlibrary/core/resources/*
|
||||||
translations/*.ts
|
|
||||||
|
|
||||||
TARGET_DATA_DIR = /usr/share/$$TARGET
|
TARGET_DATA_DIR = /usr/share/$$TARGET
|
||||||
TARGET_DEFAULT_DATA_DIR = $$TARGET_DATA_DIR/data
|
TARGET_DEFAULT_DATA_DIR = $$TARGET_DATA_DIR/data
|
||||||
|
@ -215,7 +214,10 @@ TRANSLATION_SOURCES = \
|
||||||
$${_PRO_FILE_PWD_}/settings
|
$${_PRO_FILE_PWD_}/settings
|
||||||
|
|
||||||
defineTest(addTrFile) {
|
defineTest(addTrFile) {
|
||||||
in = $${_PRO_FILE_PWD_}/translations/harbour-$$1
|
rel = translations/harbour-$${1}
|
||||||
|
OTHER_FILES += $${rel}.ts
|
||||||
|
|
||||||
|
in = $${_PRO_FILE_PWD_}/$$rel
|
||||||
out = $${OUT_PWD}/translations/$${PREFIX}-$$1
|
out = $${OUT_PWD}/translations/$${PREFIX}-$$1
|
||||||
|
|
||||||
s = $$replace(1,-,_)
|
s = $$replace(1,-,_)
|
||||||
|
@ -240,10 +242,11 @@ defineTest(addTrFile) {
|
||||||
export($${lrelease_target}.commands)
|
export($${lrelease_target}.commands)
|
||||||
export(QMAKE_EXTRA_TARGETS)
|
export(QMAKE_EXTRA_TARGETS)
|
||||||
export(PRE_TARGETDEPS)
|
export(PRE_TARGETDEPS)
|
||||||
|
export(OTHER_FILES)
|
||||||
export(qm.files)
|
export(qm.files)
|
||||||
}
|
}
|
||||||
|
|
||||||
LANGUAGES = de fi hu nl pt_BR ru sv es
|
LANGUAGES = de fi hu nl pl pt_BR ru sv es
|
||||||
|
|
||||||
addTrFile($${NAME})
|
addTrFile($${NAME})
|
||||||
for(l, LANGUAGES) {
|
for(l, LANGUAGES) {
|
||||||
|
|
Loading…
Reference in a new issue