Re: [PATCH] rtl
| From: | moshe doron | Date: | Mon, 03 May 2004 14:57:41 +0000 |
| Subject: | Re: [PATCH] rtl | ||
| References: | 1 2 3 4 5 6 7 8 9 10 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969360435@lists.php.net to get a copy of this message | ||
no rejections.
"Nuno Lopes" <nlopess@php.net> wrote in message
news:006d01c43115$b5f23480$0100a8c0@pc07653...
> > more feedbacks?
> > goba, adding new i18n.php file that will hold the languages data is
> agreed?
> >
> > > --/moshe.
>
> My proposal:
> in common.php have something like this:
>
> $rtl_langs = array('he',....);
>
> if (isset($rtl_langs[$lang]) {
> define('RTL', 1);
> }
>
> $chars = array('he' => 'ISO-xpto'; 'ja'=>'BIG-5'
> ,......);
>
> define('CHARSET', isset($chars[$lang]) ? $chars[$lang] : 'default
> charset');
>
>
> /***************************************/
>
> in style_mapping:
>
> $map = array (......);
>
> if(RTL) {
> // differences to normal $map array
> $map['emphasis'] = 'format_emphasis';
> .............
>
> // declaration of special functions for RTL
> format_emphasis () {
> ......
> }
>
> }
>
> /*************/
> Also change the templates to use RTL and CHARSET.
>
>
> Nuno