mirror of
https://github.com/fergalmoran/picard.git
synced 2025-12-26 11:18:20 +00:00
Update to use transifex-client 1.x
This commit is contained in:
10
.tx/config
10
.tx/config
@@ -3,31 +3,31 @@
|
||||
[main]
|
||||
host = https://www.transifex.com
|
||||
|
||||
[musicbrainz.picard]
|
||||
[o:musicbrainz:p:musicbrainz:r:picard]
|
||||
file_filter = po/<lang>.po
|
||||
source_file = po/picard.pot
|
||||
source_lang = en
|
||||
type = PO
|
||||
|
||||
[musicbrainz.picard_appstream]
|
||||
[o:musicbrainz:p:musicbrainz:r:picard_appstream]
|
||||
file_filter = po/appstream/<lang>.po
|
||||
source_file = po/appstream/picard-appstream.pot
|
||||
source_lang = en
|
||||
type = PO
|
||||
|
||||
[musicbrainz.picard_installer]
|
||||
[o:musicbrainz:p:musicbrainz:r:picard_installer]
|
||||
file_filter = installer/i18n/sources/<lang>.json
|
||||
source_file = installer/i18n/sources/en.json
|
||||
source_lang = en
|
||||
type = KEYVALUEJSON
|
||||
|
||||
[musicbrainz.countries]
|
||||
[o:musicbrainz:p:musicbrainz:r:countries]
|
||||
file_filter = po/countries/<lang>.po
|
||||
source_file = po/countries/countries.pot
|
||||
source_lang = en
|
||||
type = PO
|
||||
|
||||
[musicbrainz.attributes]
|
||||
[o:musicbrainz:p:musicbrainz:r:attributes]
|
||||
file_filter = po/attributes/<lang>.po
|
||||
source_file = po/attributes/attributes.pot
|
||||
source_lang = en
|
||||
|
||||
@@ -8,7 +8,7 @@ _Please do not manually edit the PO files._
|
||||
Required tools
|
||||
--------------
|
||||
|
||||
* [Transifex client](https://developers.transifex.com/docs/cli)
|
||||
* [Transifex client 1.x](https://developers.transifex.com/docs/cli)
|
||||
* [Babel](https://babel.pocoo.org/)
|
||||
|
||||
|
||||
|
||||
@@ -4,4 +4,3 @@ flake8
|
||||
isort>=5.0
|
||||
pycodestyle
|
||||
pylint>=2.6.0
|
||||
transifex-client
|
||||
|
||||
9
setup.py
9
setup.py
@@ -518,10 +518,9 @@ class picard_pull_translations(Command):
|
||||
tx_executable,
|
||||
'pull',
|
||||
'--force',
|
||||
'--resource',
|
||||
'musicbrainz.picard',
|
||||
'--language',
|
||||
'--languages',
|
||||
'en_AU,en_GB,en_CA'
|
||||
'musicbrainz.picard',
|
||||
])
|
||||
|
||||
|
||||
@@ -600,9 +599,9 @@ class picard_update_constants(Command):
|
||||
tx_executable,
|
||||
'pull',
|
||||
'--force',
|
||||
'--resource=musicbrainz.attributes,musicbrainz.countries',
|
||||
'--source',
|
||||
'--language=none',
|
||||
'musicbrainz.attributes',
|
||||
'musicbrainz.countries',
|
||||
]
|
||||
self.spawn(txpull_cmd)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user