Determine source files for translations dynamically. By @real-yfprojects (#1309)

This commit is contained in:
yfprojects 2022-05-22 04:02:19 +00:00 committed by GitHub
parent 37850b15a2
commit efe710540a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -37,8 +37,7 @@ bump-version: ## Tag new version. First set new version number in src/vorta/_ve
translations-from-source: ## Extract strings from source code / UI files, merge into .ts.
pylupdate5 -verbose -translate-function trans_late \
${VORTA_SRC}/*.py ${VORTA_SRC}/views/*.py ${VORTA_SRC}/borg/*.py \
${VORTA_SRC}/store/*.py ${VORTA_SRC}/assets/UI/*.ui \
$$(find ${VORTA_SRC} -regex ".*[.]\(py\|ui\)") \
-ts ${VORTA_SRC}/i18n/ts/vorta.en.ts
translations-push: translations-from-source ## Upload .ts to Transifex.