Page 1 of 1

How to make RTL Dirction in Free Version

PostPosted: 17 Feb 2022, 11:37
by gorolan
Hello

Your free version dirction is LTR , how to make it RTL
the description about his version is :
Theme 'Atlas' with RTL language support

Regards

Re: How to make RTL Dirction in Free Version

PostPosted: 17 Feb 2022, 17:16
by andipas
In file protected\modules\lang\models\Lang.php

change the code
Code: Select all

    
public static function isRTLLang($lang)
    {
        if (!isset(
self::$_activeLangsFull)) {
            
self::getActiveLangs();
        }

        if (isset(
self::$_activeLangsFull[$lang]['isRTL']) && self::$_activeLangsFull[$lang]['isRTL'])
            return 
true;

        return 
false;
    }
 


on that
Code: Select all

    
public static function isRTLLang($lang)
    {
        if (!isset(
self::$_activeLangsFull)) {
            
self::getActiveLangs();
        }

        if (isset(
self::$_activeLangsFull[$lang]['isRTL']) && self::$_activeLangsFull[$lang]['isRTL'])
            return 
true;

        return 
true;
    }
 

Re: How to make RTL Dirction in Free Version

PostPosted: 18 Feb 2022, 13:20
by gorolan
Thank you very much

Please where can i locate language file as .csv to make translation

Regards