Chris Leonard wrote on Thu, 17 May 2012 00:33:01 -0400:
> Please forgive me if this sounds like an ignorant question, but is
> there some reason we maintain this information ourselves instead of
> relying on the glibc locale file which contains: LC_Paper and
> LC_Measurement
I can't really answer why specific things in AbiWord are the way they are,
because I'm only contributing for a few years now (and most of the time only
for a plugin). There might be some stuff that is just inherited waste.
The system.profiles are meant to allow the system administrator to override
built-in values. These probably don't necessarily have to be the locale
values.
For the templates, things are easier. Although my locale is de_DE, I might
want to write a document with paper type letter, so there must be a way to
get these values without regard to my locale.
But we probably could pick up Simon's idea for the "lang" property and extend
it for the other properties as well, i.e. if there isn't already a necessary
property set, use the locale's one (provided that we can get all these for
all our ports).
The template files should change then from normal.awt-ll_CC to something like
normal.A4.awt, normal.Letter.awt, normal.portrait.awt, normal.landscape.awt,
normal.ltr.awt, normal.rtl.awt etc. (ugh, and all combinations), i.e.
focusing on the property rather than on the locale.
To summarize, we are talking about three or four changes now:
1. Use generic language files:
svn mv po/de-DE.po po/de.po
svn mv po/es-ES.po po/es.po
svn rm po/es-MX.po
[...]
2. Reduce the system.profile files by setting "cm" in system.profile.
3. Reduce the normal.awt files by removing the "lang" property from the
template files and set it from the user's locale (which already seems
to be realized.)
4. Maybe extend 3. for all properties we can query from the user's locale
and reduce the normal.awt files even more (and change the focus from a
template for a locale to a template for a property).
The first three should be rather easy. I vote for them and maybe would make
number 4 a feature request after v3.
I'd really like to hear the other developer's opinions on this.
Ingo
Received on Thu May 17 13:12:19 2012
This archive was generated by hypermail 2.1.8 : Thu May 17 2012 - 13:12:19 CEST