Skip to content Skip to sidebar

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

Problem:
The translated text widget doesn't display the translation at frontend.
Solution:
We recommend adding the following XML configuration to your WPML settings:

<wpml-config>
  <admin-texts>
    <key name="widget_text">
      </key><key name="*">
        </key><key name="text"></key>
      
    
  </admin-texts>
</wpml-config>

You can add this in the WPML >> Settings > Custom XML Configuration section. After adding this XML, your email address in the footer should be translatable.

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

Last updated by Noman 1 year, 7 months ago.

Assisted by: Noman.

Author Posts
February 11, 2024 at 3:26 pm #15290149

liesbethV-4

Hi Noman, I just disabled the coming soon page! Could you also check why I can not translate the mailaddress in footer?

February 11, 2024 at 3:38 pm #15290185

Noman
WPML Supporter since 06/2016

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi,

Thank you for contacting WPML Support. I’ve noticed that the footer is built using Widgets and you should be able to translate the widget content by following the below steps:

1. Go to WPML >> String Translation page.
2. Scroll down and click on the Translate texts in admin screens » link at the bottom of the page.
3. Search for the your required string.
4. Select the string.
5. Click on the Add to String Translation button.
6. Then click on "« Return to String Translation" link.
7. Add the translation from WPML >> String Translation page.

Here is a doc for more details about translating texts in admin screens: https://wpml.org/documentation/getting-started-guide/string-translation/finding-strings-that-dont-appear-on-the-string-translation-page/

Please let me know if this resolves your issue or if you need further assistance with this issue.

Thank you

February 11, 2024 at 3:43 pm #15290186

liesbethV-4

Hi Noman,
I did everything as you told me and as in the description above. But I translated the string but it does not do anything at the front end. See attachments...

Scherm­afbeelding 2024-02-11 om 12.23.02.png
Scherm­afbeelding 2024-02-11 om 13.23.55.png
February 11, 2024 at 3:48 pm #15290221

Noman
WPML Supporter since 06/2016

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thanks for trying the above steps. I’ve noticed that the current WP Memory Limit on your site is 40MB. The WP memory limit needs to be increased, it's different from PHP memory. PHP memory is fine but WordPress uses 40MB as default in your site. The minimum requirements for WPML are 128MB: https://wpml.org/home/minimum-requirements/

Please add this to the top of wp-config.php to increase WP memory:

/* WP Memory Limit */
define('WP_MEMORY_LIMIT', '256M');

If the issue persists, please provide temporary access (WP-Admin and FTP Login info) to your site (preferably staging site), so that I can look into your setup and debug the issue.

Your next answer will be private, meaning only you and I can access it.

=== Please backup your database and website ===

✙ I would additionally need your permission to deactivate and reactivate Plugins and the Theme and to change configurations on the site. This is also a reason the backup is essential.

Thank you

February 11, 2024 at 4:46 pm #15290328

Noman
WPML Supporter since 06/2016

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thanks for providing the login details. I’ve added the below XML:

<wpml-config>
  <admin-texts>
    <key name="widget_text">
      <key name="*">
        <key name="text"/>
      </key>
    </key>
  </admin-texts>
</wpml-config>

In WPML >> Settings > Custom XML Configuration section and now it seems to be working correctly. Could you please check and confirm?

Thank you

nl widget.png
en widget.png
February 11, 2024 at 4:55 pm #15290358

liesbethV-4

When I see the contact page in english then you can see that mailaddress is info@crossingfutures.nl instead of .com. Strange is it?? See attachment.

Furthermore how can I translate the contactform?

Scherm­afbeelding 2024-02-11 om 17.49.43.png
February 11, 2024 at 5:27 pm #15290381

Noman
WPML Supporter since 06/2016

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

1. I visited the contact page and it seems the email address in footer shows the correct translation as you can see in the attached screenshots. Could you please try to clear your browser cache and see if this resolves your issue, or please let me know if I missed something.

2. For contact form translation, I’ve replied you here:
https://wpml.org/forums/topic/not-all-strings-are-translated-3/

Thank you

NL contact page.png
En contact page.png
February 11, 2024 at 5:50 pm #15290465
liesbethV-4

Hi Noman,

Thanks so much. You were right. I had to clear the cache.

I succeeded in translating the contact form but not in translating the button of contact form. I would like to translate button "verzenden" into "send".

And last thing:on contact page I can not find the string "Strategisch advies gericht op toekomstscenario's" See attachment

That's it. Then all my problems are solved 🙂

New threads created by Noman and linked to this one are listed below:

https://wpml.org/forums/topic/i-can-not-find-the-string-on-contact-page/

Scherm­afbeelding 2024-02-11 om 18.46.07.png
February 12, 2024 at 7:43 am #15291147

Noman
WPML Supporter since 06/2016

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Glad to hear you footer translation issue is solved.

1. For form button translation issue, I’m going to reply you in the dedicated ticket here:
https://wpml.org/forums/topic/not-all-strings-are-translated-3/

2. For contact page string translation issues, it’s a different issue and will be handled separately as per our support policy. I've created new ticket for this at: https://wpml.org/forums/topic/i-can-not-find-the-string-on-contact-page/

If your mailaddress translation issue is solved, please mark this current ticket as resolved and we will continue to work on the new ticket.

Thank you for your cooperation