mirror of
https://github.com/borgbase/vorta
synced 2025-02-01 12:21:28 +00:00
Determine source files for translations dynamically. By @real-yfprojects (#1309)
This commit is contained in:
parent
37850b15a2
commit
efe710540a
1 changed files with 1 additions and 2 deletions
3
Makefile
3
Makefile
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue