1
voltan
some localization !!
  • 2008/7/18 18:11

  • voltan

  • Theme Designer

  • Posts: 724

  • Since: 2006/12/5


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 {
    
floatleft;
}
.
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

2
Mamba
Re: some localization !!
  • 2008/7/19 17:35

  • Mamba

  • Moderator

  • Posts: 11366

  • Since: 2004/4/23


Added to Feature Requests on Source Forge:

https://sourceforge.net/tracker/index.php?func=detail&aid=2022306&group_id=41586&atid=430843

When you post here requests, please also post them in the Source Forge, so we can keep them in one place:

http://sourceforge.net/tracker/?func=add&group_id=41586&atid=430843

Thank you!
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

3
voltan
Re: some localization !!
  • 2008/7/19 19:50

  • voltan

  • Theme Designer

  • Posts: 724

  • Since: 2006/12/5


thx mamba . its very necessary for us !

Login

Who's Online

157 user(s) are online (113 user(s) are browsing Support Forums)


Members: 0


Guests: 157


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits