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: Asia/Yerevan (GMT+04:00)

Tagged: 

This topic contains 5 replies, has 2 voices.

Last updated by Christopher Amirian 1 year, 7 months ago.

Assisted by: Christopher Amirian.

Author Posts
November 3, 2023 at 4:30 pm #14727293

Frank

I am trying to: translate hardcoded strings in a woocomerce site.

Link to a page where the issue can be seen: hidden link

I expected to see: my translation

Instead, I got: no translations

November 5, 2023 at 1:47 pm #14733103

Christopher Amirian
WPML Supporter since 07/2020

Languages: English (English )

Timezone: Asia/Yerevan (GMT+04:00)

Hi there,

First make sure that the hardcoded strings in the theme or plugin that they are, have the correct gettext function wrap as a standard WordPress string to be detectable by WPML.

For more information:

https://wpml.org/documentation/support/enabling-text-translation-for-themes-not-compatible-with-wpml/

https://wpml.org/documentation/support/translating-the-theme-you-created/

Then follow the steps below:

https://wpml.org/documentation/getting-started-guide/string-translation/finding-strings-that-dont-appear-on-the-string-translation-page/#enable-auto-register-strings

Thanks.

November 5, 2023 at 1:52 pm #14733119

Frank

Maybe there is a misunerstanding. I can see the strings, and I an translate them. But the translation stop showing up in the frontend after the two hours of automatic string registration passed by.

November 6, 2023 at 6:43 am #14734793

Christopher Amirian
WPML Supporter since 07/2020

Languages: English (English )

Timezone: Asia/Yerevan (GMT+04:00)

Hi there,

I see, please follow the steps below to see if it fixes the issue:

- IMPORTANT STEP! Create a backup of your website. Or better approach will be to test this on a copy/staging version of the website to avoid any disruption of a live website.
- Go to WordPress Dashboard > WPML > Support > Troubleshooting (link) Click the Generate MO files option which will give you a pop up and you can click the generate button.
- If there issue persists, please follow the workaround below:

https://wpml.org/errata/string-translations-are-not-visible-on-the-site-after-a-string-has-been-translated/

Thanks.

November 9, 2023 at 10:31 am #14764523

Frank

it says there is a problem and cannot generate MO files

Bildschirmfoto 2023-11-09 um 11.30.42.png
November 11, 2023 at 4:25 pm #14782537

Christopher Amirian
WPML Supporter since 07/2020

Languages: English (English )

Timezone: Asia/Yerevan (GMT+04:00)

Hi there,

Thanks, please contact your hosting service provider and ask them to make sure that the wp-content/languages/ folder and all sub folders of that folder have write permission.

So WPML can add files there. Then please repeat the steps I mentioned in the previous reply.

Thank you.

The topic ‘[Closed] When automatic string registration is disabled, the translations I did just disa’ is closed to new replies.