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 2 replies, has 2 voices.

Last updated by imarkimage@gmail.com 1 year, 2 months ago.

Assigned support staff: Yvette.

Author Posts
June 24, 2018 at 8:43 am #2431032

imarkimage@gmail.com

I am trying to translate the "Home", "404 error" and "search" pages' text in yoast's breadcrumbs.

When using the string translation plugin, as per the screenshot below, it's shown to be translated fully.

When looking at the pages themselves, the translation isn't showing.
You can see in the screenshot below that the title is in Hebrew, but the Breadcrumb isn't.

Wordpress Version 4.9.6

Plugins:
Yoast SEO v7.6.1
WPML Multilingual CMS v4.0.3
WPML Translation Management v2.6.3

June 26, 2018 at 11:07 am #2435016

Yvette
Supporter

Languages: English (English ) Spanish (Español )

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

Hello

If your are entering text into a configuration panel as I see on your screenshot, then these are "admin-texts" that should be registered for translation via custom XML configuration as described in this documentation:
https://wpml.org/documentation/support/language-configuration-files/#admin-texts

They will appear in the String Translation table with the prefix "admin-texts"

To register these texts, please add the following lines to WPML -> Settings -> Custom XML Configuration tab

<wpml-config>
  <admin-texts>
    <key name="wpseo_titles">
      <key name="breadcrumbs-404crumb"/>
      <key name="breadcrumbs-archiveprefix"/>
      <key name="breadcrumbs-home"/>
      <key name="breadcrumbs-prefix"/>
      <key name="breadcrumbs-searchprefix"/>
      <key name="breadcrumbs-sep"/>
    </key>
  </admin-texts>
</wpml-config>

Then you should see the correct texts to translate available in String Tranlsation (see image)
After you translate these admin-texts, you should see the result on the frontend breadcrumbs.

July 4, 2018 at 3:09 pm #2463865

imarkimage@gmail.com

This works, though it seems like a hassle to do and maintain for more than a single website at a time.
Should there not be a built-in way for WPML to acquire these fields from Yoast?