We have just released WPML 4.3.3. Before reporting issues please make sure to update - this version resolves all known issues with the major WPML 4.3 release

Hi, Amit here, I am the WPML Support Manager, our current ticket queue is high, update your WPML plugins and make sure you meet the minimal requirements for running WPML before reporting an issue please - many tickets are resolved doing that

Please look at our updated list of Known Issues and you can also use our support search to find helpful information and of course review our documentation before opening a ticket.

If you do need to open a ticket please make sure to provide us with all the needed information as described in this page

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 thread is resolved. Here is a description of the problem and solution.

Problem: I am trying to Translate the titles of tabs in WooCommerce product page.

Solution: Solution here: https://wpml.org/forums/topic/tab-title-translation-not-available/#post-2788386

This topic contains 7 replies, has 2 voices.

Last updated by dimitarK-2 1 year, 1 month ago.

Assigned support staff: Noman.

Author Posts
September 26, 2018 at 11:30 pm #2768859

dimitarK-2

I am trying to: Translate the titles of tabs in WooCommerce product page

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

I expected to see: A field for translation of the tab titles - Ingredients, How to use, Did you know

Instead, I got: No possibility for translation these tab titles.

September 27, 2018 at 11:45 pm #2771982

Noman
Supporter

Languages: English (English )

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

Hi,

Thank you for contacting WPML Support. You can translate WooCommerce tab titles using WPML >> String Translation >> Translate texts in admin screens option, see this doc (section: Translating strings in the wp_options table) https://wpml.org/documentation/getting-started-guide/string-translation/#admin_texts

1. On Translate texts in admin screens page, select the needed Tabs strings using checkboxes and click Apply button at the very bottom of the page.

2. Then go back to String Translation page and search the newly added strings for Tabs translation on that page and translate it and save. Please try this same solution mentioned here in more detail:
- https://wpml.org/forums/topic/description-tab-of-products-not-translatable/
- Screenshots: https://wpml.org/forums/topic/description-tab-of-products-not-translatable/page/2/#post-1320513

And if you are creating Custom Tabs using some other plugin, please try out the solution mentioned here:
https://wpml.org/forums/topic/custom-product-tabs-translation-with-wpml/

Thank you

October 2, 2018 at 8:24 am #2780666

dimitarK-2

Dear Noman,

Hello. After trying what you said, the issue is still there. Hence i would like to ask for your further assistance, and how we would proceed with it. May i suggest you take a look at it?

I am also having an issue with the certifications, they aren't showing.

Thank you in advance.

October 2, 2018 at 6:21 pm #2782473

Noman
Supporter

Languages: English (English )

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

Hi,

Yes I can check it. 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

October 4, 2018 at 5:30 pm #2788386

Noman
Supporter

Languages: English (English )

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

Hi,

I have thoroughly debug your site and this issue, those tab titles are coming from your theme functions.php file as you can see in attached screenshot.

You need to wrap the tab title string in the gettext functions __() with a text domain like 'themedomain’. Could you please replace following code:

wc_utils()->add_tab__if_not_empty( 'ingredienti', 'Ingredients', 'winnis__product_tab_ingredienti', 21 );
			wc_utils()->add_tab__if_not_empty( 'mododuso', 'How to use', 'winnis__product_tab_mododuso', 22 );
			wc_utils()->add_tab__if_not_empty( 'curiosita', 'Did you know?', 'winnis__product_tab_curiosita', 23 );

with:

$ingredienti_title = __('Ingredients', 'themedomain');
$mododuso_title = __('How to use', 'themedomain');
$curiosita_title = __('Did you know?', 'themedomain');

wc_utils()->add_tab__if_not_empty( 'ingredienti', $ingredienti_title, 'winnis__product_tab_ingredienti', 21 );
wc_utils()->add_tab__if_not_empty( 'mododuso', $mododuso_title, 'winnis__product_tab_mododuso', 22 );
wc_utils()->add_tab__if_not_empty( 'curiosita', $curiosita_title, 'winnis__product_tab_curiosita', 23 );

Then, scan the theme again in WPML >> Theme and plugins localization and translate this string under WPML >> String Translation

Thank you

October 5, 2018 at 12:38 pm #2790709
dimitarK-2

Dear Noman,

May i ask that you apply these changes, since i am not technically proficient enough to do so myself? Thank you in advance.

And can you also check why the certifications are not showing? Right below the product description in the english version, there are certifications, that are not showing when i switch to bulgarian.

Thank you again.

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

https://wpml.org/forums/topic/certifications-images-not-showing-on-translation/

October 5, 2018 at 2:59 pm #2791154

Noman
Supporter

Languages: English (English )

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

Hello,

I have logged in to your site to apply those changes but I see you have already implemented those to your site and its also working fine on your site frontend as you can see in attached screenshots.

For certifications images issue, I have created a new ticket for this since this is a separate issue. Here is the link to the new ticket:
https://wpml.org/forums/topic/certifications-images-not-showing-on-translation/

You can mark this current ticket as resolved and we will continue to work on the new ticket. Thank you

October 9, 2018 at 1:13 pm #2800101

dimitarK-2

My issue is resolved now. Thank you!