mirror of
https://github.com/borgbase/vorta
synced 2025-01-03 13:45:49 +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
|
*.log
|
||||||
htmlcov
|
htmlcov
|
||||||
*.qm
|
*.qm
|
||||||
src/vorta/i18n/ts/vorta.en_US.ts
|
src/vorta/i18n/ts/vorta.en.ts
|
||||||
flatpak/app/
|
flatpak/app/
|
||||||
flatpak/.flatpak-builder/
|
flatpak/.flatpak-builder/
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@ host = https://www.transifex.com
|
||||||
[vorta.vorta]
|
[vorta.vorta]
|
||||||
file_filter = src/vorta/i18n/ts/vorta.<lang>.ts
|
file_filter = src/vorta/i18n/ts/vorta.<lang>.ts
|
||||||
minimum_perc = 80
|
minimum_perc = 80
|
||||||
source_file = src/vorta/i18n/ts/vorta.en_US.ts
|
source_file = src/vorta/i18n/ts/vorta.en.ts
|
||||||
source_lang = en_US
|
source_lang = en
|
||||||
type = QT
|
type = QT
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
graft src/vorta/assets
|
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
|
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 *
|
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 \
|
pylupdate5 -verbose -translate-function trans_late \
|
||||||
$$VORTA_SRC/*.py $$VORTA_SRC/views/*.py $$VORTA_SRC/borg/*.py \
|
$$VORTA_SRC/*.py $$VORTA_SRC/views/*.py $$VORTA_SRC/borg/*.py \
|
||||||
$$VORTA_SRC/assets/UI/*.ui \
|
$$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.
|
translations-push: translations-from-source ## Upload .ts to Transifex.
|
||||||
tx push -s
|
tx push -s
|
||||||
|
|
|
@ -49,7 +49,7 @@ def local_en():
|
||||||
Some tests use English strings. So override whatever language the current user
|
Some tests use English strings. So override whatever language the current user
|
||||||
has and run the tests with the English UI.
|
has and run the tests with the English UI.
|
||||||
"""
|
"""
|
||||||
os.environ['LANG'] = 'en_US'
|
os.environ['LANG'] = 'en'
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture(scope='session')
|
@pytest.fixture(scope='session')
|
||||||
|
|
Loading…
Reference in a new issue