[Resolved] Error message when sending translation jobs to Crowdin
This thread is resolved. Here is a description of the problem and solution.
Problem: The client is experiencing an issue when trying to send translation jobs to Crowdin using WPML. The error message received is 'Sending for translation failed. The jobs could not be created.' This occurs when selecting a page for translation and setting the method to 'assign translation service'. Solution: 1. Ensure that the language mapping is correctly set up in Crowdin. Go to Crowdin's project settings, navigate to the Languages section, and click on the Language Mapping button. Create a rule for the Spanish language with the placeholder 'locale' and the custom code that matches WPML's code for Spanish. 2. After setting up the language mapping, attempt to create a translation job again. 3. If the issue persists, check the communication log in WPML by navigating to WPML->Support and clicking on the communication log link. Share this log with us for further analysis. 4. Test with a new sample page containing just a title and one line of text to see if the issue is specific to certain pages or posts.
If this solution does not resolve your issue or seems outdated, please check related known issues at https://wpml.org/known-issues/, verify the version of the permanent fix, and confirm that you have installed the latest versions of themes and plugins. If problems persist, we highly recommend opening a new support ticket for personalized assistance.
This is the technical support forum for WPML - the multilingual WordPress plugin.
Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.
Background of the issue:
I am trying to test out Crowdin on behalf of my client to understand how the process works. I have a free trial from Crowdin, added it as a service to WPML, and provided the API token Crowdin provided. I see confirmation that Crowdin is an active service. The issue can be seen at: hidden link.
Symptoms:
When I select a page for translation and set the method to 'assign translation service,' I get an error message: 'Sending for translation failed. The jobs could not be created.'
Questions:
Why am I receiving an error message when sending translation jobs to Crowdin?
How can I successfully send translation jobs to Crowdin using WPML?
I'm consulting our Translation Service expert about this issue. Meanwhile, please share the access details to your site with me. I'm enabling a private message for the following reply. Privacy and Security Policy
We have strict policies regarding privacy and access to your information. Please see: https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/ **IMPORTANT**
- - Please backup the site files and database before providing us access. --
-- If you have a staging site where the problem can be reproduced, it is better to share access to the staging site.--
Our Translation Service expert says that everything seems to be all right from our side. Therefore, he asks, as I already requested, for the access details to your site so that he can check things further.
If you need further help with this, please share the access details to your site with me. I'm enabling a private message for the following reply. Privacy and Security Policy
We have strict policies regarding privacy and access to your information. Please see: https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/ **IMPORTANT**
- - Please backup the site files and database before providing us access. --
-- If you have a staging site where the problem can be reproduced, it is better to share access to the staging site.--
I heard back from Crowdin support and they guided me on the final steps. I'll share it, in case anyone else has this problem.
You need to set the Language mapping in your project on the Crowdin side: Settings-> Languages section -> the Language Mapping button.
Please create a rule based on the custom code that WPML requires for Spanish with the placeholder 'locale'. For example:
Language: Spanish
Placeholder: locale
Custom code: __ (please check how it is dispalyed on the WPML side and use the proper value)
Once saved, you can try creating a translation job again and everything should be delivered to Crowdin.
---
I'm translating English into Spanish. I went to WPML > Languages > Edit Languages. The Code for Spanish in WPML is "es" so I put that in the "custom code" field in Crowdin. That fixed my problem.