Date: prev next · Thread: first prev next last
2011 Archives by date, by thread · List index


On Thu, 2011-03-31 at 19:21 +0200, Jesús Corrius wrote:
Hi,

On Thu, Mar 31, 2011 at 7:03 PM, -скрыто- Алекса
 <mistresssilvara@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.

http://openoffice.org/bugzilla/show_bug.cgi?id=109846

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://www.mail-archive.com/dev@openoffice.org/msg13739.html
somewhere in that thread is a sort of semi-agreed syntax for how it
should look.

See http://wiki.services.openoffice.org/wiki/LocaleMapping for some
related thoughts on mapping existing glibc locale strings into bcp-47
tags.

C.


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.