Skip to content Skip to sidebar

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client is using WPML and wants to tag SEO content in the exported files for translation, either as additional metadata or specifically for SEO. The exported files for translation only have a trans_unit for all content, and the client cannot identify SEO content separately. They inquired about configuring WPML to tag SEO content in the exported translation files and whether additional plugins could be used.

Solution:
We advised the client that for SEO data to be translatable, they need to use compatible SEO plugins along with our addon plugin, WPML SEO. Once these are in place, SEO data/fields added to the page will be available for translation when translating the page. General SEO strings and other related content can be translated via WPML String Translation. We provided a documentation link for further guidance on using WordPress SEO with WPML: https://wpml.org/documentation/plugins-compatibility/using-wordpress-seo-with-wpml/.

If this solution does not fully address your issue, or if it seems outdated or not applicable to your case, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If further assistance is needed, please open a new support ticket at WPML support forum.

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.

This topic contains 3 replies, has 2 voices.

Last updated by Dražen 1 year, 6 months ago.

Assisted by: Dražen.

Author Posts
October 11, 2024 at 8:13 am #16277934

Nigel Watson

Background of the issue:
I am supporting a customer with translation and their SEO content on a site under development. We are using WPML and want to tag SEO content in the exported files for translation, either as additional metadata or specifically for SEO.

Symptoms:
The exported files for translation only have a trans_unit for all content, and we cannot identify SEO content separately.

Questions:
How can we configure WPML to tag SEO content in the exported translation files?
Are there additional plugins that can be used to add this feature to the WP/WPML setup?

October 11, 2024 at 8:50 am #16278174

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hello,

thanks for contacting us.

I am not sure how you are adding SEO data, but for it to be translatable you need to use compatible SEO plugins and our addon plugin WPML SEO, and then SEO data /fields added to the page will be available for translation when translating the page.

Other things like general SEO string and etc can be translated via WPML String translation.

Please check our docs for Yoast SEO: https://wpml.org/documentation/plugins-compatibility/using-wordpress-seo-with-wpml/

Let me know if any other questions.

Regards,
Drazen

October 14, 2024 at 8:38 am #16284484

Nigel Watson

We added WPML SEO and Yoast SEO to our test site.
What we want to do is extract the data shown below from WP into the WPML XLIFF file so that when it is sent for translation in TradosEnterprise, the translator/SEO linguist can see what the elements are that they are translating.

See attached image.png

Currently, the WPML XLIFF file just shows trans-units with source and target text and no additional trans-unit metadata.

Where can the plug-in be instructed to extract this data too?

Is it in the wpml-config.xml settings?
Or should these be overridden in the custom-xml configuration settings?

If so, what would be the syntax?
We tried adding this to the custom-xml-configuration, but without success.
We didn’t extract the text of these tags along with the trans-unit text.

<wpml-config>
<shortcodes>
<shortcode>
<tag>trans-unit</tag>
<attributes>
<attribute>extradata</attribute>
</attributes>
</shortcode>
</shortcodes>
</wpml-config>

What should we be doing?

image.png
October 14, 2024 at 10:42 am #16285289

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hello,

I am afraid that is expected and how it works, you would see SEO texts/data for translating in XLIFF as any other. You can not alter or change it to be any different.

The naming comes from plugins adding them, and that is how they are saved in DB; WPML can not change/alter or translate the naming of these fields.

I am not sure if this answers your doubts, let me know if any other questions.

Regards,
Drazen