diff --git a/htdocs/core/class/translate.class.php b/htdocs/core/class/translate.class.php index 6b596dc3aa5..4c4d1ad6e10 100644 --- a/htdocs/core/class/translate.class.php +++ b/htdocs/core/class/translate.class.php @@ -29,17 +29,16 @@ */ class Translate { - var $dir; // Directories that contains /langs subdirectory + public $dir; // Directories that contains /langs subdirectory - var $defaultlang; // Current language for current user - var $direction = 'ltr'; // Left to right or Right to left - var $charset_output='UTF-8'; // Codage used by "trans" method outputs + public $defaultlang; // Current language for current user + public $charset_output='UTF-8'; // Codage used by "trans" method outputs - var $tab_translate=array(); // Array of all translations key=>value - private $_tab_loaded=array(); // Array to store result after loading each language file + public $tab_translate=array(); // Array of all translations key=>value + private $_tab_loaded=array(); // Array to store result after loading each language file - var $cache_labels=array(); // Cache for labels return by getLabelFromKey method - var $cache_currencies=array(); // Cache to store currency symbols + public $cache_labels=array(); // Cache for labels return by getLabelFromKey method + public $cache_currencies=array(); // Cache to store currency symbols diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php index 08afbc283f4..eb69364596f 100644 --- a/htdocs/core/lib/functions.lib.php +++ b/htdocs/core/lib/functions.lib.php @@ -2504,7 +2504,7 @@ function img_edit($titlealt = 'default', $float = 0, $other = '') if ($titlealt == 'default') $titlealt = $langs->trans('Modify'); - return img_picto($titlealt, 'edit.png', ($float ? 'style="float: right"' : $other)); + return img_picto($titlealt, 'edit.png', ($float ? 'style="float: '.($langs->tab_translate["DIRECTION"] == 'rtl'?'left':'right').'"' : $other)); } /** diff --git a/htdocs/societe/soc.php b/htdocs/societe/soc.php index 020d0aad63f..80db7aef081 100644 --- a/htdocs/societe/soc.php +++ b/htdocs/societe/soc.php @@ -2239,7 +2239,7 @@ else print '
| '; print $langs->trans('IncotermLabel'); print ' | '; - if ($user->rights->societe->creer) print ''.img_edit().''; + if ($user->rights->societe->creer) print ''.img_edit('',1).''; else print ' '; print ' |