Re: I18N - dutch

From: Date: Thu, 22 May 2003 15:23:06 +0000
Subject: Re: I18N - dutch
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-16624@lists.php.net to get a copy of this message
thanks. its commited please test the file using the .../docs/I18N_DateTime.php?lang=nl .../docs/I18N_DateTime.php?lang=nl_NL which can be found here http://cvs.php.net/cvs.php/pear/I18N/docs wolfram Jeroen Houben wrote:
Hi, I don't think there's an NL "module" for I18N yet. I took the french one as a template and came up with these (attached). HTH Jeroen ------------------------------------------------------------------------ <?php // +----------------------------------------------------------------------+
// | PHP version 4.0                                                      |
// +----------------------------------------------------------------------+
// | Copyright (c) 1997, 1998, 1999, 2000, 2001, 2002 The PHP Group       |
// +----------------------------------------------------------------------+
// | This source file is subject to version 2.0 of the PHP license,       |
// | that is bundled with this package in the file LICENSE, and is        |
// | available at through the world-wide-web at                           |
// | http://www.php.net/license/2_02.txt.                                 |
// | If you did not receive a copy of the PHP license and are unable to |
// | obtain it through the world-wide-web, please send a note to          |
// | license@php.net so we can mail you a copy immediately.               |
// +----------------------------------------------------------------------+
// | Authors: Jeroen Houben <jeroen@terena.nl>                            |
// |                                                                      |
// +----------------------------------------------------------------------+// // $Id: nl.php,v 1.4 2003/05/22 17:00:00 pajoye Exp $ class I18N_Common_nl {
    var $days = array( 'zondag' , 'maandag' , 'dinsdag' , 'woensdag' , 'donderdag' , 'vrijdag' , 'zaterdag' );
    var $daysAbbreviated = array( 'zo' ,'ma','di','wo','do','vr','za');
    var $monthsAbbreviated = array( 'jan' , 'feb' , 'mrt' , 'apr' , 'mei' , 'jun' ,'jul' , 'aug' , 'sep' , 'oct' , 'nov' , 'dec' );
    var $months = array(
                            'januari',
                            'februari',
                            'maart',
                            'april',
                            'mei',
                            'juni',
                            'juli',
                            'augustus',
                            'september',
                            'oktober',
                            'november',
                            'december'
                         );
    var $dateFormats = array(
                            I18N_DATETIME_SHORT     =>  'd/m/y',
                            I18N_DATETIME_DEFAULT   =>  'd-M-Y',
                            I18N_DATETIME_MEDIUM    =>  'd-M-Y',// ???? what shall medium look like????
                            I18N_DATETIME_LONG      =>  'd F Y',
                            I18N_DATETIME_FULL      =>  'l, d F Y'
                        );
    var $timeFormats = array(
                            I18N_DATETIME_SHORT     =>  'H:i',
                            I18N_DATETIME_DEFAULT   =>  'H:i:s',
                            I18N_DATETIME_MEDIUM    =>  'H:i:s', // ???? what shall medium look like????
                            I18N_DATETIME_LONG      =>  'H:i:s T O',
                            I18N_DATETIME_FULL      =>  'H:i T O'
                        );
    /**
    *   the NUMBER stuff
    *   @var    array   the same parameters as they have to be passed to the number_format-funciton
    */
    var $numberFormat = array(
                                I18N_NUMBER_FLOAT   =>  array('3',',',' '),
                                I18N_NUMBER_INTEGER =>  array('0',',',' '),
                            );
} ?> ------------------------------------------------------------------------ <?php // +----------------------------------------------------------------------+
// | PHP version 4.0                                                      |
// +----------------------------------------------------------------------+
// | Copyright (c) 1997, 1998, 1999, 2000, 2001, 2002 The PHP Group       |
// +----------------------------------------------------------------------+
// | This source file is subject to version 2.0 of the PHP license,       |
// | that is bundled with this package in the file LICENSE, and is        |
// | available at through the world-wide-web at                           |
// | http://www.php.net/license/2_02.txt.                                 |
// | If you did not receive a copy of the PHP license and are unable to |
// | obtain it through the world-wide-web, please send a note to          |
// | license@php.net so we can mail you a copy immediately.               |
// +----------------------------------------------------------------------+
// | Authors: Jeroen Houben <jeroen@terena.nl>                            |
// |                                                                      |
// +----------------------------------------------------------------------+// // $Id: nl_NL.php,v 1.4 2003/05/22 17:00:00 pajoye Exp $
                                require_once 'I18N/Common/nl.php';
class I18N_Common_nl_NL extends I18N_Common_nl {
    /**
    *   the NUMBER stuff
    *   @var    array   the same parameters as they have to be passed to the number_format-funciton
    */
    var $numberFormat = array(
                                I18N_NUMBER_FLOAT   =>  array('3',',',' '),
                                I18N_NUMBER_INTEGER =>  array('0',',',' '),
                            );
    /**
    *   @var    array   the first is the currency symbol, second is the international currency symbol
    */
    var $currencyFormats =  array(
// FIXXME how do we handle the euro sign here, unicode is different than the HTML representation!!! // this is the unicode for it ...
//                                    I18N_CURRENCY_LOCAL         =>  array( "% \u020A" ,    '2',',','.' ),
                                    I18N_CURRENCY_LOCAL         =>  array( "% &euro;" ,    '2',',','.' ),
                                    I18N_CURRENCY_INTERNATIONAL =>  array( '% Eur' ,  '2',',','.' ),
                                );
} ?>
-- Wolfram ... opensource @ vision:produktion ... http://opensource.visionp.de ... translating template engine .... http://sf.net/projects/simpletpl ... authentication system .... http://sf.net/projects/auth

« previous php.pear.dev (#16624) next »