Re: [PATCH] rtl
| From: | Nuno Lopes | Date: | Mon, 03 May 2004 13:51:18 +0000 |
| Subject: | Re: [PATCH] rtl | ||
| References: | 1 2 3 4 5 6 7 8 9 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969360434@lists.php.net to get a copy of this message | ||
> 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