Skip Navigation

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.

Sun Mon Tue Wed Thu Fri Sat
10:00 – 14:00 10:00 – 14:00 10:00 – 14:00 10:00 – 14:00 10:00 – 14:00 - -
16:00 – 20:00 16:00 – 20:00 16:00 – 20:00 16:00 – 20:00 16:00 – 20:00 - -

Supporter timezone: Asia/Jerusalem (GMT+03:00)

Tagged: 

This topic contains 0 reply, has 0 voices.

Last updated by Itamar 2 weeks, 6 days ago.

Assisted by: Itamar.

Author Posts
April 7, 2025 at 9:14 am

4xcubeL

Background of the issue:
I am working on a site under development and trying to make string translations using WPML. I follow these steps: scan the theme for strings, translate the strings into the desired languages, and initially, the translations work.

Symptoms:
The translations work initially, but the next day they stop working. This issue repeats every few days without any changes to the code, string, or page.

Questions:
Why do my string translations stop working the next day?
How can I ensure that my string translations remain consistent over time?

April 7, 2025 at 12:09 pm
April 9, 2025 at 6:16 pm #16915567

Itamar
WPML Supporter since 02/2016

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+03:00)

Hi,

I'll continue to help you with this issue.

I installed the All-in-One WP Migration and Backup plugin on your site and created a copy of your site. I then deleted the All-in-One WP Migration and Backup plugin.

We'll continue investigating this issue and get back to you when we have news.

I appreciate your patience.
Itamar.

April 10, 2025 at 4:00 pm #16919753

Itamar
WPML Supporter since 02/2016

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+03:00)

Hi,

This issue has been escalated to our second-tier supporters.
We'll keep you updated on any news regarding this issue.

Regards,
Itamar.

April 15, 2025 at 2:35 pm #16934678

Itamar
WPML Supporter since 02/2016

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+03:00)

Hi,

Our second-tier supporters have debugged this issue. The problem is that placeholders are being used in those strings. However, in this specific case, the placeholders seem redundant. They are being used to replace the placeholder with a static string (<br />) rather than something dynamic, so you should just update the PHP files to place the br tags directly where needed, e.g:

<?php echo _x('GROWTH <br/> & DEVELOPMENT', 'Careers content 2', 'fxc'); ?>

...

<?php echo _x('FAMILY <br/> & CARE', 'Careers content 2', 'fxc'); ?>

Please let us know if this helps.

Also, please let us know if there are other strings with this issue where such a placeholder is not involved however, the problem still occurs - translations disappear after a day.

Regards,
Itamar.

The topic ‘[Closed] Strings Translations’ is closed to new replies.