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: Exception
This topic contains 4 replies, has 2 voices.
Last updated by janK-52 1 year, 8 months ago.
Assisted by: Prosenjit Barman.
Author | Posts |
---|---|
July 4, 2023 at 3:46 pm #13942969 | |
janK-52 |
Hi WPML team, I created translation jobs and exported them as xliff file. Is it possible to remove the shortcodes and html tags? (like in the ATE) Thanks, |
July 5, 2023 at 8:39 am #13947315 | |
Prosenjit Barman Supporter
Languages: English (English ) Timezone: Asia/Dhaka (GMT+06:00) |
Hi Jan, I understood what you're looking for but sorry to say, there is no way to strip these Shortcodes and HTML tags from the XLIFF. The Shortcodes and the HTML are also considered as part of the page contents. If you try to remove them, the end result will not be accurate as the default version. The translated version of the page may appear broken as Shortcode and HTML tags are missing. I hope you can understand. Please let me know if there is anything else you need help. I will be happy to assist you. Best Regards, |
July 5, 2023 at 9:00 am #13947679 | |
janK-52 |
Hi Prosenjit, thanks for your reply! 🙂 Just to make sure I understand you correctly: In the ATE it is possible to remove the html, but in XLIFF files the html is needed and there is no way to remove it, is that correct? |
July 6, 2023 at 4:41 am #13954645 | |
Prosenjit Barman Supporter
Languages: English (English ) Timezone: Asia/Dhaka (GMT+06:00) |
Hi There, Yes, you are correct! When using the Advanced Translation Editor to add translations for a page, only the translatable text content will be loaded into the editor. However, behind the scenes, the styles and layout will be copied. After saving the translation, a translated version of the page will be created with the translated content. The layout and style of the translated page will be the same as the default page. Now, when you're exporting an XLIFF, the HTML and Shortcodes must need to be in the XLIFF file and there is no possible way right now to remove them. This ensures that after processing the XLIFF file and importing the target language XLIFF file back into the system, the translated page will have the same appearance as the original page. I hope I'm able to clarify the Workflow of ATE and why it is necessary to have the HTML and Shortcodes in the XLIFF. Please let me know if there is anything else if you need help. I will be happy to assist you. Best Regards, |