Re: Must DateTime load all Locales?

[email protected] (Dave Rolsky) Mon, 11 Aug 2014 13:51:11 -0500 (CDT)
Newsgroups perl.datetime
Message-ID <[email protected]>
On Mon, 11 Aug 2014, David E. Wheeler wrote:

> On Aug 11, 2014, at 10:01 AM, Dave Rolsky <[email protected]> wrote:
>
>>> It builds up in-memory data structures for all of the locales? Wow. Yeah, seems like those could be encapsulated in the locales themselves or something, no?
>>
>> Or rather than building this all up via repeated calls to _register, the Catalog code could just contain the fully realized structure.
>
> How hard would that be to do?

Hard and not hard ;)

The Catalog is currently generated as part of the code that generates each 
individual locale. Changing that part of the code generator isn't too 
hard. The trick is you have to use the exact version of the CLDR data that 
this generator can parse, which is CLDR 1.7.1. You can probably get it 
from their historical archives or repo.


-ave

/*============================================================
http://VegGuide.org               http://blog.urth.org
Your guide to all that's veg      House Absolute(ly Pointless)
============================================================*/