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 replies, has 0 voices.
Last updated by sigitaO 4 hours, 55 minutes ago.
Assisted by: Bruno Kos.
Author | Posts |
---|---|
February 14, 2025 at 1:19 pm | |
sigitaO |
Background of the issue: Symptoms: Questions: |
February 14, 2025 at 2:07 pm | |
February 14, 2025 at 2:12 pm #16706788 | |
Bruno Kos Supporter
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 |
Hello, thanks for the solution. |
February 17, 2025 at 6:15 am #16711674 | |
Bruno Kos Supporter
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 |
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 Supporter
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 |
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 |
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 Supporter
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 19, 2025 at 3:24 pm | |