Skip to content

Import translations from Transifex

Michele Locati edited this page Feb 27, 2017 · 5 revisions

Community Translation allows you to import translations directly from Transifex.

For this, you can use the ct:transifex-translations command.

When importing, you may decide if you want to create locales not yet defined in Community Translation, or if you want to skip them.

You can also specify if the imported translations should be already be approved.

Example

To import all the resources of the concrete5-packages Transifex project, creating locales if they don't yet exist:

concrete/bin/concrete5 ct:transifex-translations --create concrete5-packages

To import the concrete5 translations from Transifex, creating locales if they don't yet exist, a resource at a time:

concrete/bin/concrete5 ct:transifex-translations --create --approve --resource core-562 concrete5
concrete/bin/concrete5 ct:transifex-translations --create --approve --resource core-5621 concrete5
concrete/bin/concrete5 ct:transifex-translations --create --approve --resource core-563 concrete5
concrete/bin/concrete5 ct:transifex-translations --create --approve --resource core-dev-56 concrete5
concrete/bin/concrete5 ct:transifex-translations --create --approve --resource core-dev-57 concrete5
concrete/bin/concrete5 ct:transifex-translations --create --approve --resource core-dev-8 concrete5

Notes

Please remark that the Transifex APIs have a bug: if the Transifex project contained some locales that have been removed in the past, you may end with having those locales in Community Translation: so, once the import has finished, you may want to check the list of the imported locales. For instance, the concrete5 project imports the cs (Czech) and en_AT (English (Austria)) locales

Clone this wiki locally