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.
Tagged: Custom Work, Documentation request
This topic contains 4 replies, has 2 voices.
Last updated by Prosenjit Barman 1 year, 8 months ago.
Assisted by: Prosenjit Barman.
Author | Posts |
---|---|
August 3, 2023 at 7:16 am #14146071 | |
Sqfin DevTeam |
Hi dear support! I hope you are having a wonderful day. I setup POEditor as a translation service to help me translate my content. I followed your wonderful tutorial here https://wpml.org/translation-service/poeditor/ and I got setup and running successfully. I got a few questions though: 1) I created a few translation jobs as tests but I can't manage to cancel and delete them. Is there any way to do this? 2) I wanted to change the default code for some languages so that it's not confusing for my users (e.g. zh-hans to zh, pt-pt to pt etc) but now POEditor is giving me the following error when I try to send jobs for translation: Sending your jobs to translation Rollback jobs... Batch rolled back My question is: is there a way to change the iso-code (somehow, e.g. from a hook) in order to bypass this issue? I want to keep my language codes as is but be able to send languages for translation. Thank you so much for your help! I appreciate everything! |
August 4, 2023 at 8:22 am #14153535 | |
Prosenjit Barman WPML Supporter since 03/2023
Languages: English (English ) Timezone: Asia/Dhaka (GMT+06:00) |
Hello There, Thank you for nicely explaining the queries. Please find the answer to those queries below. - Canceling translation job: If you have sent a translation job to a translation service, you'll not be able to cancel that job in WPML. You need to delete an entire project from POEditor or only individual languages (jobs). Please check the documentation I've added below, regarding canceling the jobs sent to the translation service. -- https://wpml.org/translation-service/poeditor/#:~:text=completed%20translations.-,Canceling%20translation%20jobs,-Although%20you%20will - Sending translation job to Poeditor with different language code: I understood the requirements you have and would like to inform you that without taking the custom coding approach, it is not possible to achieve what you're looking for. The Poeditor will not accept any content outside of the supported language code and also, it is not recommended at all to change the code for existing languages. List of languages that Poeditor supports now: hidden link If you want to take the custom coding approach to bypass this workflow, please check out our Hook reference guide: https://wpml.org/documentation/support/wpml-coding-api/wpml-hooks-reference/ I hope it will help. As providing support for the custom code/solution is beyond the scope of our support, you can hire a professional developer who provides specialized expertise and support related to WPML customization from here: https://wpml.org/contractor Please let me know if there is anything else you need help. Best Regards, |
August 4, 2023 at 9:09 am #14153829 | |
Sqfin DevTeam |
Hi Prosenjit, Thank you so much for all the intel. I wouldn't like to get out of scope of the support and ask you to provide me with custom code on how to do this, but could you at least show me the relevant hooks that might help me achieve what i want? |
August 4, 2023 at 1:45 pm #14155279 | |
Sqfin DevTeam |
Hi again, It appears that i have another issue with my translation jobs and i hope you can help me. Everything was working fine this morning but now the only terms that are sent to POEditor are the custom field labels and NOT the actual content... (see the example in the uploaded image) Please tell me that there is an option or config that can fix this because I am on a very strict deadline and I don't have much time to spend on this 🙁 |
August 7, 2023 at 6:42 am #14161217 | |
Prosenjit Barman WPML Supporter since 03/2023
Languages: English (English ) Timezone: Asia/Dhaka (GMT+06:00) |
Hi There, I truly appreciate your understanding of our support policy. Currently, there isn't any direct method to accomplish what you're looking for. However, based on a careful analysis of your requirements, I've found a way. You can modify the language code exclusively for the frontend and keep the default ISO code for the language in the backend. In this way, the modified language code will only load in the frontend and you'll also be able to send the translation job to your translation service. Hooks that might help in this case: You can also check the other hooks listed in the Site-Wide Language Information category: https://wpml.org/documentation/support/wpml-coding-api/wpml-hooks-reference/#site-wide-language-information I hope it will help. if you need more personalized help on this matter, I would suggest contacting one of our 3rd party contractors that specialize in custom work with WPML. Regarding the other issue you've mentioned: Upon checking the WPML debug info, I noticed that the translation preference of most of the custom fields is set to "Copy" which might be the reason behind this issue. If the Translation preference of a field is set to "Copy", the value of the field will not be available for translation. Please go to "WPML > Settings > Custom Field Translation section" and try changing the translation preference of those fields to "Translate". After changing the Translation preference, send the Translation job again to the translation service. I hope it will help. Please let me know if there is anything else if you need help with. Best Regards, |