RE: Hebrew -> Right-To-Left Translation
Alon <[email protected]> 6 Sep 2003 00:51:57 -0000
| Newsgroups | gmane.comp.web.oscommerce.devel |
|---|---|
| Message-ID | <77bccfab48ceaf6aebb4af108ee6dca3@osCommerce-Forums> |
This message was sent from: Development
http://forums.oscommerce.com/viewtopic.php?p=225015#225015
----------------------------------------------------------------
There is a class (see below) that needs to be revised to include an IF statement that checks the page DIR. If <html dir="rtl">, then swap the corner_right.gif with the corner_left.gif.
Also swap arrow_right.gif with arrow_left.gif. NOTE: arrow_left.gif doesn't exist with current release.
I'm still translating the version (lots and lots of translation files).
As soon as this CLASS is resolved and my translation will be complete, I'll release the first draft of it. The reason it is going to be a draft is due in part for lots of misouts that I'll prob have.
I can send you a link in the private msg so you can see work in progess.
-Alon.
[code]
class infoBoxHeading extends tableBox {
function infoBoxHeading($contents, $left_corner = true, $right_corner = true, $right_arrow = false) {
$this->table_cellpadding = '0';
if ($left_corner == true) {
$left_corner = tep_image(DIR_WS_IMAGES . 'infobox/corner_left.gif');
} else {
$left_corner = tep_image(DIR_WS_IMAGES . 'infobox/corner_right_left.gif');
}
if ($right_arrow == true) {
$right_arrow = '<a href="' . $right_arrow . '">' . tep_image(DIR_WS_IMAGES . 'infobox/arrow_right.gif', ICON_ARROW_RIGHT) . '</a>';
} else {
$right_arrow = '';
}
if ($right_corner == true) {
$right_corner = $right_arrow . tep_image(DIR_WS_IMAGES . 'infobox/corner_right.gif');
} else {
$right_corner = $right_arrow . tep_draw_separator('pixel_trans.gif', '11', '14');
}
$info_box_contents = array();
$info_box_contents[] = array(array('params' => 'height="14" class="infoBoxHeading"',
'text' => $left_corner),
array('params' => 'width="100%" height="14" class="infoBoxHeading"',
'text' => $contents[0]['text']),
array('params' => 'height="14" class="infoBoxHeading" nowrap',
'text' => $right_corner));
$this->tableBox($info_box_contents, true);
}
}
[/code][/code]