Re: [PATCH] ICU ResourceBundles for ext/unicode

From: Date: Thu, 14 Dec 2006 13:29:58 +0000
Subject: Re: [PATCH] ICU ResourceBundles for ext/unicode
References: 1 2 3  Groups: php.i18n 
Request: Send a blank email to php-i18n+get-1037@lists.php.net to get a copy of this message
l0t3k wrote: > In ICU, resource bundles are cached for efficiency, but the cache is > per-process, and i seem to recall that the cache is not currently flushed. > Additionally the key is the ICU locale id, so its impossible without source > changes to make this work for user-created resources without collision in > shared hosting mode. Sounds like gettext() :) Could you elaborate? > that said, it would be perfectly fine for allowing access to locale data. > a few additions i'd make > > 1. allow an indexer as an equivalent to the getByKey() method e.g. > $rb["key"] === $rb->getByIndex("key") > 2. cast handlers in addition to getXXX methods Sounds reasonable, new patch attached. -- Michael

« previous php.i18n (#1037) next »