1
0
Fork 0
mirror of https://github.com/borgbase/vorta synced 2025-01-02 21:25:48 +00:00

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

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. translations-from-source: ## Extract strings from source code / UI files, merge into .ts.
pylupdate5 -verbose -translate-function trans_late \ pylupdate5 -verbose -translate-function trans_late \
${VORTA_SRC}/*.py ${VORTA_SRC}/views/*.py ${VORTA_SRC}/borg/*.py \ $$(find ${VORTA_SRC} -regex ".*[.]\(py\|ui\)") \
${VORTA_SRC}/store/*.py ${VORTA_SRC}/assets/UI/*.ui \
-ts ${VORTA_SRC}/i18n/ts/vorta.en.ts -ts ${VORTA_SRC}/i18n/ts/vorta.en.ts
translations-push: translations-from-source ## Upload .ts to Transifex. translations-push: translations-from-source ## Upload .ts to Transifex.