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

Last updated by giladA 5 months, 2 weeks ago.

Assigned support staff: Noman.

Author Posts
April 30, 2019 at 8:06 am #3709025

giladA

Hi, i had a loco plugin and now i want everything in a one place. I'm trying to translate some strings with wpml but it doesn't works.

For example i want to translate "use code" at the cart page.
hidden link

April 30, 2019 at 9:07 am #3709803

Noman
Supporter

Languages: English (English )

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

Hi,

Thank you for contacting WPML Support. Please try to re-save the translation:

1. Go to WPML >> String Translation >> Search and Open your translated text >> delete the translation >> Save.

2. Then again go to: String Translation >> Re-add your translated text >> and re-save. Make sure that "Translation is complete" checkbox is selected.

3. Please delete all sorts of caches on your site / server cache if any / plugin cache / CDN cache (if any), clear browser cache and then see if it resolves the issue afterwards. You can also disable cache plugin temporary while you update this string.

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

Thank you

May 1, 2019 at 1:51 pm #3718429

giladA

the problem is that he's don't find this strings. for example "USE CODE"

May 2, 2019 at 9:56 am #3723521

Noman
Supporter

Languages: English (English )

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

Hi,

To further debug this issue, 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 which means only you and I have access to it.

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

✙ I would additionally need your permission to de-activate and re-activate Plugins and the Theme, and to change configurations on the site. This is also a reason the backup is really important.

Thank you

May 5, 2019 at 11:27 am #3742451

Noman
Supporter

Languages: English (English )

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

Hi,

Thanks for login details. I have fixed this issue by doing below steps:

- I have opened functions.php file of your child theme and wrapped the string in the gettext functions _e() with a text domain like 'themedomain’ as follows:

<?php _e('USE CODE', 'themedomain'); ?>

- Then scanned the child theme from WPML >> Theme and plugins localization section.
- Now string is available for translation and you can add translation from WPML >> String Translation.

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

Thank you

May 5, 2019 at 1:36 pm #3742807
giladA

Yes it works. but how i'm translate the "size"? i can't find it too. see screenshot
hidden link

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

https://wpml.org/forums/topic/how-to-translate-size-string/

May 5, 2019 at 1:53 pm #3742915

Noman
Supporter

Languages: English (English )

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

Hi,

Glad to see your "use code" translation issue is resolved. To handle new question/issue, I have created a new ticket since this is a separate issue. Here is the link to the new ticket: https://wpml.org/forums/topic/how-to-translate-size-string/

Thank you for your cooperation and patience.

May 6, 2019 at 4:31 pm #3751151

giladA

My issue is resolved now. Thank you!