'ar_DZ', 'Arabic (Bahrain)' => 'ar_BH', 'Arabic (Egypt)' => 'ar_EG', 'Arabic (Iraq)' => 'ar_IQ', 'Arabic (Jordan)' => 'ar_JO', 'Arabic (Kuwait)' => 'ar_KW', 'Arabic (Lebanon)' => 'ar_LB', 'Arabic (Libya)' => 'ar_LY', 'Arabic (Morocco)' => 'ar_MA', 'Arabic (Oman)' => 'ar_OM', 'Arabic (Qatar)' => 'ar_QA', 'Arabic (Saudi Arabia)' => 'ar_SA', 'Arabic (Sudan)' => 'ar_SD', 'Arabic (Syria)' => 'ar_SY', 'Arabic (Tunisia)' => 'ar_TN', 'Arabic (United Arab Emirates)' => 'ar_AE', 'Arabic (Yemen)' => 'ar_YE', 'Arabic' => 'ar', 'Farsi (Iran)' => 'fa_IR', 'Hebrew (Israel)' => 'iw_IL', 'Hebrew' => 'iw', ); /** * * html dir method * * @return string */ public function htmlDir() { $locale = $this->getTranslate()->getLocale(); if (!empty($locale)) { if (in_array($locale, $this->_rtlLocales)) { return self::RTL; } } return self::LTR; } }