Home › Forums › WoodMart support forum › Translation issues
Translation issues
- This topic has 15 replies, 2 voices, and was last updated 4 years, 9 months ago by Aizaz Imtiaz Awan.
-
AuthorPosts
-
March 10, 2020 at 12:26 pm #179033
IUWParticipantHello, I have some translation issues in a multilanguage website. I’m using Loco Translate and Polylang:
1. When I go to the Wishlist page from a non english language (english is the main language), always shows Wishlist page english version.
2. I can’t translate Cookies text popup. I tried creating several HTML blocks, translating the string on Loco and on Plolylang. Text always shows in english.
3. Same thing with “Additional Tab title” and “Additional Tab content” from Theme Settings >> Product page >> Tabs
Hope you can help me, thanks for your attention
March 10, 2020 at 1:37 pm #179054
Aizaz Imtiaz AwanKeymasterHello,
First of all thanks for choosing our Theme, we are glad to be you in the WoodMart WordPress family
:-)
.1) It takes English as the default language because all the themes and plugins default language is English. That’s why it’s behaving like that.
2 & 3) To translate the strings you need to use the loco translate WordPress plugin that is compatible with our theme. Then you need to choose the correct path from Dashboard >> Loco Translate.
OR
You can watch the video on how to change the strings using loco translate.
https://www.youtube.com/watch?v=D3NsDdMzslsBest Regards.
March 10, 2020 at 4:57 pm #179088
IUWParticipant1. Sorry, I don’t understand your answer. How we could fix the issue I explained?
2 and 3. As I said first, we already translate the strings using Loco translate and the issue is that is not working for these specific texts.
Thanks
March 11, 2020 at 7:37 am #179184
Aizaz Imtiaz AwanKeymasterHello,
1) Please make sure that you have translated the Wishlist’s text using the correct path in order to make it work fine.
2) You can change the cookie law info text from Theme Settings >> Shop >> Cookie Law info.
Screenshot for Clarification: https://ibb.co/YZ7v710
3) Please provide with some relevant screenshots of the specific area which you want to translate to check it myself and help you out accordingly.
Best Regards.
March 11, 2020 at 8:55 am #179200
IUWParticipantHello,
1) Yes, we have three Wishlists pages, one for each language of our website. But no matter on which language you are navigating, when you go to Wishlist page you always get the english version. Please do a test yourself: go to the website, spanish version, and then click to Wishlist icon.
2) As I said, we have a multilanguage website. We need this text in three languages. And as I said, Loco Translate is not working for this string.
3) And again as I said, we are trying to get in three languages the “Additional Tab title” and “Additional Tab content” from Theme Settings >> Product page >> Tabs.
Providing screenshots.Thanks
March 11, 2020 at 12:06 pm #179270
Aizaz Imtiaz AwanKeymasterHello,
Can you please send me the WP admin login details of your site so I will check and solve the issue on your site.
Best Regards.
March 11, 2020 at 12:11 pm #179274
IUWParticipantOk, thanks.
March 11, 2020 at 1:20 pm #179286
Aizaz Imtiaz AwanKeymasterHello,
This issue is related to the Polylang setting. Please ask the plugin author support to check and solve the issue and ask them why the page always load in English languages.
Best Regards.
March 11, 2020 at 3:33 pm #179330
IUWParticipantSo, it’s not possible to get it with Loco? None of three points I asked for?
Thanks
March 12, 2020 at 7:23 am #179454
Aizaz Imtiaz AwanKeymasterHello,
No, multi languages pages are not possible with Loco translate plugin. It is only possible with Polylang which you have already used on your site and translated the pages in the Multi Languages so it is better to ask the plugin support for this issue that why the Wishlist page always open in the English language.
Best Regards.
March 12, 2020 at 7:31 am #179456
IUWParticipantOk thanks, I will. What about points 2 and 3? Those are strings.
March 12, 2020 at 8:07 am #179468
Aizaz Imtiaz AwanKeymasterHello,
2 & 3 Yes, these are also the custom field strings so please ask them how to add these custom text field strings in the Polylang string translation they will guide you properly.
Best Regards.
March 12, 2020 at 10:56 am #179524
IUWParticipantAllright, if it helps, in order to fix the Wishlist issue with Polylang you have to include the next code on “Wishlist helper functions” page:
`function woodmart_get_whishlist_page_url() {
$page_id = woodmart_get_opt( ‘wishlist_page’ );if ( defined( ‘ICL_SITEPRESS_VERSION’ ) && function_exists( ‘wpml_object_id_filter’ ) ) {
$page_id = wpml_object_id_filter( $page_id, ‘page’, true );
}//START ADDED CODE
if ( defined( ‘ICL_SITEPRESS_VERSION’ ) && function_exists(‘pll_register_string’)){
$page_id= pll_get_post($page_id);
}//END ADDED CODEreturn get_permalink( $page_id );
}
}`For Cookies text we choose another plugin, and for Additional Tab Content and Additional Tab Title we are not able to find the source code we should edit. We will appreciate if you can tell us where is it in the theme folder structure.
Thanks
March 12, 2020 at 11:34 am #179533
Aizaz Imtiaz AwanKeymasterHello,
You can find the source code here wp-content/themes/woodmart/inc/admin/redux/settings/product-page.php:506 and inc/admin/settings/product.php:859
Best Regards.
March 12, 2020 at 12:30 pm #179551
IUWParticipantThat was helpful, thank you. We registered two more additional tabs and we are filtering at “additional tab” function call depending on current language.
So everything is fixed now, thanks for your attention.
March 12, 2020 at 12:31 pm #179552
Aizaz Imtiaz AwanKeymasterHello,
We are thrilled that you loved your experience with XTEMOS, We put customer experience and satisfaction as our priority, and your words reaffirms the hard work we put in every day. So thanks for your kind words and we look forward to seeing you again.
Let us know if there’s anything else we can do for you! You can always reach us at any time. We are always here to help you.
Have a wonderful day.
Topic Closed.
Best Regards. -
AuthorPosts
The topic ‘Translation issues’ is closed to new replies.
- You must be logged in to create new topics. Login / Register