1
hello all
some languages is right to left ( Persian and Arabic) and some country uses other calendars ( in Iran we use
jalali calendar)
when i work for Persian language for XOOPS 2.3 i see we need some css file for RTL !!
one css file to installer of system like this ( i added this file to install/language/persian/fa.css )
#wizard {
text-align: right;
direction: rtl;
}
#buttons {
direction: ltr;
}
body {
text-align: right;
direction: rtl;
}
#pageslist {
float: right;
}
.page {
margin-right: 14.5em;
margin-left: .1px !important;
}
h2 {
text-align: right;
}
#help_button {
float: left;
}
.x2-note.error {
background-position: left 2px;
}
also one css file and one java file for user side ( i add files in languages/persian/css/fa.css and languages/persian/js/fa.js)
and one css file for admin side ( i add this file in module system )
i need some core files to be edited for adding rtl files
for example we use this hack in footer.php
// Start rowdi/irmtfan addition: assign the language css file to the template, if required
if ( file_exists(XOOPS_ROOT_PATH."/language/".$GLOBALS['xoopsConfig']['language']."/css/"._LANGCODE.".css") ) {
$xoTheme->addStylesheet( "/language/".$GLOBALS['xoopsConfig']['language']."/css/"._LANGCODE.".css", array( "media" => "screen" ) );
}
if ( file_exists(XOOPS_ROOT_PATH."/language/".$GLOBALS['xoopsConfig']['language']."/js/"._LANGCODE.".js") ) {
$xoTheme->addScript( "/language/".$GLOBALS['xoopsConfig']['language']."/js/"._LANGCODE.".js", array( "type" => "text/javascript" ) );
}
// End rowdi/irmtfan addition
i request add some code in core files which this code allowed us to add css file and js file in language/_LANGNAME/css/_LANGCODE.css in in system installer and module/system/language/_LANGNAME/... and main XOOPS language folder please
and add one folder in language/_LANGNAME for local calendar which we add our calendar files in to it
thx all