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 Sergio 3 years ago.

Assigned support staff: Cristina.

Author Posts
May 18, 2017 at 2:15 pm #1279327


Hello, please check the of this page: hidden link

As you can see it has:

<script type='application/ld+json'>{"@context":"http:\/\/","@type":"WebSite","@id":"#website","url":"https:\/\/\/pl\/","name":"Tantric Massage in Warsaw, Poland - Anahata Tantra Temple","alternateName":"Tantric Massage in Warsaw, Poland | Anahata Tantra Temple","potentialAction":{"@type":"SearchAction","target":"https:\/\/\/pl\/?s={search_term_string}","query-input":"required name=search_term_string"}}</script>

However I'd like to have it translated...
I did select the right boxes from the "Translate texts in admin screens »", however even after translating them, they are still showing in English everywhere....

Please help

May 19, 2017 at 4:37 pm #1280459


Dear Sergio,

you will need to do two things to get this snippet shown in the secondary languages:

Step 1: Register and add the strings to String Translation for translation

As we are talking about the information you have put into Seo > Dashboard > Company Info, these strings have to be registered manually from the admin screen to be translatable. I attached some screenshots to illustrate this.

  • Go to WPML > String Translation
  • Click on “Translate texts in admin screens »
  • In the new screen scroll down to “- wpseo“ and open the dropdown.
  • Select the fields that you are using for your company or personal info like company_name, company_or_person, person_name, website_name and alternate_website_name
  • Click on Apply and the strings will be added to String Translations.
  • Go to String Translation if you are not redirected automatically there, translate the strings, mark as complete and save them.

Step 2: Now you need to register the strings in a language configuration file and upload this to your server.

You can use this code and paste it into a xml file:

    <key name="wpseo">
      <key name="company_logo"/>
      <key name="company_name"/>
      <key name="company_or_person"/>
      <key name="person_name"/>
      <key name="website_name"/>
      <key name="alternate_website_name"/>

Any other field from the wpseo strings you want to use can be added like the ones I provided here in this example.

Save the file as wpml-config.xml and upload it to wp-content > plugins > sitepress-multilingual-cms:

Now the translated fields for the json-ld markup script should appear in the translated language.

You will find more information about language configuration files here:

Kind regards,


May 19, 2017 at 5:38 pm #1280512


thanks, it worked.