Typo in translatable string - Purchable Total. Fixed.
[fa-stable.git] / includes / dashboard.inc
index 43eb29df02c6438eea9fd3d7512f5f3560b1075e..31e6518ba6b19b880f83f315a9a969a8c811195d 100644 (file)
 ***********************************************************************/
 //$colors = array('#008cc9','#4db625','#ef5500','#eef100','#05c6e6', '#5ee66a'); // Current in Use      
 $colors = Chart::$palette;
+$align = $_SESSION['language']->dir == 'rtl' ? 'right' : 'left';
 $style = "<style>
 div.square {
        display: inline-block;
        width: 200px;
        height:40px;
-       padding: 3px 0 0 5px;
+       padding: 3px 5px 0 5px;
        font-size:12px;
        font-weight:normal;
-       text-align: left;
+       text-align: $align;
        line-height: 1.2;
        color:#fff;
        border-radius:6px;
@@ -235,7 +236,7 @@ function display_supplier_topten()
        td('50%');
        source_graphic($today, $title[0], _("Supplier"), $pg);
        br(3);
-       echo "<div class='square square2'>"._('Purchable Total')."<p class='span1'>";
+       echo "<div class='square square2'>"._('Purchasable Total')."<p class='span1'>";
        echo number_format2($title[1])."</p></div>";
        br(3);
        echo "<div class='square square2'>"._('Aging Total')."<p class='span1'>";