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.
Tagged: Exception
This topic contains 5 replies, has 2 voices.
Last updated by sreckoA 1 year, 11 months ago.
Assisted by: Noman.
Author | Posts |
---|---|
February 15, 2023 at 8:52 am | |
sreckoA |
Hi, |
February 15, 2023 at 10:43 am | |
February 15, 2023 at 11:09 am #13039141 | |
Noman Supporter
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
I’m able to find the “Podeli” string in theme files and it was not wrapped in gettext function that is necessary to make the string translatable. So I’ve followed the below steps in order to make that string translatable: 1. Replaced the below code: <?php if ( class_exists( 'GavinoCore_Social_Share_Shortcode' ) ) { ?> <div class="qodef-e-info-item qodef-info--social-share"> <?php $params = array(); $params['layout'] = 'dropdown'; $params['dropdown_behavior'] = 'right'; $params['title'] = 'Podeli'; echo GavinoCore_Social_Share_Shortcode::call_shortcode( $params ); ?> </div> <?php } ?> With: <?php if ( class_exists( 'GavinoCore_Social_Share_Shortcode' ) ) { ?> <div class="qodef-e-info-item qodef-info--social-share"> <?php $params = array(); $params['layout'] = 'dropdown'; $params['dropdown_behavior'] = 'right'; $params['title'] = __('Podeli', 'themedomain'); echo GavinoCore_Social_Share_Shortcode::call_shortcode( $params ); ?> </div> <?php } ?> From /themes/gavino/inc/blog/templates/parts/post-info/social-share.php 2. Scan the theme from WPML >> Theme and plugins localization page. 3. Search for that string and added the translation and it seems to be working correctly for me. Could you please check and confirm? Please let the theme author know about this issue so that they can update their theme files. Here are docs for more details: Thank you |
February 15, 2023 at 11:16 am #13039215 | |
sreckoA |
Norman sorry, New threads created by Noman and linked to this one are listed below: https://wpml.org/forums/topic/wrong-source-language-is-assigned-to-the-strings/ |
February 15, 2023 at 12:35 pm #13040019 | |
sreckoA |
print screen |
February 16, 2023 at 7:17 am #13045747 | |
Noman Supporter
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
Regarding the wrong source language issue in string translation page, it's a different issue and will be handled separately as per our support policy. I have created a new ticket for this: If your current ticket issue is resolved, you may mark this ticket as resolved and we will continue to work on the new ticket. Thank you for your cooperation and patience. |