New Transifex command-line client compatibility

This commit is contained in:
Bernd Bestel
2022-02-13 18:25:42 +01:00
parent 6aa3dcc44a
commit d38a5efb3d
3 changed files with 46 additions and 40 deletions

View File

@@ -0,0 +1,3 @@
pushd ..
tx pull --all --resources grocy.strings --minimum-perc=70
popd

View File

@@ -1,6 +1,9 @@
pushd .. pushd ..
tx pull --all --minimum-perc=70 --force for /d %%d in (localization\*) do (
tx pull --language en_GB --force if %%~nxd neq en (
tx pull --languages %%~nxd --force
)
)
copy /Y localization\en\userfield_types.po localization\en_GB\userfield_types.po copy /Y localization\en\userfield_types.po localization\en_GB\userfield_types.po
copy /Y localization\en\stock_transaction_types.po localization\en_GB\stock_transaction_types.po copy /Y localization\en\stock_transaction_types.po localization\en_GB\stock_transaction_types.po
copy /Y localization\en\component_translations.po localization\en_GB\component_translations.po copy /Y localization\en\component_translations.po localization\en_GB\component_translations.po

View File

@@ -1,56 +1,56 @@
[main] [main]
host = https://www.transifex.com host = https://www.transifex.com
[grocy.chore_period_types] [o:grocy:p:grocy:r:chore_assignment_types]
file_filter = localization/<lang>/chore_period_types.po
source_file = localization/chore_period_types.pot
source_lang = en
type = PO
[grocy.chore_assignment_types]
file_filter = localization/<lang>/chore_assignment_types.po file_filter = localization/<lang>/chore_assignment_types.po
source_file = localization/chore_assignment_types.pot source_file = localization/chore_assignment_types.pot
source_lang = en source_lang = en
type = PO type = PO
[grocy.component_translations] [o:grocy:p:grocy:r:chore_period_types]
file_filter = localization/<lang>/chore_period_types.po
source_file = localization/chore_period_types.pot
source_lang = en
type = PO
[o:grocy:p:grocy:r:component_translations]
file_filter = localization/<lang>/component_translations.po file_filter = localization/<lang>/component_translations.po
source_file = localization/component_translations.pot source_file = localization/component_translations.pot
source_lang = en source_lang = en
type = PO type = PO
[grocy.demo_data] [o:grocy:p:grocy:r:demo_data]
file_filter = localization/<lang>/demo_data.po file_filter = localization/<lang>/demo_data.po
source_file = localization/demo_data.pot source_file = localization/demo_data.pot
source_lang = en source_lang = en
type = PO type = PO
[grocy.stock_transaction_types] [o:grocy:p:grocy:r:locales]
file_filter = localization/<lang>/stock_transaction_types.po file_filter = localization/<lang>/locales.po
source_file = localization/stock_transaction_types.pot source_file = localization/locales.pot
source_lang = en source_lang = en
type = PO type = PO
[grocy.strings] [o:grocy:p:grocy:r:permissions]
file_filter = localization/<lang>/strings.po
source_file = localization/strings.pot
source_lang = en
type = PO
[grocy.userfield_types]
file_filter = localization/<lang>/userfield_types.po
source_file = localization/userfield_types.pot
source_lang = en
type = PO
[grocy.permissions]
file_filter = localization/<lang>/permissions.po file_filter = localization/<lang>/permissions.po
source_file = localization/permissions.pot source_file = localization/permissions.pot
source_lang = en source_lang = en
type = PO type = PO
[grocy.locales] [o:grocy:p:grocy:r:stock_transaction_types]
file_filter = localization/<lang>/locales.po file_filter = localization/<lang>/stock_transaction_types.po
source_file = localization/locales.pot source_file = localization/stock_transaction_types.pot
source_lang = en
type = PO
[o:grocy:p:grocy:r:strings]
file_filter = localization/<lang>/strings.po
source_file = localization/strings.pot
source_lang = en
type = PO
[o:grocy:p:grocy:r:userfield_types]
file_filter = localization/<lang>/userfield_types.po
source_file = localization/userfield_types.pot
source_lang = en source_lang = en
type = PO type = PO