Home › Forums › Legacy Support › Support queries › Translation issues › About the translation issue.
- This topic has 16 replies, 3 voices, and was last updated 8 years, 6 months ago by Anshuman Sahu.
-
AuthorPosts
-
April 7, 2016 at 6:51 am #41564skaye23ParticipantHi~ When I tried to change English into Korean language on front page, the page is moved to the blog post page in Korean. But It returned English as I clicked the front page. For better understanding, please refer to the screencast below http://screencast-o-matic.com/watch/cDfi1H14m2April 11, 2016 at 11:38 am #42343Anshuman SahuKeymasterI guess for this you need to contact the plugin that you are using for multiple languages as the dropdown and language version are handled by that plugin .April 13, 2016 at 9:53 pm #42837skaye23ParticipantHi~ I contacted the WPML plugin support team and inquired with the issue. I got the reply blow. I think it seems be the issue of the theme ----------------------------------------------------------------------------<br style="color: #606060; font-family: Tahoma, Verdana, Segoe, sans-serif; font-size: 14px; line-height: 21px; text-align: justify;" /><span style="color: #606060; font-family: Tahoma, Verdana, Segoe, sans-serif; font-size: 14px; line-height: 21px; text-align: justify;">Hi Sukhan,</span><br style="color: #606060; font-family: Tahoma, Verdana, Segoe, sans-serif; font-size: 14px; line-height: 21px; text-align: justify;" /><br style="color: #606060; font-family: Tahoma, Verdana, Segoe, sans-serif; font-size: 14px; line-height: 21px; text-align: justify;" /><span style="color: #606060; font-family: Tahoma, Verdana, Segoe, sans-serif; font-size: 14px; line-height: 21px; text-align: justify;">Thanks for the screencast.</span><br style="color: #606060; font-family: Tahoma, Verdana, Segoe, sans-serif; font-size: 14px; line-height: 21px; text-align: justify;" /><br style="color: #606060; font-family: Tahoma, Verdana, Segoe, sans-serif; font-size: 14px; line-height: 21px; text-align: justify;" /><span style="color: #606060; font-family: Tahoma, Verdana, Segoe, sans-serif; font-size: 14px; line-height: 21px; text-align: justify;">It seems that the link of your theme logo is using the WordPress function site_url(). The WPML does not filter the URL of this function. That is, this function ( site_url() ) always returns the default language.</span><br style="color: #606060; font-family: Tahoma, Verdana, Segoe, sans-serif; font-size: 14px; line-height: 21px; text-align: justify;" /><br style="color: #606060; font-family: Tahoma, Verdana, Segoe, sans-serif; font-size: 14px; line-height: 21px; text-align: justify;" /><span style="color: #606060; font-family: Tahoma, Verdana, Segoe, sans-serif; font-size: 14px; line-height: 21px; text-align: justify;">Please could you check in header.php file of your theme if the function used on the logo is site_url()? If so, please, could you switch to home_url() function and see if the problem persists?</span><br style="color: #606060; font-family: Tahoma, Verdana, Segoe, sans-serif; font-size: 14px; line-height: 21px; text-align: justify;" /><br style="color: #606060; font-family: Tahoma, Verdana, Segoe, sans-serif; font-size: 14px; line-height: 21px; text-align: justify;" /><span style="color: #606060; font-family: Tahoma, Verdana, Segoe, sans-serif; font-size: 14px; line-height: 21px; text-align: justify;">It looks like this:</span><br style="color: #606060; font-family: Tahoma, Verdana, Segoe, sans-serif; font-size: 14px; line-height: 21px; text-align: justify;" /><br style="color: #606060; font-family: Tahoma, Verdana, Segoe, sans-serif; font-size: 14px; line-height: 21px; text-align: justify;" /> <pre style="color: #606060; font-size: 14px; line-height: 21px; text-align: justify;">
">
<br style="color: #606060; font-family: Tahoma, Verdana, Segoe, sans-serif; font-size: 14px; line-height: 21px; text-align: justify;" /><br style="color: #606060; font-family: Tahoma, Verdana, Segoe, sans-serif; font-size: 14px; line-height: 21px; text-align: justify;" /><span style="color: #606060; font-family: Tahoma, Verdana, Segoe, sans-serif; font-size: 14px; line-height: 21px; text-align: justify;">Just replace with "home_url" function:</span>April 13, 2016 at 9:54 pm #42839skaye23ParticipantI insert it again below Hi Sukhan, Thanks for the screencast. It seems that the link of your theme logo is using the WordPress function site_url(). The WPML does not filter the URL of this function. That is, this function ( site_url() ) always returns the default language. Please could you check in header.php file of your theme if the function used on the logo is site_url()? If so, please, could you switch to home_url() function and see if the problem persists? It looks like this: "> Just replace with "home_url" function:April 16, 2016 at 10:15 am #43311H.K. LatiyanParticipantYou can use this code to use home_url. Paste this code in your wplms-customizer.php file present in your wplms customizer plugin.apply_filters('wplms_site_link','custom_return_home_url',9); function custom_return_home_url($link){ $link = home_url(); return $link; }
April 18, 2016 at 8:26 am #43453skaye23ParticipantHi~ I add this code on wplms customizer plugin > wplms customizer.php. http://screencast-o-matic.com/watch/cDfFj01Cns But, the issue is still.. .April 19, 2016 at 7:31 am #43681Anshuman SahuKeymasterThere is a little mistake in the above code . Please refer this code and remove the previous one . add_filter('wplms_site_link','custom_return_home_url',9); function custom_return_home_url($link){ $link = home_url(); return $link; }April 21, 2016 at 4:41 pm #44189skaye23ParticipantI added the new code, but the issue is still... http://screencast-o-matic.com/watch/cDfrDk1Es7April 22, 2016 at 2:23 pm #44355Anshuman SahuKeymasterTry changing the priority :add_filter('wplms_site_link','custom_return_home_url',999);
function custom_return_home_url($link){
$link = home_url();
return $link;
}
April 25, 2016 at 5:49 am #44674skaye23ParticipantThe issue is still being. You sent me three revised codes , but all of it could not apply to the issue... How much should I wait for it..April 29, 2016 at 2:37 pm #45557Anshuman SahuKeymasterThe code i have provided will make the site url to home_url() whereever the vibe_site_url() function is used in our code . If it is unable to work with then please contact the third party plugins support or author for this as we do not know how it is handling the languages version in site .May 1, 2016 at 12:09 pm #45749skaye23ParticipantHi~ Alex I had to wait for 5days for your reply, but you just told me that I have to contact the plugin support again. Your reply is irresponsible. I already contacted the plugin developer and got back to you with the message he left. I think you need to try to add the code in my site in person, I am not professional, so my job may not be suitable for the issue. Let me ask you why you did not show the positive attitude to solve the issue. I hope that you complete this issue. I already spent 3 weeks with this issue by following your guide. If you cannot do it, I need to contact another developer in your company. And I look forward to getting your reply in 24hours.May 5, 2016 at 10:42 am #46609Anshuman SahuKeymasterI have been trying to fix the issue at your site but left with no success. Tried may codes to fix that . I also found that you have not created the home page for other languages Japanese and Korean etc . We did as the plugin author asked us to do to use the home_url as home url and with this code we have already done that .`add_filter('wplms_site_link','custom_return_home_url',999);
function custom_return_home_url($link){
$link = home_url();
return $link;
}`
all i can say that i tired but was not able to resolve this . Without wpml help i guess this cannot be resolved .May 9, 2016 at 11:56 am #47189skaye23ParticipantI contacted wpml and they told me to fix the header. php. S0, we are fixing itMay 12, 2016 at 12:03 am #47693skaye23ParticipantHi~ Alex When I check the frontpage, the page is displayed on frontpage and posts page.. I do not understand why the posts page is connected to the home URL. I did not fix it... You can see the details below http://screencast-o-matic.com/watch/cDhX0K19mM -
AuthorPosts
- The topic ‘About the translation issue.’ is closed to new replies.