About the translation issue.

Home Forums Legacy Support Support queries Translation issues About the translation issue.

Viewing 15 posts - 1 through 15 (of 17 total)
  • Author
    Posts
  • #41564
    skaye23
    Participant
    Hi~ 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/cDfi1H14m2
    #42343
    Anshuman Sahu
    Keymaster
    I 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 .
    #42837
    skaye23
    Participant
    Hi~ 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>    
    skaye23
    Participant
    I 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:
    H.K. Latiyan
    Participant
    You 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;
    
    }
    #43453
    skaye23
    Participant
    Hi~ I add this code on wplms customizer plugin > wplms customizer.php. http://screencast-o-matic.com/watch/cDfFj01Cns But, the issue is still.. .    
    #43681
    Anshuman Sahu
    Keymaster
    There 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; }    
    #44189
    skaye23
    Participant
    I added the new code, but the issue is still... http://screencast-o-matic.com/watch/cDfrDk1Es7
    #44355
    Anshuman Sahu
    Keymaster
    Try changing the priority :

    add_filter('wplms_site_link','custom_return_home_url',999);

    function custom_return_home_url($link){

    $link = home_url();

    return $link;

     

    }

    #44674
    skaye23
    Participant
    The 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..
    #45557
    Anshuman Sahu
    Keymaster
    The 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 .
    #45749
    skaye23
    Participant
    Hi~ 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.
    #46609
    Anshuman Sahu
    Keymaster
    I 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 .
    #47189
    skaye23
    Participant
    I contacted wpml and they told me to fix the header. php. S0, we are fixing it
    #47693
    skaye23
    Participant
    Hi~ 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  
Viewing 15 posts - 1 through 15 (of 17 total)
  • The topic ‘About the translation issue.’ is closed to new replies.