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:
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.
|
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.
|
||||||
|
|
Loading…
Reference in a new issue