diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/gallery/helpers/locales.php | 4 | ||||
-rw-r--r-- | modules/gallery/libraries/Gallery_I18n.php | 10 | ||||
-rw-r--r-- | modules/organize/css/organize.css | 4 |
3 files changed, 13 insertions, 5 deletions
diff --git a/modules/gallery/helpers/locales.php b/modules/gallery/helpers/locales.php index d209d414..4af750a3 100644 --- a/modules/gallery/helpers/locales.php +++ b/modules/gallery/helpers/locales.php @@ -131,9 +131,7 @@ class locales_Core { } static function is_rtl($locale=null) { - $locale or $locale = Gallery_I18n::instance()->locale(); - list ($language, $territory) = explode('_', $locale . "_"); - return in_array($language, array("he", "fa", "ar")); + return Gallery_I18n::instance()->is_rtl($locale); } /** diff --git a/modules/gallery/libraries/Gallery_I18n.php b/modules/gallery/libraries/Gallery_I18n.php index 4e0c1f82..1eacad5b 100644 --- a/modules/gallery/libraries/Gallery_I18n.php +++ b/modules/gallery/libraries/Gallery_I18n.php @@ -87,6 +87,16 @@ class Gallery_I18n_Core { return $this->_config['default_locale']; } + public function is_rtl($locale=null) { + $is_rtl = !empty($this->_config["force_rtl"]) and $this->_config["force_rtl"]; + if (empty($is_rtl)) { + $locale or $locale = $this->locale(); + list ($language, $territory) = explode('_', $locale . "_"); + $is_rtl = in_array($language, array("he", "fa", "ar")); + } + return $is_rtl; + } + /** * Translates a localizable message. * diff --git a/modules/organize/css/organize.css b/modules/organize/css/organize.css index 87f9e55b..7a8c3a5f 100644 --- a/modules/organize/css/organize.css +++ b/modules/organize/css/organize.css @@ -40,12 +40,12 @@ #g-organize-album-tree ul li { padding: 0 0 .2em 1.2em; - width: 100%; + width: 90%; } .rtl #g-organize-album-tree ul li { padding: 0 1.2em .2em 0; - width: 100%; + width: 90%; } .g-organize-album span { |