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 |
|---|---|---|---|---|---|---|
| - | 8:00 – 13:00 | 9:00 – 13:00 | 9:00 – 13:00 | 8:00 – 12:00 | 8:00 – 12:00 | - |
| - | 14:00 – 17:00 | 14:00 – 18:00 | 14:00 – 18:00 | 13:00 – 17:00 | 13:00 – 17:00 | - |
Supporter timezone: Europe/Zagreb (GMT+01:00)
Tagged: Compatibility
This topic contains 0 reply, has 0 voices.
Last updated by Bruno Kos 9 months, 3 weeks ago.
Assisted by: Bruno Kos.
| Author | Posts |
|---|---|
| February 14, 2025 at 1:19 pm | |
|
sigitaO Site owner |
Background of the issue: Symptoms: Questions: |
| February 14, 2025 at 2:12 pm #16706788 | |
|
Bruno Kos WPML Supporter since 12/2018
Languages: English (English ) German (Deutsch ) French (Français ) Timezone: Europe/Zagreb (GMT+01:00) |
Can you please try the following: 1. Open the file: .../wp-content/plugins/woocommerce-product-tabs/src/Product_Tabs.php. $wpt_tabs[ $key ]['title'] = esc_attr( $prd->post_title ); With: $wpt_tabs[ $key ]['title'] = esc_attr( $prd->post_title );
// WPML Workaround for compsupp-7241
if ( class_exists('Sitepress') ) {
$string = $wpt_tabs[ $key ]['title'];
$textdomain = 'WordPress';
$string_name = 'WPML Workaround : '.substr($string, 0, 20);
$wpml_default_lang = apply_filters('wpml_default_language', NULL );
$wpml_current_lang = apply_filters( 'wpml_current_language', NULL );
if ($wpml_default_lang == $wpml_current_lang ) {
do_action( 'wpml_register_single_string', $textdomain, $string_name, $string );
}
// Apply the translation to the string
$string = apply_filters('wpml_translate_single_string', $string , $textdomain, $string_name);
$wpt_tabs[ $key ]['title'] = $string; // Replace the title
}
3. Visit the front-end to register the new string. Does it work? |
| February 14, 2025 at 3:20 pm #16707057 | |
|
sigitaO Site owner |
Hello, thanks for the solution. |
| February 17, 2025 at 6:15 am #16711674 | |
|
Bruno Kos WPML Supporter since 12/2018
Languages: English (English ) German (Deutsch ) French (Français ) Timezone: Europe/Zagreb (GMT+01:00) |
To access the page code and make the necessary changes, you’ll need the following: 1. FTP Access: You’ll need FTP (File Transfer Protocol) access to the website’s files. Please gather the following details from your hosting provider: - Host/Server Address: (e.g., hidden link) You can use an FTP client like hidden link) to connect to your server. 2. Alternative: Hosting Control Panel (cPanel, Plesk, etc.) If you don’t have FTP access, you can access the files through your hosting control panel. The steps generally look like this: - Log in to your hosting provider's dashboard. 3. Making the Change - Open the file and locate line 58. After that, visit the front end of the site to register the new string and then go to WPML > String Translation to translate it. Let me know if still having issues with this process! |
| February 18, 2025 at 10:38 pm #16721204 | |
|
sigitaO Site owner |
Thank you! I found the file. Do I paste that code only in line 60, in the highlighted box? |
| February 19, 2025 at 7:56 am #16722475 | |
|
Bruno Kos WPML Supporter since 12/2018
Languages: English (English ) German (Deutsch ) French (Français ) Timezone: Europe/Zagreb (GMT+01:00) |
That's correct. |
| February 19, 2025 at 2:21 pm #16725154 | |
|
sigitaO Site owner |
Hello, I added the code and tried to translate the strings again but unfortunately it's not working |
| February 19, 2025 at 2:22 pm #16725160 | |
|
sigitaO Site owner |
I noticed that the tabs have now disappeared from the translated pages, but they're present in EN |
| February 19, 2025 at 2:39 pm #16725294 | |
|
Bruno Kos WPML Supporter since 12/2018
Languages: English (English ) German (Deutsch ) French (Français ) Timezone: Europe/Zagreb (GMT+01:00) |
Would you be willing to provide me with WordPress and FTP credentials so I could investigate the issue directly? I marked your next reply as private so that you can safely add credentials. |
| February 20, 2025 at 6:32 am #16727348 | |
|
Bruno Kos WPML Supporter since 12/2018
Languages: English (English ) German (Deutsch ) French (Français ) Timezone: Europe/Zagreb (GMT+01:00) |
I just noticed that you have blog license: That's why you don't have the latest updates of our plugins, because String Translation which is required for this to work is not included. Can you go to https://wpml.org/account/ and upgrade the Blog license so we could update your plugins and continue checking this? |
| February 20, 2025 at 5:41 pm #16730937 | |
|
sigitaO Site owner |
I have been sent the client handoff link and I paid what was present in the link, which should've been Multilingual CMS, is it possible to change the subscription type? |
| February 20, 2025 at 5:44 pm #16730942 | |
|
sigitaO Site owner |
This is the conversation between the developer and WPML Support team, I paid the same amount indicated and I should receive the same functionalities. Is it possible to sort this out? |
| February 21, 2025 at 10:27 am #16733095 | |
|
Bruno Kos WPML Supporter since 12/2018
Languages: English (English ) German (Deutsch ) French (Français ) Timezone: Europe/Zagreb (GMT+01:00) |
These images talk about transferring the renewal. So this: Did you obtain your account through such renewal or you registered WPML on your own? Because you should be an end user then and have Multilingual CMS options if WPML account who sent you that have the same. Especially since blog users are unable to transfer licenses because they only can register one license/site. I see your account was registered on 2024-12-20. |
| February 21, 2025 at 11:45 am #16733378 | |
|
sigitaO Site owner |
Yes, I think the issue has been already escalated from the developer to support and they're looking into it, I will notify you once it's fixed and see if the issue persists |
| February 21, 2025 at 1:31 pm #16733806 | |
|
Bruno Kos WPML Supporter since 12/2018
Languages: English (English ) German (Deutsch ) French (Français ) Timezone: Europe/Zagreb (GMT+01:00) |
Ok, let me know as soon as you have any questions for me. |
The topic ‘[Closed] Translation not working on Tabs in Product Page’ is closed to new replies.


