I have a few extensions of mine on Pootle and I decided to migrate those:
- cloudflare
- direct_mail_userfunc
- file_list
- ig_ldap_sso_auth
- image_autoresize
- restdoc
First step is to get the project set up on Crowdin. For this, you need to
get in contact with the team in the TYPO3 slack channel typo3-localization-team
with the following information:
- The list of extensions you own and want to migrate to Crowdin
- Information that your extension is already available on the previous translation server
- Your email address for an invitation to Crowdin, so you will get the correct role for your project.
The team will set up projects for those extensions, and you will get invitation notifications from Crowdin sent by email.
The invitation emails just invite you to log in to Crowdin: https://crowdin.com/profile
Check that you see all of your projects and proceed to step 3.
On Crowdin, click your avatar top right and choose Settings within the context menu. Then move to tab API and click the button "New Token". Choose following scopes:
- Projects (List, Get, Create, Edit)
- Source files & strings
- Translations
Give a name for that token (e.g., "Pootle migration") and be sure to copy and save the generated token as you won't be able to see it again.
Please follow instructions from https://docs.typo3.org/m/typo3/reference-coreapi/11.5/en-us/ApiOverview/Localization/TranslationServer/Crowdin/ExtensionIntegration.html#crowdin-extension-integration
Goal is to import your source files (English) and set up the link so that your project on Crowdin gets automatically updated whenever you update the source localization files.
A few steps in the official instructions are not 100% clear:
- Set Up Integration > Source and translation files mode
- When setting up (GitHub integration), you may leave the checkbox "One-time translation import after the branch is
connected" ticket. Just adapt the Configuration File Default Name at the very end to
.crowdin.yaml
In order not to loose all the work translators did in the past, you should import existing files and translations from Pootle.
Example with the project "cloudflare".
This may be done manually, but I will use the Console Client (CLI) for Crowdin. Install as described on: https://developer.crowdin.com/cli-tool/
Run the fetch-packages.sh
script with
- parameter 1: the extension key
- parameter 2: the path to your extension project on disk
E.g.,
./fetch-packages.sh cloudflare ~/Projects/TYPO3/cloudflare
The script will fetch all existing translations for you, prepare the corresponding upload configuration file and give you last instructions on how to finalize the import.
Cool Xavier!
A suggestion: The right way to get a project up running on Crowdin, is to take contact with the team in the TYPO3 slack channel cig-crowdin-localization as described here:
https://docs.typo3.org/m/typo3/reference-coreapi/11.5/en-us/ApiOverview/Localization/TranslationServer/Crowdin/ExtensionIntegration.html#setup