mirror of
https://github.com/borgbase/vorta
synced 2024-12-22 07:43:09 +00:00
parent
4eafad5472
commit
1d65d0cba5
5 changed files with 7 additions and 7 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -16,7 +16,7 @@ vorta.egg-info
|
|||
*.log
|
||||
htmlcov
|
||||
*.qm
|
||||
src/vorta/i18n/ts/vorta.en_US.ts
|
||||
src/vorta/i18n/ts/vorta.en.ts
|
||||
flatpak/app/
|
||||
flatpak/.flatpak-builder/
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ host = https://www.transifex.com
|
|||
[vorta.vorta]
|
||||
file_filter = src/vorta/i18n/ts/vorta.<lang>.ts
|
||||
minimum_perc = 80
|
||||
source_file = src/vorta/i18n/ts/vorta.en_US.ts
|
||||
source_lang = en_US
|
||||
source_file = src/vorta/i18n/ts/vorta.en.ts
|
||||
source_lang = en
|
||||
type = QT
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
graft src/vorta/assets
|
||||
|
||||
# Include all compiled .qm language files, but exclude the source language (en_US).
|
||||
# Include all compiled .qm language files, but exclude the source language (en).
|
||||
recursive-include src/vorta/i18n/qm *.qm
|
||||
exclude src/vorta/i18n/qm/vorta.en_US.qm
|
||||
exclude src/vorta/i18n/qm/vorta.en.qm
|
||||
|
||||
recursive-exclude tests *
|
||||
|
|
2
Makefile
2
Makefile
|
@ -47,7 +47,7 @@ translations-from-source: ## Extract strings from source code / UI files, merge
|
|||
pylupdate5 -verbose -translate-function trans_late \
|
||||
$$VORTA_SRC/*.py $$VORTA_SRC/views/*.py $$VORTA_SRC/borg/*.py \
|
||||
$$VORTA_SRC/assets/UI/*.ui \
|
||||
-ts $$VORTA_SRC/i18n/ts/vorta.en_US.ts
|
||||
-ts $$VORTA_SRC/i18n/ts/vorta.en.ts
|
||||
|
||||
translations-push: translations-from-source ## Upload .ts to Transifex.
|
||||
tx push -s
|
||||
|
|
|
@ -49,7 +49,7 @@ def local_en():
|
|||
Some tests use English strings. So override whatever language the current user
|
||||
has and run the tests with the English UI.
|
||||
"""
|
||||
os.environ['LANG'] = 'en_US'
|
||||
os.environ['LANG'] = 'en'
|
||||
|
||||
|
||||
@pytest.fixture(scope='session')
|
||||
|
|
Loading…
Reference in a new issue