[PEAR-BUG] Req #10369 [Opn->WFx]: Add support for multiple locales

[email protected]
Newsgroups php.pear.bugs
Message-ID <[email protected]>
Edit report at http://pear.php.net/bugs/bug.php?id=10369&edit=1

 ID:               10369
 Updated by:       [email protected]
 Reported By:      derernst at gmx dot ch
 Summary:          Add support for multiple locales
-Status:           Open
+Status:           Wont fix
 Type:             Feature/Change Request
 Package:          I18Nv2
 Package Version:  0.11.4
 PHP Version:      5.1.6
 Roadmap Versions: 
 New Comment:

-Status: Open
+Status: Wont fix
Thank you for the suggestion but at this point we will no longer address
requirements 
for this package. There is a newer version available in PECL, the intl
package: 
http://php.net/intl.

We will continue to address bugs and security concerns.


Previous Comments:
------------------------------------------------------------------------

[2007-03-14 09:24:51] derernst

Description:
------------
It would IMO be a huge enhancement to add support for multiple locales
as in the PHP function setlocale() (since PHP 4.3.0) to I18Nv2.
Additionnally a getLocale() method for both I18Nv2 and I18Nv2_Locale
would be helpful to check if the locale initialisation was successful.
Some example calls for the requested functionalities:

$locales = array('de_CH.UTF-8', 'de_DE.UTF-8', 'de.UTF-8');
$loc =& I18Nv2::createLocale($locales);
if (!$curloc = $loc->getLocale()) {
  $curloc = $loc->setLocale('de_CH', 'de_DE', 'de');
}

------------------------------------------------------------------------


-- 
Edit this bug report at http://pear.php.net/bugs/bug.php?id=10369&edit=1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.