PKPLocale::getLocaleDirection PHP Method

getLocaleDirection() static public method

A locale can specify a reading direction with the direction attribute. If no direction is specified, defaults to ltr (left-to-right). The only other value that is expected is rtl. This value is used in HTML and CSS markup to present a right-to-left layout.
static public getLocaleDirection ( $locale ) : string
$locale string
return string
    static function getLocaleDirection($locale)
    {
        $contents =& AppLocale::_getAllLocalesCacheContent();
        if (isset($contents[$locale]['direction'])) {
            return $contents[$locale]['direction'];
        }
        return 'ltr';
    }