diff --git a/htdocs/core/class/translate.class.php b/htdocs/core/class/translate.class.php index 6b596dc3aa5d75f01ac2299806ab99f7f5e62a0d..4c4d1ad6e1063dd2318828f6afbbd22dd255b823 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 08afbc283f47c4669267375294211e8acb0b77d7..eb69364596fbe854d8de6d408a379e5d9e527b01 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 020d0aad63f8961bfb03e5fe444593e0bd74351a..80db7aef08196b9327e35117705b92f030b15028 100644 --- a/htdocs/societe/soc.php +++ b/htdocs/societe/soc.php @@ -2239,7 +2239,7 @@ else print '<table width="100%" class="nobordernopadding"><tr><td>'; print $langs->trans('IncotermLabel'); print '<td><td align="right">'; - if ($user->rights->societe->creer) print '<a href="'.DOL_URL_ROOT.'/societe/soc.php?socid='.$object->id.'&action=editincoterm">'.img_edit().'</a>'; + if ($user->rights->societe->creer) print '<a href="'.DOL_URL_ROOT.'/societe/soc.php?socid='.$object->id.'&action=editincoterm">'.img_edit('',1).'</a>'; else print ' '; print '</td></tr></table>'; print '</td>'; diff --git a/htdocs/societe/tpl/linesalesrepresentative.tpl.php b/htdocs/societe/tpl/linesalesrepresentative.tpl.php index fe2add787c4fe0bafbc8a5deb9ed9f24586f9645..0c3dd0656b810d25fa387aee6e4985be3b051ee4 100644 --- a/htdocs/societe/tpl/linesalesrepresentative.tpl.php +++ b/htdocs/societe/tpl/linesalesrepresentative.tpl.php @@ -5,7 +5,7 @@ print $langs->trans('SalesRepresentatives'); print '<td><td align="right">'; if ($user->rights->societe->creer && $user->rights->societe->client->voir) - print '<a href="'.DOL_URL_ROOT.'/societe/commerciaux.php?socid='.$object->id.'">'.img_edit().'</a>'; + print '<a href="'.DOL_URL_ROOT.'/societe/commerciaux.php?socid='.$object->id.'">'.img_edit('',1).'</a>'; else print ' '; print '</td></tr></table>'; diff --git a/htdocs/theme/eldy/style.css.php b/htdocs/theme/eldy/style.css.php index 5e354590eb83ce75af3d734a12a72ed133638b50..3cce27c4a2ae8c0eb077bbcd8fbea5dc32f02d4f 100644 --- a/htdocs/theme/eldy/style.css.php +++ b/htdocs/theme/eldy/style.css.php @@ -1244,10 +1244,10 @@ div.menu_titre { .mainmenuaspan { <?php if ($disableimages) { ?> - padding-left: 4px; - padding-right: 2px; + padding-<?php print $left; ?>: 4px; + padding-<?php print $right; ?>: 2px; <?php } else { ?> - padding-right: 4px; + padding-<?php print $right; ?>: 4px; <?php } ?> } @@ -2056,7 +2056,7 @@ a.tabTitle { font-family: <?php print $fontlist ?>; font-weight: normal !important; padding: 4px 6px 2px 0px; - margin-right: 10px; + margin-<?php print $right; ?>: 10px; text-decoration: none; white-space: nowrap; } diff --git a/htdocs/theme/md/style.css.php b/htdocs/theme/md/style.css.php index 2698b258e65077c9827e14449d387fe05c6db240..4ab240af4d6ab7e6569ea458cf0c98d2a10cd1b3 100644 --- a/htdocs/theme/md/style.css.php +++ b/htdocs/theme/md/style.css.php @@ -1254,10 +1254,10 @@ div.menu_titre { .mainmenuaspan { <?php if ($disableimages) { ?> - padding-left: 4px; - padding-right: 2px; + padding-<?php print $left; ?>: 4px; + padding-<?php print $right; ?>: 2px; <?php } else { ?> - padding-right: 4px; + padding-<?php print $right; ?>: 4px; <?php } ?> } @@ -2042,7 +2042,7 @@ a.tabTitle { /* background: #657090; color: white;*/ color:rgba(0,0,0,.5); - margin-right:10px; + margin-<?php print $right; ?>: 10px; text-shadow:1px 1px 1px #ffffff; font-family: <?php print $fontlist ?>; font-weight: normal;