+ Reply to Thread
Results 1 to 4 of 4

Thread: error after upgrading to 4.5.1 please help

  1. #1

    error after upgrading to 4.5.1 please help

    after upgrading there are strange thing happens when you open the website it redirect you to the English version and iam sure that i made Arabic version the default now i just disabled the English to make my visitors able to see the arabic version

    could you help?

    Code:
    Only registered members can view the code.
    Last edited by Mahmoud Khedr; August 5, 2016 at 08:00 PM.

  2. #2
    Quote Originally Posted by Mahmoud Khedr View Post
    after upgrading there are strange thing happens when you open the website it redirect you to the English version and iam sure that i made Arabic version the default now i just disabled the English to make my visitors able to see the arabic version

    could you help?

    Code:
    Only registered members can view the code.
    I confirmed that this happen in my 4.5 version. If you clear browse cache and visit the site you get redirect to en version. www.yourdomain.com/en/ even though you set your country language as default

  3. #3
    Junior Member
    Join Date
    May 2016
    Posts
    29
    in 4.5.1 you can changed this action with easy trick

    in includes/classes/rllang.php


    change line 414 with your lang code
    for example:

    original code: $home_url .= $redirect_lang . '/';

    you change it with your lang code : for persian >>> $home_url .= 'ir/';

    for arabic >>> $home_url .= 'ar/';


    and in first visit your site redirected to www.site.com/ar and then set language cookie to arabic for next visits

  4. #4
    Quote Originally Posted by Amir Zenhari View Post
    in 4.5.1 you can changed this action with easy trick

    in includes/classes/rllang.php


    change line 414 with your lang code
    for example:

    original code: $home_url .= $redirect_lang . '/';

    you change it with your lang code : for persian >>> $home_url .= 'ir/';

    for arabic >>> $home_url .= 'ar/';


    and in first visit your site redirected to www.site.com/ar and then set language cookie to arabic for next visits
    thank you it works but we still need the script developers to solve this for all of the script users thanks again

+ Reply to Thread