cvs: pear /I18N/Common de.php de_AT.php de_DE.php en.php en_UK.php en_US.php es.php es_ES.php
| From: | Wolfram Kriesing | Date: | Fri, 22 Nov 2002 13:45:11 +0000 |
| Subject: | cvs: pear /I18N/Common de.php de_AT.php de_DE.php en.php en_UK.php en_US.php es.php es_ES.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-7522@lists.php.net to get a copy of this message | ||
cain Fri Nov 22 08:45:11 2002 EDT
Added files:
/pear/I18N/Common de.php de_AT.php de_DE.php en.php en_UK.php
en_US.php es.php es_ES.php
Log:
- initial commit
Index: pear/I18N/Common/de.php +++ pear/I18N/Common/de.php <?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: Wolfram Kriesing <wk@visionp.de> | // | | // +----------------------------------------------------------------------+// // $Id: de.php,v 1.1 2002/11/22 13:45:10 cain Exp $ class I18N_Common_de { var $days = array( 'Sonntag' , 'Montag' , 'Dienstag' , 'Mittwoch' , 'Donnerstag' , 'Freitag' , 'Samstag' ); var $daysAbbreviated = array( 'So','Mo','Di','Mi','Do','Fr','Sa'); var $monthsAbbreviated = array( 'Jan' , 'Feb' , 'Mär' , 'Apr' , 'Mai' , 'Jun' ,'Jul' , 'Aug' , 'Sep' , 'Okt' , 'Nov' , 'Dez' ); var $months = array( 'Januar', 'Februar', 'März', 'April', 'Mai', 'Juni', 'Juli', 'August', 'September', 'Oktober', 'November', 'Dezember' ); 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 \U\h\r 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',',','.'), ); // var $numberFormat = '###.###,###'; this is the DecimalFormat-java style /** * @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( "% \u20A0" , '2',',','.' ), I18N_CURRENCY_LOCAL => array( '% €' , '2',',','.' ), I18N_CURRENCY_INTERNATIONAL => array( '% Eur' , '2',',','.' ), ); } ?> Index: pear/I18N/Common/de_AT.php +++ pear/I18N/Common/de_AT.php <?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: Wolfram Kriesing <wk@visionp.de> | // | | // +----------------------------------------------------------------------+// // $Id: de_AT.php,v 1.1 2002/11/22 13:45:10 cain Exp $ require_once('I18N/Common/de.php'); class I18N_Common_de_AT extends I18N_Common_de { function I18N_Common_de_AT() { $this->months[0] = 'Jänner'; // is that right? its actually just for demo how to overwrite only one month } } ?> Index: pear/I18N/Common/de_DE.php +++ pear/I18N/Common/de_DE.php <?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: Wolfram Kriesing <wk@visionp.de> | // | | // +----------------------------------------------------------------------+// // $Id: de_DE.php,v 1.1 2002/11/22 13:45:10 cain Exp $ require_once('I18N/Common/de.php'); class I18N_Common_de_DE extends I18N_Common_de { } ?> Index: pear/I18N/Common/en.php +++ pear/I18N/Common/en.php <?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: Wolfram Kriesing <wk@visionp.de> | // | | // +----------------------------------------------------------------------+// // $Id: en.php,v 1.1 2002/11/22 13:45:10 cain Exp $ class I18N_Common_en { 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 \o\'\c\l\o\c\k 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','.',','), ); } ?> Index: pear/I18N/Common/en_UK.php +++ pear/I18N/Common/en_UK.php <?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: Wolfram Kriesing <wk@visionp.de> | // | | // +----------------------------------------------------------------------+// // $Id: en_UK.php,v 1.1 2002/11/22 13:45:10 cain Exp $ require_once('I18N/Common/en.php'); class I18N_Common_en_UK extends I18N_Common_en { // TO BE DONE /** * @var array the first is the currency symbol, second is the international currency symbol */ var $currencyFormats = array( I18N_CURRENCY_LOCAL => array( "???%" , '2' , '.' , ',' ), I18N_CURRENCY_INTERNATIONAL => array( '??? %' , '2' , '.' , ',' ), ); } ?> Index: pear/I18N/Common/en_US.php +++ pear/I18N/Common/en_US.php <?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: Wolfram Kriesing <wk@visionp.de> | // | | // +----------------------------------------------------------------------+// // $Id: en_US.php,v 1.1 2002/11/22 13:45:10 cain Exp $ require_once('I18N/Common/en.php'); class I18N_Common_en_US extends I18N_Common_en { /* to be done 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 \o\'\c\l\o\c\k T O' ); */ /** * @var array the first is the currency symbol, second is the international currency symbol */ var $currencyFormats = array( I18N_CURRENCY_LOCAL => array( '$%' , '2' , '.' , ',' ), I18N_CURRENCY_INTERNATIONAL => array( '$US %' , '2' , '.' , ',' ) ); } ?> Index: pear/I18N/Common/es.php +++ pear/I18N/Common/es.php <?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: Wolfram Kriesing <wk@visionp.de> | // | | // +----------------------------------------------------------------------+// // $Id: es.php,v 1.1 2002/11/22 13:45:10 cain Exp $ class I18N_Common_es { var $days = array( 'domingo' , 'lunes' , 'martes' , 'miércoles' , 'jueves' , 'viernes' , 'sábado' ); var $daysAbbreviated = array( 'do' ,'lu','ma','mi','ju','vi','sa'); var $monthsAbbreviated = array( 'ene' , 'feb' , 'mar' , 'abr' , 'may' , 'jun' ,'jul' , 'ago' , 'sep' , 'oct' , 'nov' , 'dic' ); var $months = array( 'enero', 'febrero', 'marzo', 'abril', 'mayo', 'junio', 'julio', 'agosto', 'septiembre', 'octubre', 'noviembre', 'diciembre' ); 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 \d\e F \d\e 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' ); } ?> Index: pear/I18N/Common/es_ES.php +++ pear/I18N/Common/es_ES.php <?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: Wolfram Kriesing <wk@visionp.de> | // | | // +----------------------------------------------------------------------+// // $Id: es_ES.php,v 1.1 2002/11/22 13:45:10 cain Exp $ require_once('I18N/Common/es.php'); class I18N_Common_es_ES extends I18N_Common_es { /** * @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( '% €' , '2',',','.' ), I18N_CURRENCY_INTERNATIONAL => array( '% Eur' , '2',',','.' ), ); } ?>
Index: pear/I18N/Common/de.php +++ pear/I18N/Common/de.php <?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: Wolfram Kriesing <wk@visionp.de> | // | | // +----------------------------------------------------------------------+// // $Id: de.php,v 1.1 2002/11/22 13:45:10 cain Exp $ class I18N_Common_de { var $days = array( 'Sonntag' , 'Montag' , 'Dienstag' , 'Mittwoch' , 'Donnerstag' , 'Freitag' , 'Samstag' ); var $daysAbbreviated = array( 'So','Mo','Di','Mi','Do','Fr','Sa'); var $monthsAbbreviated = array( 'Jan' , 'Feb' , 'Mär' , 'Apr' , 'Mai' , 'Jun' ,'Jul' , 'Aug' , 'Sep' , 'Okt' , 'Nov' , 'Dez' ); var $months = array( 'Januar', 'Februar', 'März', 'April', 'Mai', 'Juni', 'Juli', 'August', 'September', 'Oktober', 'November', 'Dezember' ); 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 \U\h\r 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',',','.'), ); // var $numberFormat = '###.###,###'; this is the DecimalFormat-java style /** * @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( "% \u20A0" , '2',',','.' ), I18N_CURRENCY_LOCAL => array( '% €' , '2',',','.' ), I18N_CURRENCY_INTERNATIONAL => array( '% Eur' , '2',',','.' ), ); } ?> Index: pear/I18N/Common/de_AT.php +++ pear/I18N/Common/de_AT.php <?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: Wolfram Kriesing <wk@visionp.de> | // | | // +----------------------------------------------------------------------+// // $Id: de_AT.php,v 1.1 2002/11/22 13:45:10 cain Exp $ require_once('I18N/Common/de.php'); class I18N_Common_de_AT extends I18N_Common_de { function I18N_Common_de_AT() { $this->months[0] = 'Jänner'; // is that right? its actually just for demo how to overwrite only one month } } ?> Index: pear/I18N/Common/de_DE.php +++ pear/I18N/Common/de_DE.php <?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: Wolfram Kriesing <wk@visionp.de> | // | | // +----------------------------------------------------------------------+// // $Id: de_DE.php,v 1.1 2002/11/22 13:45:10 cain Exp $ require_once('I18N/Common/de.php'); class I18N_Common_de_DE extends I18N_Common_de { } ?> Index: pear/I18N/Common/en.php +++ pear/I18N/Common/en.php <?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: Wolfram Kriesing <wk@visionp.de> | // | | // +----------------------------------------------------------------------+// // $Id: en.php,v 1.1 2002/11/22 13:45:10 cain Exp $ class I18N_Common_en { 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 \o\'\c\l\o\c\k 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','.',','), ); } ?> Index: pear/I18N/Common/en_UK.php +++ pear/I18N/Common/en_UK.php <?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: Wolfram Kriesing <wk@visionp.de> | // | | // +----------------------------------------------------------------------+// // $Id: en_UK.php,v 1.1 2002/11/22 13:45:10 cain Exp $ require_once('I18N/Common/en.php'); class I18N_Common_en_UK extends I18N_Common_en { // TO BE DONE /** * @var array the first is the currency symbol, second is the international currency symbol */ var $currencyFormats = array( I18N_CURRENCY_LOCAL => array( "???%" , '2' , '.' , ',' ), I18N_CURRENCY_INTERNATIONAL => array( '??? %' , '2' , '.' , ',' ), ); } ?> Index: pear/I18N/Common/en_US.php +++ pear/I18N/Common/en_US.php <?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: Wolfram Kriesing <wk@visionp.de> | // | | // +----------------------------------------------------------------------+// // $Id: en_US.php,v 1.1 2002/11/22 13:45:10 cain Exp $ require_once('I18N/Common/en.php'); class I18N_Common_en_US extends I18N_Common_en { /* to be done 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 \o\'\c\l\o\c\k T O' ); */ /** * @var array the first is the currency symbol, second is the international currency symbol */ var $currencyFormats = array( I18N_CURRENCY_LOCAL => array( '$%' , '2' , '.' , ',' ), I18N_CURRENCY_INTERNATIONAL => array( '$US %' , '2' , '.' , ',' ) ); } ?> Index: pear/I18N/Common/es.php +++ pear/I18N/Common/es.php <?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: Wolfram Kriesing <wk@visionp.de> | // | | // +----------------------------------------------------------------------+// // $Id: es.php,v 1.1 2002/11/22 13:45:10 cain Exp $ class I18N_Common_es { var $days = array( 'domingo' , 'lunes' , 'martes' , 'miércoles' , 'jueves' , 'viernes' , 'sábado' ); var $daysAbbreviated = array( 'do' ,'lu','ma','mi','ju','vi','sa'); var $monthsAbbreviated = array( 'ene' , 'feb' , 'mar' , 'abr' , 'may' , 'jun' ,'jul' , 'ago' , 'sep' , 'oct' , 'nov' , 'dic' ); var $months = array( 'enero', 'febrero', 'marzo', 'abril', 'mayo', 'junio', 'julio', 'agosto', 'septiembre', 'octubre', 'noviembre', 'diciembre' ); 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 \d\e F \d\e 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' ); } ?> Index: pear/I18N/Common/es_ES.php +++ pear/I18N/Common/es_ES.php <?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: Wolfram Kriesing <wk@visionp.de> | // | | // +----------------------------------------------------------------------+// // $Id: es_ES.php,v 1.1 2002/11/22 13:45:10 cain Exp $ require_once('I18N/Common/es.php'); class I18N_Common_es_ES extends I18N_Common_es { /** * @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( '% €' , '2',',','.' ), I18N_CURRENCY_INTERNATIONAL => array( '% Eur' , '2',',','.' ), ); } ?>