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
- 6:00 – 12:00 8:00 – 12:00 6:00 – 12:00 8:00 – 12:00 6:00 – 12:00 -
- 13:00 – 15:00 13:00 – 17:00 13:00 – 15:00 13:00 – 17:00 13:00 – 15:00 -

Supporter timezone: America/Lima (GMT-05:00)

Tagged: 

This topic contains 12 replies, has 2 voices.

Last updated by Nicolas V. 1 year, 3 months ago.

Assisted by: Nicolas V..

Author Posts
September 25, 2023 at 1:45 pm #14459179

bluzzV

I am trying to: translate complianz with string translation. the text is translated

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

I expected to see: italian text

Instead, I got: german text

Screenshot 2023-09-25 at 15.31.45.png
Screenshot 2023-09-25 at 15.34.48.png
September 26, 2023 at 12:30 pm #14466899

Nicolas V.
Supporter

Languages: English (English ) French (Français )

Timezone: America/Lima (GMT-05:00)

Hello,

Welcome to the WPML support forum. Let's start by meeting WPML's minimum requirements. I've noticed your website has a low PHP memory allocation (40M). The minimum requirement for WPML is 128M but we recommend 256M:
- Access your server via FTP and open wp-config.php (in your WordPress root directory).
- Insert those lines just before /* That's all, stop editing! Happy blogging. */

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

More info: https://wpml.org/home/minimum-requirements/

--

Now regarding Complianz, if I remember well, this plugin let you customize those texts right?
- Go to "WPML > String Translation", scroll down and click the link "Translate texts in admin screens" at the left
- On the next screen search for your text. If it appears with "Not included in String Translation (last column)" do the following:
- Select the string (checkbox at the left) and click on "Add to String Translation"
- Go back to String Translation and translate it
- Clear your cache (if necessary)

If that's not the issue, then we can try to rescan your plugin.
- Go to "WPML > Theme and plugins localization"
- Select your plugin and click on "Scan selected plugins for strings"
- Wait for the operation to finish
- Go back to "String Translation" and translate it
- Clear your cache (if necessary)

Please let me know if one of those two options worked.

September 26, 2023 at 2:51 pm #14467941

bluzzV

Hi, I made the changes but is not working. Everything is translated but doesn't show!

September 26, 2023 at 9:42 pm #14469835

Nicolas V.
Supporter

Languages: English (English ) French (Français )

Timezone: America/Lima (GMT-05:00)

Hello,

Thanks for following the instructions. At this point, I'd like to request an admin access (wp-admin and FTP) – preferably to a test site where the issue has been replicated – so I can further investigate.

I will activate a private field for your next answer where you can provide that information safely (this field is only visible by you and the support team). Don't share your own admin account, create a new one that you will delete when we finish troubleshooting.

IMPORTANT: Before we proceed, please backup your site and database.

September 29, 2023 at 9:23 pm #14490113

Nicolas V.
Supporter

Languages: English (English ) French (Français )

Timezone: America/Lima (GMT-05:00)

Hey,

Thanks for the access. I spent quite some time on your site but couldn't find a solution:
- I tried to remove the string, rescan the plugin and retranslate the strings
- I tried a troubleshooting solution to regenerate .MO files (translation files)
- I installed WP File Manager and checked if /languages/wpml folder and files inside were created and updated
- I updated WPML and String Translation
- I noticed that if I activate the option "Auto register strings for translation" in String Translation, then I can see the translation on the frontend. So it seems that there is an issue that prevents to display the translation.
- I installed WP Adminer and checked the _icl_strings table but I couldn't find anything wrong

At this stage I have escalated your ticket to the second tier support. But they will probably need a database dump to test it locally.

Do you allow me to install "Duplicator" and take a package from your site? Once the problem is resolved I will delete the local site.
https://wpml.org/faq/provide-supporters-copy-site/

October 2, 2023 at 5:40 pm #14499743

Nicolas V.
Supporter

Languages: English (English ) French (Français )

Timezone: America/Lima (GMT-05:00)

Hi,

I see that you didn't provide the package yet. I can take that copy myself if you want. Just let me know and I will proceed.

Thanks,
Nico

October 3, 2023 at 7:50 am #14501963

bluzzV

Hi Nico, sorry for late reply. You can install Duplicator if you like.
Best,
Andrei

October 3, 2023 at 3:27 pm #14506723

Nicolas V.
Supporter

Languages: English (English ) French (Français )

Timezone: America/Lima (GMT-05:00)

Hi Andrei,

Unfortunately the site is not accessible anymore.

This site can’t be reached

Can you check on your end?

October 3, 2023 at 4:10 pm #14507301

bluzzV

Hi, I had some issues with the server. Now it works.

October 3, 2023 at 8:11 pm #14508569

Nicolas V.
Supporter

Languages: English (English ) French (Français )

Timezone: America/Lima (GMT-05:00)

Hey,

I created a Duplicator copy and forwarded it to the second tier support team. I'll get back to you as soon as I have their feedback.

Thanks for your patience,
Nico

October 5, 2023 at 1:26 pm #14520557

Nicolas V.
Supporter

Languages: English (English ) French (Français )

Timezone: America/Lima (GMT-05:00)

Hi,

We found a solution.
The textdomain 'complianz' was not loaded correctly. We added the following code at the end of your functions.php file:

// WPML: Workaround for compsupp-6994
add_action('after_setup_theme', 'wpml_compsupp6994_load_complianz_textdomain');

function wpml_compsupp6994_load_complianz_textdomain(){
    load_theme_textdomain( 'complianz' );
}
October 5, 2023 at 3:24 pm #14521735

bluzzV

Can you please give me more details please about this: "The textdomain 'complianz' was not loaded correctly"?
Thank you for your help!

October 5, 2023 at 8:44 pm #14523225

Nicolas V.
Supporter

Languages: English (English ) French (Français )

Timezone: America/Lima (GMT-05:00)

Hi,

Sure! As you can see on the screenshot attached the textdomain 'complianz' is not listed for this plugin even after rescanning it.

You can also use the plugin https://wordpress.org/plugins/debug-bar-localization/ to detect that issue.

The code snippet I provided force to load that specific domain.

Our compatibility team is monitoring this plugin to see if it was a bug specific to your site. If we have more similar cases they will contact the author of this plugin to improve the compatibility.

screenshot-2023.10.05-08_21_55.png

The topic ‘[Closed] complianz string translation doesn't work’ is closed to new replies.