[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Automating of localizations



Alastair McKinstry dijo [Thu, Oct 30, 2003 at 09:27:12PM +0000]:
> > MX      +1924-09909     America/Mexico_City     Central Time - most locations
> > MX      +2105-08646     America/Cancun  Central Time - Quintana Roo
> > MX      +2058-08937     America/Merida  Central Time - Campeche, Yucatan
> > MX      +2540-10019     America/Monterrey       Central Time - Coahuila, Durango, Nuevo Leon, Tamaulipas
> > MX      +2313-10625     America/Mazatlan        Mountain Time - S Baja, Nayarit, Sinaloa
> > MX      +2838-10605     America/Chihuahua       Mountain Time - Chihuahua
> > MX      +2904-11058     America/Hermosillo      Mountain Standard Time - Sonora
> > MX      +3232-11701     America/Tijuana Pacific Time
> > 
> > We do not have different timezones for each of those areas, but they
> > roughly (even politically) define our country, and were a region of
> > Mexico to change timezone, it would probably be reflected by this
> > division. 
> Yes, the zone.tab file is well designed for the task. The third column
> _is_ the official timezone name, even if in modern times the actual time
> is identical in two areas (eg. America/Chichuahua, America/Hermosillo).
> If picking a default, the first line matching the country code is the
> most populous.

A question: _Only_ the first line regards the most populous area,
right? It is right here, but the rest of the lines are in what seems
to be completely a random ordering.

> > I think we could even do away with the %lang_map declaration in
> > locale-config-skolelinux file conffiles.d/timezone - This is a hash
> > based on the name of the locale. The locale, in my case, is es_MX - a
> > simple regex would do:
> > 
> > $lang =~ /^([a-z]{2})           # language code
> >            _([A-Z]{2})          # country code
> >            (?:\.([A-Z0-9\-]+))? # optional charset
> >            (?:@(.+))?/x;        # optional extra information
> > 
> > This was able to parse for me every locale specified in
> > /etc/locale.gen and (adding at the beginning '(\S+)\s+' for the
> > language name) also in /etc/locale.alias - We can infer from our
> > chosen locale and libc6's /usr/share/zoneinfo/zone.tab all the needed
> > information for finding out the corresponding timezones. 
> > 
> > Like it? :-)
> > 
> Yes. Thats how it was designed :-).

Ok... So, Dagfinn, could this scheme be used for conffiles.d/timezone?
libc6 is 'required', not 'essential'... Why? I cannot find anything
currently providing its (undeniably) essential functionality... 

Greetings!

-- 
Gunnar Wolf - gwolf@gwolf.cx - (+52-55)5630-9700 ext. 1366
PGP key 1024D/8BB527AF 2001-10-23
Fingerprint: 0C79 D2D1 2C4E 9CE4 5973  F800 D80E F35A 8BB5 27AF



Reply to: