Skip Navigation

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

Problem:
The client needed help with translating strings 'By' and 'Last updated' on their website, which were not being translated. Client is using post-info Elementor widget and adding text strings there manually.

Solution:
We recommended adding custom XML configuration to WPML settings to make the strings available for translation in the WPML editor. Here are the steps we provided:
1. Navigate to WPML > Settings.
2. Add the following custom XML configuration:

<wpml-config>
  <elementor-widgets>
    <widget name="post-info">
      <fields-in-item items_of="icon_list">
        <field>custom_text</field>
      </fields-in-item>
    </widget>
  </elementor-widgets><elementor-widgets>
</elementor-widgets></wpml-config>

3. After adding the code, retranslate the page / template, and they should now appear in the WPML editor for translation.

If this solution doesn't look relevant, please open a new support ticket.

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: 

This topic contains 7 replies, has 2 voices.

Last updated by Dražen Duvnjak 10 months ago.

Assisted by: Dražen Duvnjak.

Author Posts
January 17, 2024 at 3:58 pm

geraldoP-2

Hi,

I need help with a string translation that is not being updated on the website.

These two strings are never updated in the other languages of my website

You can check the site: hidden link

I have translated it multiple times but nothing changes. It used to work but now it's not working.

January 17, 2024 at 5:07 pm
January 18, 2024 at 8:09 am #15198374

Dražen Duvnjak
Supporter

Languages: English (English )

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

Hello,

I am trying to login to check but seems credentials are not working anymore.

1) In order to expedite handling your support requests, can you please share WPML support debug information from your site.

- To give debug information, login to your site and go to WPML → Support. From there click on the “debug information” link at the bottom of the page.
- Once on the “debug information” page, select the entire content of the text box and copy it.
- Now go back to our support forum, find debug information box and paste it.

More information on the link: https://wpml.org/faq/provide-debug-information-faster-support/

2) Please make a full backup of your site (files and database) and confirm it in your next reply.
If possible please provide access to the staging website, not production.

Please note, that I might need to do some debugging procedures like enable/disable plugins, switch themes, change the default language of the user account, and/or access your website database to debug the issue furtherly.

I will share with you any changes or steps done in this process. Please let me know if you do not agree with the above or if I do not have your permission for any.

I would need to access both your site's wp-admin and FTP account, if possible.

I have enabled the private username and password fields in your next reply.

I suggest you create a new user, set it as an administrator and then add those credentials in the private fields mentioned.

You can safely add your information into these fields.

Regards,
Drazen

January 18, 2024 at 2:41 pm
January 19, 2024 at 8:12 am #15203221

Dražen Duvnjak
Supporter

Languages: English (English )

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

Hello,

thanks, but this user is not admin so I can not check or access anything.

Please make sure you set it as admin, and check please it works fine.

Let me know.

Regards,
Drazen

January 19, 2024 at 12:18 pm #15204817

geraldoP-2

Sorry. My bad. Please, check now. I changed the user role.

January 19, 2024 at 12:28 pm #15204839

Dražen Duvnjak
Supporter

Languages: English (English )

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

Hello,

thanks, I have checked and I can see you are setting these values manually in the "Tema Blog post" template.

Please edit the template and set the text you wish, currently it is BY.

- hidden link

Regards,
Drazen

Snimka zaslona 2024-01-19 132721.png
January 19, 2024 at 12:36 pm #15204908

geraldoP-2

Yes. It's "By" and "Last updated". Thos are correct. I need to translate those strings into other languages, but they need to be translated.

Are you suggesting I change it to another language using the Elementor template editor?

I'm not sure if I get what you mean.

January 19, 2024 at 12:39 pm #15204911

geraldoP-2

Yes. It's "By" and "Last updated". Thos are correct. I need to translate those strings into other languages, but they need to be translated.

Are you suggesting I change it to another language using the Elementor template editor?

The translate editor doesn't show those strings for me.

I'm not sure if I get what you mean.

Screenshot_1.jpg
January 19, 2024 at 12:45 pm #15204932

Dražen Duvnjak
Supporter

Languages: English (English )

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

Hello,

thanks for getting back.

You are right, I missed that, I thought PT was your default language.

Anyway, I added the next code to WPML > Settings > Custom XML and retranslate, now it shows in wpml editor for translation.

<wpml-config>
  <elementor-widgets>
    <widget name="post-info">
      <fields-in-item items_of="icon_list">
        <field>custom_text</field>
      </fields-in-item>
    </widget>
  </elementor-widgets>
</wpml-config>

Regards,
Drazen