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.

This topic contains 3 replies, has 2 voices.

Last updated by Prosenjit Barman 1 year, 10 months ago.

Assisted by: Prosenjit Barman.

Author Posts
August 28, 2023 at 10:26 am #14299467

משרד קריאייטיב מיזם בע”מ שאער שילה

Hi
I am translating my site from Hebrew to English,
And I have a problem with yoset seo's breadcrumbs
On every single page of a post it shows like this:
1. The name of the post in English
2. The name of the category in English,
Only the "products" which is actually the name of the post type,
He presents in Hebrew
and does not translate it into English,
Also on the archive page of all the posts,
That it is called "all the products" he writes in Hebrew and not in English
How can this be changed?
I tried to search and couldn't find it, I would appreciate your help as soon as possible.
Thank you

August 29, 2023 at 5:36 am #14303853

Prosenjit Barman
WPML Supporter since 03/2023

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hello There,
Thanks for contacting WPML Support. I will try my best to assist you in this matter.

I have checked your site and found that the post type name is only not showing translated in the breadcrumb. Kindly try the steps mentioned below and check if that helps to solve the issue.

- Please go to "WPML > String Translation"
- Search for the Hebrew name that shows in the breadcrumb
- If that name appears in the result, add the English translation by clicking on the "+" icon below the English flag.

Please check this documentation to know more about translating strings: https://wpml.org/documentation/getting-started-guide/string-translation/

You can also look for that specific name within the Admin screen. If the name shows up in the results, register that string for translation and add the translation in the String Translation section.

Please check this documentation: https://wpml.org/documentation/getting-started-guide/string-translation/finding-strings-that-dont-appear-on-the-string-translation-page/#strings-arent-selected-for-translation

Please let me know if that helps or if you need further assistance in this matter. I will be happy to help.

Best Regards,
Prosenjit

August 30, 2023 at 11:31 am #14312873

משרד קריאייטיב מיזם בע”מ שאער שילה

Hey
Thank you.
I still can't find the string,
I think maybe because it's a post type that wasn't added by a plugin,
But by custom code, which I wrote under editing template files.
How can this be translated, that in Hebrew the post type will be products in Hebrew,
And in English it will appear in English?
tell me what you say
Thank you!

August 31, 2023 at 8:21 am #14318151

Prosenjit Barman
WPML Supporter since 03/2023

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hi There,
Thank you for the information.

If the custom post type is programmatically created, then you need to implement the translation support for the Post type so that it can appear translated in a multilingual environment. More specifically, you need to bind the name of the Custom post type within the getText function. The documentation below will help you to understand the process of implementing support for custom-coded items.

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

After adding the required support, please go to "WPML > Theme and Plugin localization" and scan the theme/plugin, where you have added the code for CPT.

Once it is done and everything is correctly configured, you can translate the name by going to the "WPML > String Translation" section.

I hope you can understand. Please note that providing support for the custom code is beyond the scope of our support. Therefore, if you need help with custom code, please consider hiring a developer specialized in implementing WPML support in custom-coded items, from here: https://wpml.org/contractors/

Please let me know if there is anything else if you need help.

Best Regards,
Prosenjit