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
9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 - -
- - - - - - -

Supporter timezone: Africa/Cairo (GMT+03:00)

This topic contains 4 replies, has 2 voices.

Last updated by Osama Mersal 8 months, 3 weeks ago.

Assisted by: Osama Mersal.

Author Posts
October 12, 2024 at 12:56 am #16281462

antonT-13

Background of the issue:
I am trying to translate strings via string translation in WPML. The strings include tags like
, which are necessary for me. I attempted to translate items such as 🪙 Mora ×20000
📜 Hero's Wit ×3
🌸 Brilliant Chrysanthemum ×5
🎁 Prithiva Topaz Sliver ×3.

Symptoms:
The strings are not translated as expected because of tags. Instead of seeing the translated text, I still see the original text with tags.
You can check it even in Deepl, you need to ignore such tags: hidden link

Questions:
Why are the strings not translating despite using string translation?
How can I ensure that tags like
do not interfere with translation?
Can you ignore tags in translation?

October 13, 2024 at 11:00 am #16283042

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

Thanks for contacting WPML forums support. I'll be glad to help you today.

Please let me know where to check this string on the front end.

I would need to look closely at your site, so I would need to request temporary access (WP-Admin and FTP)
Preferably to a test site where the problem has been replicated.

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

❌ Please backup your database and website ❌

✙ I need your permission to deactivate and reactivate the plugins and themes and change site configurations. This is also why the backup is critical.

✙ I also need your permission to take a local copy of your site to debug the issue without affecting your live site.

Best regards,
Osama

October 15, 2024 at 11:53 pm #16292833

antonT-13

I don't want to give access to my site. I just tell you that there are bugs in string translation and you can check it by yourself in wpml - string translation. Use text that I mentioned or something similar with br tags.

October 15, 2024 at 11:55 pm #16292834

antonT-13

🪙 Mora ×20000<br /> 📜 Hero's Wit ×3<br /> 🌸 Brilliant Chrysanthemum ×5<br /> 🎁 Prithiva Topaz Sliver ×3

October 16, 2024 at 7:53 am #16293836

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

I created a sandbox site and added the following string in the Twenty Twenty-One: hidden link">single.php file.

echo sprintf( '<p>%1$s<br>%2$s<br>%3$ss<br>%4$s</p>',
__( '🪙 Mora ×20000.', 'wpmltest' ),
__( '📜 Heros Wit ×3', 'wpmltest' ),
__( '🌸 Brilliant Chrysanthemum ×5', 'wpmltest' ),
__( '🎁 Prithiva Topaz Sliver ×3', 'wpmltest' )
);

After that, I scanned the theme via WPML-> Theme and Plugin Localization to read the strings.

The sandbox site login URL:hidden link

Please translate the strings in hidden link">String Translatoin, and let me know if they work correctly.

If you added the string on your site differently, please replicate the issue on the sandbox site and let me know how to reproduce it.

Best regards,
Osama

The topic ‘[Closed] Strings are not translated because of tags as , but tags are necessary for me.’ is closed to new replies.