Translation build has been changed

This commit is contained in:
Arin Alexander 2019-06-02 09:34:42 +03:00
parent e868616213
commit b929ac308b

View File

@ -119,7 +119,7 @@ contains(CONFIG,build_translations){
return($$result) return($$result)
} }
TRANSLATIONS = $$prependAll(LANGUAGES, \"$$TRANSLATIONS_PATH/limereport_,.ts\") TRANSLATIONS = $$prependAll(LANGUAGES, $$TRANSLATIONS_PATH/limereport_,.ts)
qtPrepareTool(LUPDATE, lupdate) qtPrepareTool(LUPDATE, lupdate)
@ -133,7 +133,7 @@ lessThan(QT_MAJOR_VERSION, 5){
qtPrepareTool(LRELEASE, lrelease) qtPrepareTool(LRELEASE, lrelease)
for(tsfile, TRANSLATIONS) { for(tsfile, TRANSLATIONS) {
qmfile = $$tsfile qmfile = $$tsfile
qmfile ~= s,".ts\"$",".qm\"", qmfile ~= s,".ts$",".qm",
qm.commands += $$LRELEASE -removeidentical $$tsfile -qm $$qmfile $$escape_expand(\\n\\t) qm.commands += $$LRELEASE -removeidentical $$tsfile -qm $$qmfile $$escape_expand(\\n\\t)
tmp_command = $$LRELEASE -removeidentical $$tsfile -qm $$qmfile $$escape_expand(\\n\\t) tmp_command = $$LRELEASE -removeidentical $$tsfile -qm $$qmfile $$escape_expand(\\n\\t)
TRANSLATIONS_FILES += $$qmfile TRANSLATIONS_FILES += $$qmfile