cvs: pear /I18Nv2 CommonList.php DecoratedList.php I18Nv2.php Region.php SpecialList.php /I18Nv2/Region/CA de.php en.php fr.php /I18Nv2/Region/FR
en.php fr.php /I18Nv2/Region/US en.php fr.php

From: Date: Mon, 03 Oct 2005 10:34:18 +0000
Subject: cvs: pear /I18Nv2 CommonList.php DecoratedList.php I18Nv2.php Region.php SpecialList.php /I18Nv2/Region/CA de.php en.php fr.php /I18Nv2/Region/FR
en.php fr.php /I18Nv2/Region/US en.php fr.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-35236@lists.php.net to get a copy of this message
mike Mon Oct 3 06:34:18 2005 EDT Added files: /pear/I18Nv2 Region.php SpecialList.php /pear/I18Nv2/Region/CA de.php en.php fr.php /pear/I18Nv2/Region/FR en.php fr.php /pear/I18Nv2/Region/US en.php fr.php Modified files: /pear/I18Nv2 CommonList.php DecoratedList.php I18Nv2.php Log: - commit intermediate changes so that Helgi is up2date too, things still need to be sorted out ;)

http://cvs.php.net/diff.php/pear/I18Nv2/CommonList.php?r1=1.12&r2=1.13&ty=u Index: pear/I18Nv2/CommonList.php diff -u pear/I18Nv2/CommonList.php:1.12 pear/I18Nv2/CommonList.php:1.13 --- pear/I18Nv2/CommonList.php:1.12 Thu Feb 24 09:54:50 2005 +++ pear/I18Nv2/CommonList.php Mon Oct 3 06:34:18 2005 @@ -11,7 +11,7 @@ // | Copyright (c) 2004 Michael Wallner <mike@iworks.at> | // +----------------------------------------------------------------------+ // -// $Id: CommonList.php,v 1.12 2005/02/24 14:54:50 mike Exp $ +// $Id: CommonList.php,v 1.13 2005/10/03 10:34:18 mike Exp $ /** * I18Nv2::CommonList @@ -28,7 +28,7 @@ * work, so code doesn't get written twice or even more often in the future. * * @author Michael Wallner <mike@php.net> - * @version $Revision: 1.12 $ + * @version $Revision: 1.13 $ * @access public */ class I18Nv2_CommonList @@ -66,15 +66,6 @@ */ function I18Nv2_CommonList($language = null, $encoding = null) { - I18Nv2_CommonList::__construct($language, $encoding); - } - - /** - * Constructor (ZE2) - * @ignore - */ - function __construct($language = null, $encoding = null) - { if (!$this->setLanguage($language)) { if (class_exists('I18Nv2')) { $l = I18Nv2::lastLocale(0, true); http://cvs.php.net/diff.php/pear/I18Nv2/DecoratedList.php?r1=1.7&r2=1.8&ty=u Index: pear/I18Nv2/DecoratedList.php diff -u pear/I18Nv2/DecoratedList.php:1.7 pear/I18Nv2/DecoratedList.php:1.8 --- pear/I18Nv2/DecoratedList.php:1.7 Fri Oct 29 06:21:08 2004 +++ pear/I18Nv2/DecoratedList.php Mon Oct 3 06:34:18 2005 @@ -11,7 +11,7 @@ // | Copyright (c) 2004 Michael Wallner <mike@iworks.at> | // +----------------------------------------------------------------------+ // -// $Id: DecoratedList.php,v 1.7 2004/10/29 10:21:08 mike Exp $ +// $Id: DecoratedList.php,v 1.8 2005/10/03 10:34:18 mike Exp $ /** * I18Nv2::DecoratedList @@ -26,7 +26,7 @@ * I18Nv2_DecoratedList * * @author Michael Wallner <mike@php.net> - * @version $Revision: 1.7 $ + * @version $Revision: 1.8 $ * @package I18Nv2 * @access public */ @@ -48,15 +48,6 @@ */ function I18Nv2_DecoratedList(&$list) { - I18Nv2_DecoratedList::__construct($list); - } - - /** - * ZE2 Constructor - * @ignore - */ - function __construct(&$list) - { if (is_a($list, 'I18Nv2_CommonList') || is_a($list, 'I18Nv2_DecoratedList')) { $this->list = &$list; http://cvs.php.net/diff.php/pear/I18Nv2/I18Nv2.php?r1=1.33&r2=1.34&ty=u Index: pear/I18Nv2/I18Nv2.php diff -u pear/I18Nv2/I18Nv2.php:1.33 pear/I18Nv2/I18Nv2.php:1.34 --- pear/I18Nv2/I18Nv2.php:1.33 Wed Aug 31 05:16:06 2005 +++ pear/I18Nv2/I18Nv2.php Mon Oct 3 06:34:18 2005 @@ -11,7 +11,7 @@ // | Copyright (c) 2004 Michael Wallner <mike@iworks.at> | // +----------------------------------------------------------------------+ // -// $Id: I18Nv2.php,v 1.33 2005/08/31 09:16:06 mike Exp $ +// $Id: I18Nv2.php,v 1.34 2005/10/03 10:34:18 mike Exp $ /** * I18Nv2 @@ -26,7 +26,7 @@ * I18Nv2 - Internationalization v2 * * @author Michael Wallner <mike@php.net> - * @version $Revision: 1.33 $ + * @version $Revision: 1.34 $ * @package I18Nv2 * @access public * @static @@ -357,7 +357,7 @@ */ function languageOf($locale) { - return array_shift($a = I18Nv2::splitLocale($locale)); + return current($a = I18Nv2::splitLocale($locale)); } /** @@ -370,7 +370,7 @@ */ function countryOf($locale) { - return array_pop($a = I18Nv2::splitLocale($locale)); + return end($a = I18Nv2::splitLocale($locale)); } /** http://cvs.php.net/co.php/pear/I18Nv2/Region.php?r=1.1&p=1 Index: pear/I18Nv2/Region.php +++ pear/I18Nv2/Region.php <?php // +----------------------------------------------------------------------+ // | PEAR :: I18Nv2 :: Region | // +----------------------------------------------------------------------+ // | This source file is subject to version 3.0 of the PHP license, | // | that is available at http://www.php.net/license/3_0.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. | // +----------------------------------------------------------------------+ // | Copyright (c) 2004 Michael Wallner <mike@iworks.at> | // +----------------------------------------------------------------------+ // // $Id: Region.php,v 1.1 2005/10/03 10:34:18 mike Exp $ /** * I18Nv2::Region * * @package I18Nv2 * @category Internationalization */ require_once 'I18Nv2/SpecialList.php'; /** * I18Nv2_Region * * @author Michael Wallner <mike@php.net> * @version $Revision: 1.1 $ * @access public * @package I18Nv2 */ class I18Nv2_Region extends I18Nv2_SpecialList { /** * Load language file * * @access protected * @return bool * @param string $language */ function loadLanguage($language) { return @include 'I18Nv2/Region/'. $this->key .'/'. $language .'.php'; } /** * Change case of code key * * @access protected * @return string * @param string $code */ function changeKeyCase($code) { return strToUpper($code); } } ?> http://cvs.php.net/co.php/pear/I18Nv2/SpecialList.php?r=1.1&p=1 Index: pear/I18Nv2/SpecialList.php +++ pear/I18Nv2/SpecialList.php <?php // +----------------------------------------------------------------------+ // | PEAR :: I18Nv2 :: SpecialList | // +----------------------------------------------------------------------+ // | This source file is subject to version 3.0 of the PHP license, | // | that is available at http://www.php.net/license/3_0.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. | // +----------------------------------------------------------------------+ // | Copyright (c) 2004 Michael Wallner <mike@iworks.at> | // +----------------------------------------------------------------------+ // // $Id: SpecialList.php,v 1.1 2005/10/03 10:34:18 mike Exp $ /** * I18Nv2::SpecialList * * @author Michael Wallner <mike@php.net> * @package I18Nv2 * @category Internationalization */ require_once 'I18Nv2/CommonList.php'; /** * I18Nv2_SpecialList * * @author Michael Wallner <mike@php.net> * @version $Revision: 1.1 $ * @access public */ class I18Nv2_SpecialList extends I18Nv2_CommonList { /** * Key * * @access protected * @var string */ var $key = ''; /** * Constructor * * @access public * @param string $language * @param string $encoding */ function I18Nv2_SpecialList($key, $language = null, $encoding = null) { $this->key = $this->changeKeyCase($key); parent::I18Nv2_CommonList($language, $encoding); } } ?> http://cvs.php.net/co.php/pear/I18Nv2/Region/CA/de.php?r=1.1&p=1 Index: pear/I18Nv2/Region/CA/de.php +++ pear/I18Nv2/Region/CA/de.php <?php /** * $Id: de.php,v 1.1 2005/10/03 10:34:18 mike Exp $ */ $this->codes = array( 'AB' => 'Alberta', 'BC' => 'Britisch Kolumbien', 'MB' => 'Manitoba', 'NB' => 'Neubraunschweig', 'NF' => 'Neufundland und Labrador', 'NT' => 'Nordwest-Territorien', 'NS' => 'Neuschottland', 'NU' => 'Nunavut', 'ON' => 'Ontario', 'PE' => 'Prinz-Eduard-Insel', 'QC' => 'Québec', 'SK' => 'Saskatchewan', 'YK' => 'Yukon-Territorium' ); ?> http://cvs.php.net/co.php/pear/I18Nv2/Region/CA/en.php?r=1.1&p=1 Index: pear/I18Nv2/Region/CA/en.php +++ pear/I18Nv2/Region/CA/en.php <?php /** * $Id: en.php,v 1.1 2005/10/03 10:34:18 mike Exp $ */ $this->codes = array( 'AB' => 'Alberta', 'BC' => 'British Columbia', 'MB' => 'Manitoba', 'NB' => 'New Brunswick', 'NF' => 'Newfoundland and Labrador', 'NT' => 'Northwest Territories', 'NS' => 'Nova Scotia', 'NU' => 'Nunavut', 'ON' => 'Ontario', 'PE' => 'Prince Edward Island', 'QC' => 'Quebec', 'SK' => 'Saskatchewan', 'YK' => 'Yukon Territory' ); ?> http://cvs.php.net/co.php/pear/I18Nv2/Region/CA/fr.php?r=1.1&p=1 Index: pear/I18Nv2/Region/CA/fr.php +++ pear/I18Nv2/Region/CA/fr.php <?php /** * $Id: fr.php,v 1.1 2005/10/03 10:34:18 mike Exp $ */ $this->codes = array( 'AB' => 'Alberta', 'BC' => 'Columbie britannique', 'MB' => 'Manitoba', 'NB' => 'Nouveau-Brunswick', 'NF' => 'Terre-Neuve et Labrador', 'NT' => 'Nord-Ouest', 'NS' => 'Nouvelle-Ecosse', 'NU' => 'Nunavut', 'ON' => 'Ontario', 'PE' => 'L\'île du Prince-Edouard', 'QC' => 'Québec', 'SK' => 'Saskatchewan', 'YK' => 'Yukon' ); ?> http://cvs.php.net/co.php/pear/I18Nv2/Region/FR/en.php?r=1.1&p=1 Index: pear/I18Nv2/Region/FR/en.php +++ pear/I18Nv2/Region/FR/en.php <?php /** * $Id: en.php,v 1.1 2005/10/03 10:34:18 mike Exp $ */ $this->codes = array( '01' => 'Ain', '02' => 'Aisne', '03' => 'Allier', '04' => 'Alpes de Haute-Provence', '05' => 'Hautes-Alpes', '06' => 'Alpes-Maritimes', '07' => 'Ardèche', '08' => 'Ardennes', '09' => 'Ariège', '10' => 'Aube', '11' => 'Aude', '12' => 'Aveyron', '13' => 'Bouches-du-Rhône', '14' => 'Calvados', '15' => 'Cantal', '16' => 'Charente', '17' => 'Charente-Maritime', '18' => 'Cher', '19' => 'Corrèze', '2A' => 'South Corsica', '2B' => 'North Corsica', '21' => 'Côte d\'Or', '22' => 'Côtes d\'Armor', '23' => 'Creuse', '24' => 'Dordogne', '25' => 'Doubs', '26' => 'Drôme', '27' => 'Eure', '28' => 'Eure-et-Loir', '29' => 'Finistère', '973' => 'French Guyana', '987' => 'French Polynesia', '30' => 'Gard', '31' => 'Haute-Garonne', '32' => 'Gers', '33' => 'Gironde', '971' => 'Guadeloupe', '34' => 'Hérault', '35' => 'Ille-et-Vilaine', '36' => 'Indre', '37' => 'Indre-et-Loire', '38' => 'Isère', '39' => 'Jura', '40' => 'Landes', '41' => 'Loir-et-Cher', '42' => 'Loire', '43' => 'Haute-Loire', '44' => 'Loire-Atlantique', '45' => 'Loiret', '46' => 'Lot', '47' => 'Lot-et-Garonne', '48' => 'Lozère', '49' => 'Maine-et-Loire', '50' => 'Manche', '51' => 'Marne', '52' => 'Marne', '972' => 'Martinique', '53' => 'Mayenne', '54' => 'Meurthe-et-Moselle', '55' => 'Meuse', '56' => 'Morbihan', '57' => 'Moselle', '988' => 'New Caledonia', '58' => 'Nièvre', '59' => 'Nord', '60' => 'Oise', '61' => 'Orne', '62' => 'Pas-de-Calais', '63' => 'Puy-de-Dôme', '64' => 'Atlantic Pyrenees', '65' => 'Hautes-Pyrénées', '66' => 'Pyrénées Orientales', '67' => 'Bas-Rhin', '68' => 'Haut-Rhin', '69' => 'Rhône', '70' => 'Haute-Saône', '975' => 'Saint-Pierre and Miquelon', '71' => 'Saône-et-Loire', '72' => 'Sarthe', '73' => 'Savoie', '74' => 'Haute-Savoie', '75' => 'Paris', '974' => 'Réunion', '76' => 'Seine-Maritime', '77' => 'Seine-et-Marne', '78' => 'Yvelines', '79' => 'Deux-Sèvres', '80' => 'Somme', '81' => 'Tarn', '82' => 'Tarn-et-Garonne', '83' => 'Var', '84' => 'Vaucluse', '85' => 'Vendée', '86' => 'Vienne', '87' => 'Haute-Vienne', '88' => 'Vosges', '89' => 'Yonne', '90' => 'Belfort Territory', '91' => 'Essonne', '92' => 'Hauts-de-Seine', '93' => 'Seine-St-Denis', '94' => 'Val de Marne', '95' => 'Val d\'Oise', '986' => 'Wallis and Futuna' ); ?> http://cvs.php.net/co.php/pear/I18Nv2/Region/FR/fr.php?r=1.1&p=1 Index: pear/I18Nv2/Region/FR/fr.php +++ pear/I18Nv2/Region/FR/fr.php <?php /** * $Id: fr.php,v 1.1 2005/10/03 10:34:18 mike Exp $ */ $this->codes = array( '01' => 'Ain', '02' => 'Aisne', '03' => 'Allier', '04' => 'Alpes de Haute-Provence', '05' => 'Hautes-Alpes', '06' => 'Alpes-Maritimes', '07' => 'Ardèche', '08' => 'Ardennes', '09' => 'Ariège', '10' => 'Aube', '11' => 'Aude', '12' => 'Aveyron', '13' => 'Bouches-du-Rhône', '14' => 'Calvados', '15' => 'Cantal', '16' => 'Charente', '17' => 'Charente-Maritime', '18' => 'Cher', '19' => 'Corrèze', '2A' => 'Corse du Sud', '2B' => 'Haute-Corse', '21' => 'Côte d\'Or', '22' => 'Côtes d\'Armor', '23' => 'Creuse', '24' => 'Dordogne', '25' => 'Doubs', '26' => 'Drôme', '27' => 'Eure', '28' => 'Eure-et-Loir', '29' => 'Finistère', '30' => 'Gard', '31' => 'Haute-Garonne', '32' => 'Gers', '33' => 'Gironde', '34' => 'Hérault', '35' => 'Ille-et-Vilaine', '36' => 'Indre', '37' => 'Indre-et-Loire', '38' => 'Isère', '39' => 'Jura', '40' => 'Landes', '41' => 'Loir-et-Cher', '42' => 'Loire', '43' => 'Haute-Loire', '44' => 'Loire-Atlantique', '45' => 'Loiret', '46' => 'Lot', '47' => 'Lot-et-Garonne', '48' => 'Lozère', '49' => 'Maine-et-Loire', '50' => 'Manche', '51' => 'Marne', '52' => 'Marne', '53' => 'Mayenne', '54' => 'Meurthe-et-Moselle', '55' => 'Meuse', '56' => 'Morbihan', '57' => 'Moselle', '58' => 'Nièvre', '59' => 'Nord', '60' => 'Oise', '61' => 'Orne', '62' => 'Pas-de-Calais', '63' => 'Puy-de-Dôme', '64' => 'Pyrénées-Atlantiques', '65' => 'Hautes-Pyrénées', '66' => 'Pyrénées Orientales', '67' => 'Bas-Rhin', '68' => 'Haut-Rhin', '69' => 'Rhône', '70' => 'Haute-Saône', '71' => 'Saône-et-Loire', '72' => 'Sarthe', '73' => 'Savoie', '74' => 'Haute-Savoie', '75' => 'Paris', '76' => 'Seine-Maritime', '77' => 'Seine-et-Marne', '78' => 'Yvelines', '79' => 'Deux-Sèvres', '80' => 'Somme', '81' => 'Tarn', '82' => 'Tarn-et-Garonne', '83' => 'Var', '84' => 'Vaucluse', '85' => 'Vendée', '86' => 'Vienne', '87' => 'Haute-Vienne', '88' => 'Vosges', '89' => 'Yonne', '90' => 'Territoire de Belfort', '91' => 'Essonne', '92' => 'Hauts-de-Seine', '93' => 'Seine-St-Denis', '94' => 'Val de Marne', '95' => 'Val d\'Oise', '971' => 'Guadeloupe', '972' => 'Martinique', '973' => 'Guyane', '974' => 'Réunion', '975' => 'Saint-Pierre et Miquelon', '986' => 'Wallis et Futuna', '987' => 'Polynésie Française', '988' => 'Nouvelle Calédonie' ); ?> http://cvs.php.net/co.php/pear/I18Nv2/Region/US/en.php?r=1.1&p=1 Index: pear/I18Nv2/Region/US/en.php +++ pear/I18Nv2/Region/US/en.php <?php /** * $Id: en.php,v 1.1 2005/10/03 10:34:18 mike Exp $ */ $this->codes = array( 'AL' => 'Alabama', 'AK' => 'Alaska', 'AZ' => 'Arizona', 'AR' => 'Arkansas', 'CA' => 'California', 'CO' => 'Colorado', 'CT' => 'Connecticut', 'DE' => 'Delaware', 'DC' => 'District of Columbia', 'FL' => 'Florida', 'GA' => 'Georgia', 'HI' => 'Hawaii', 'ID' => 'Idaho', 'IL' => 'Illinois', 'IN' => 'Indiana', 'IA' => 'Iowa', 'KS' => 'Kansas', 'KY' => 'Kentucky', 'LA' => 'Louisiana', 'ME' => 'Maine', 'MD' => 'Maryland', 'MA' => 'Massachusetts', 'MI' => 'Michigan', 'MN' => 'Minnesota', 'MS' => 'Mississippi', 'MO' => 'Missouri', 'MT' => 'Montana', 'NE' => 'Nebraska', 'NV' => 'Nevada', 'NH' => 'New Hampshire', 'NJ' => 'New Jersey', 'NM' => 'New Mexico', 'NY' => 'New York', 'NC' => 'North Carolina', 'ND' => 'North Dakota', 'OH' => 'Ohio', 'OK' => 'Oklahoma', 'OR' => 'Oregon', 'PA' => 'Pennsylvania', 'RI' => 'Rhode Island', 'SC' => 'South Carolina', 'SD' => 'South Dakota', 'TN' => 'Tennessee', 'TX' => 'Texas', 'UT' => 'Utah', 'VT' => 'Vermont', 'VA' => 'Virginia', 'WA' => 'Washington', 'WV' => 'West Virginia', 'WI' => 'Wisconsin', 'WY' => 'Wyoming' ); ?> http://cvs.php.net/co.php/pear/I18Nv2/Region/US/fr.php?r=1.1&p=1 Index: pear/I18Nv2/Region/US/fr.php +++ pear/I18Nv2/Region/US/fr.php <?php /** * $Id: fr.php,v 1.1 2005/10/03 10:34:18 mike Exp $ */ $this->codes = array( 'AL' => 'Alabama', 'AK' => 'Alaska', 'AZ' => 'Arizona', 'AR' => 'Arkansas', 'CA' => 'Californie', 'CO' => 'Colorado', 'CT' => 'Connecticut', 'DE' => 'Delaware', 'DC' => 'District of Columbia', 'FL' => 'Floride', 'GA' => 'Géorgie', 'HI' => 'Hawaï', 'ID' => 'Idaho', 'IL' => 'Illinois', 'IN' => 'Indiana', 'IA' => 'Iowa', 'KS' => 'Kansas', 'KY' => 'Kentucky', 'LA' => 'Louisiane', 'ME' => 'Maine', 'MD' => 'Maryland', 'MA' => 'Massachusetts', 'MI' => 'Michigan', 'MN' => 'Minnesota', 'MS' => 'Mississippi', 'MO' => 'Missouri', 'MT' => 'Montana', 'NE' => 'Nebraska', 'NV' => 'Nevada', 'NH' => 'New Hampshire', 'NJ' => 'New Jersey', 'NM' => 'Nouveau-Méxique', 'NY' => 'New York', 'NC' => 'Caroline du Nord', 'ND' => 'Dakota du Nord', 'OH' => 'Ohio', 'OK' => 'Oklahoma', 'OR' => 'Oregon', 'PA' => 'Pennsylvanie', 'RI' => 'Rhode Island', 'SC' => 'Caroline du Sud', 'SD' => 'Dakota du Sud', 'TN' => 'Tennessee', 'TX' => 'Texas', 'UT' => 'Utah', 'VT' => 'Vermont', 'VA' => 'Virginie', 'WA' => 'Washington', 'WV' => 'Virginie-Occidentale', 'WI' => 'Wisconsin', 'WY' => 'Wyoming' ); ?>
« previous php.pear.cvs (#35236) next »