-
Notifications
You must be signed in to change notification settings - Fork 6
Import translations from Transifex
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.
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 concrete5 core-562
concrete/bin/concrete5 ct:transifex-translations --create --approve concrete5 core-5621
concrete/bin/concrete5 ct:transifex-translations --create --approve concrete5 core-563
concrete/bin/concrete5 ct:transifex-translations --create --approve concrete5 core-dev-56
concrete/bin/concrete5 ct:transifex-translations --create --approve concrete5 core-dev-57
concrete/bin/concrete5 ct:transifex-translations --create --approve concrete5 core-dev-8
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