[Libreoffice] How to create locale for language variant?
caolanm at redhat.com
Thu Mar 31 12:15:23 PDT 2011
On Thu, 2011-03-31 at 19:21 +0200, Jesús Corrius wrote:
> On Thu, Mar 31, 2011 at 7:03 PM, -скрыто- Алекса
> <mistresssilvara at hotmail.com> wrote: > > Let's say I need to create a
> locale file for aa-BB-cc language variant, but I cannot figure how to
> make it with just aa language and BB country codes. Is it possible?
Not really. There are various existing horrible kludges in there for
e.g. sr-Latn as "sh" and so forth.
FWIW, see http://people.redhat.com/~caolanm/BCP47/ for a prototype bcp47
parsing lib, e.g. for helping to wedge bcp47 support into hunspell,
enchant, fontconfig, gettext, etc. all of which IMO could do with
support for this sort of thing.
In LibreOffice we have a Locale class which has a Country field, a
Region field and a effectively unused "Variant" field. We basically
should try and wedge bcp47 into this by munging in into the "Variant"
field, See http://firstname.lastname@example.org/msg13739.html
somewhere in that thread is a sort of semi-agreed syntax for how it
See http://wiki.services.openoffice.org/wiki/LocaleMapping for some
related thoughts on mapping existing glibc locale strings into bcp-47
More information about the LibreOffice