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.

Tagged: 

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,
I need help with translation of Serbian website...i cant find any strings in Serbian so i can translate it to english, and they are not using any special caracters?

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:
https://developer.wordpress.org/reference/hooks/gettext/
https://wpml.org/documentation/support/translating-the-theme-you-created/

Thank you

share it string.png
February 15, 2023 at 11:16 am #13039215
sreckoA

Norman sorry,
When you read the post and scroll down, in the upper left corner there is sticky menu saying "Čitate" which means currently reading...when i try to translate it to english he say its "Čitate" in English and asking me to edit it for Serbian...In Serbian its "Čitate", it should be other way around??? Please help

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
Also same is for Related Posts in every post in the bottom of posts, that is "povezani postovi"
in serbian, and he sees them as english translation...??? Please help!

prtscrn.jpg
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:
https://wpml.org/forums/topic/wrong-source-language-is-assigned-to-the-strings/

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.