How to make RTL Dirction in Free Version

Questions and answers about change of functions, design, hosting etc.

Moderators: Koduc, Xpycm

Forum rules
Pay attention! Forum is not a means for guaranteed support of clients and users. An answer as well as a quick answer is not supposed on the forum. We post messages as soon as possible.

The message limit on the forum is 3 messages per day.
If you want to say "thank you" then use the function "Give good reputation point", which is a green icon "plus" under the nickname of the person, who answered the message.

How to make RTL Dirction in Free Version

Postby gorolan » 17 Feb 2022, 11:37

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
gorolan
Stranger
 
Posts: 2
Joined: 17 Feb 2022, 11:25
Reputation point: 0

Re: How to make RTL Dirction in Free Version

Postby andipas » 17 Feb 2022, 17:16

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;
    }
 
andipas
Web Developer
Web Developer
 
Posts: 156
Joined: 28 Dec 2011, 22:37
Reputation point: 1

Re: How to make RTL Dirction in Free Version

Postby gorolan » 18 Feb 2022, 13:20

Thank you very much

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

Regards
gorolan
Stranger
 
Posts: 2
Joined: 17 Feb 2022, 11:25
Reputation point: 0


Return to Questions and help for changes

Who is online

Users browsing this forum: No registered users and 12 guests

cron