Elxis CMS Forum
Support => Technical support => Topic started by: Farhad Sakhaei on May 06, 2007, 09:47:12
-
hello
i am tring to insert a RTL direction in ELXIS,
this tool is helpful for languages that have RTL direction,
i begin to insert this tool for installation,
i changed these codes in installation codes:
1- insert a RTL folder in installation folder for put an install.css that it contains RTL direction style sheets base on original install.css
i inserted direction: rtl; property for body tag and the first font-family is Tahoma now
some positions changed too
2- insert a $DIRECTION = 'rtl/'; value in persian installation language file.
3- change the style sheet link in installation php files to :
<link rel="stylesheet" href="<?php if (isset($iLang->DIRECTION)) echo $iLang->DIRECTION; ?>install.css" type="text/css" />
this code points to style sheet file in RTL folder for right 2 left direction, there is no problem for installation language files that they haven't $DIRECTION value.
there is a problem ,
2 attached pictures show 2 language in 2 direction (english and persian)
in english language (LTR direction) the background of whitebar div shows
this is its style :
#whitebar {
height: 70px;
background: url(images/back_top.jpg) no-repeat;
background-position: right;
}
but in persian language (RTL direction) the background of whitebar div doesn't show
this is it's style :
#whitebar {
height: 70px;
background: url(images/back_top.jpg) no-repeat;
background-position: left;
}
there is another problem:
the header of tables (h1) shows in LTR but doesn't show in RTL direction:
<h1><a href="#" onClick="javascript:hideLayer('t1'); swapImage(1);" title="<?php echo $iLang->SHOW_HIDE; ?>">
<img src="images/hide.gif" border="0" align="top" name="IMG1" id="IMG1"></a>
<?php echo $iLang->INSTALLTEXT_02; ?> <?php echo $version_short; ?></h1>
you can see these in 2 attached pictures
please help me , thank you
[old attachment deleted by admin]
-
ok , i found it , because images folder path was changed ;)