Request: Allow Commonwealth English locales/ResourceBundles to inherit from en_GB [message #23832] |
Wed, 10 December 2008 01:42 |
Sean Flanigan Messages: 22 Registered: July 2009 |
Junior Member |
|
|
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig77410613744302639B96A4FB
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
At Antoine Toulm=E9's suggestion, I've created https://bugs.eclipse.org/2=
58216
against Equinox which arose from https://bugs.eclipse.org/223378
I think I said everything in the bug, reproduced below. Any comments or
suggestions? (Probably best to keep all comments on Bugzilla.)
----------------------------------------
https://bugs.eclipse.org/258216
Allow Commonwealth English locales/ResourceBundles to inherit from en_GB
(Or more generally, arbitrary inheritance between locales in
ResourceBundle/NLS lookups.)
With bug 223378 resolved, Babel has support for en_CA and en_AU
translations, and we'll probably have en_GB soon. The Commonwealth
dialects of English are not identical, but often very similar, eg for
the spelling of "colour" and "favourite".
Obviously, every locale inherits from the default locale, so text which
is identical in US English and Commonwealth English needn't be
translated, but for phrases like "Display in favorites menu", it would
be great if it could be translated just once in en_GB (for instance),
and then picked up by the other Commonwealth locales.
(Alternatively, perhaps it would make sense to define an artificial
locale en_CWTH, from which en_GB, en_AU and en_CA could inherit. But I
don't think so!)
More information:
org.eclipse.osgi.util.NLS.buildVariants()
< http://kickjava.com/src/org/eclipse/osgi/util/NLS.java.htm#2 22>
implements the current logic for some cases, but may not apply to, eg,
plugin.properties
--=20
Sean Flanigan
Senior Software Engineer
Engineering - Internationalisation
Red Hat
--------------enig77410613744302639B96A4FB
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org
iQEcBAEBAgAGBQJJPx6SAAoJEANMP0IIh1rvJzwIAL3xBorwyn46Z8XSAxPE RaTK
bYOc+JJx2n8yt2QZyq03pDefPSb+oFwi1Qy7xM0pQGQIIvh8vSGKZ8iCpIue JHr8
i+Eek3fpgod4UaL0AeLmRNsK4Vb1gVlKfV/hP4SDJQYEHwuW9MlUdi1eGQVz 0e8k
pibZQ0evYiOeQmlGfUWCSLugXYkD4BV0oQ98pZM5r2tufr5YlE8h2b2sVO9M JiqX
fkj4hEJdV/exo2392U9awV3Tx9AorsWeaLBTds6UQ+6gFdgBwlBGC6tNBXJR 0wrC
IiKYuc4mhB7o+8voeIlVYi4dh4wOP9hyxxRiLKFwqqDnxGEY9a3Xzif8KhFk 5/E=
=QAPH
-----END PGP SIGNATURE-----
--------------enig77410613744302639B96A4FB--
|
|
|
|
|
Re: Request: Allow Commonwealth English locales/ResourceBundles to inherit from en_GB [message #23991 is a reply to message #23954] |
Thu, 11 December 2008 07:57 |
Eclipse User |
|
|
|
Originally posted by: atoulme.intalio.com
Sean Flanigan wrote:
> Antoine Toulme wrote:
>> We will see what the Equinox team thinks of this.
>>
>> This might also be generalized to other locales.
>>
>> For example fr_CA could pick up the values defined in fr.
>
> In the case of fr_CA->fr, I think that would already happen, thanks to
> the generic fallback mechanism for ResourceBundles (which Eclipse's NLS
> class duplicates): messages_fr_CA.properties -> messages_fr.properties
> -> messages.properties
I'd need to check.
>
> Although I'm not sure if Babel would give the most helpful statistics in
> such a case (let alone the arbitrary fallback needed for Commonwealth
> English).
Well, you can open a bug about it (with a patch, please :)).
|
|
|
|
|
Re: Request: Allow Commonwealth English locales/ResourceBundles to inherit from en_GB [message #576410 is a reply to message #23954] |
Thu, 11 December 2008 07:57 |
Eclipse User |
|
|
|
Originally posted by: atoulme.intalio.com
Sean Flanigan wrote:
> Antoine Toulme wrote:
>> We will see what the Equinox team thinks of this.
>>
>> This might also be generalized to other locales.
>>
>> For example fr_CA could pick up the values defined in fr.
>
> In the case of fr_CA->fr, I think that would already happen, thanks to
> the generic fallback mechanism for ResourceBundles (which Eclipse's NLS
> class duplicates): messages_fr_CA.properties -> messages_fr.properties
> -> messages.properties
I'd need to check.
>
> Although I'm not sure if Babel would give the most helpful statistics in
> such a case (let alone the arbitrary fallback needed for Commonwealth
> English).
Well, you can open a bug about it (with a patch, please :)).
|
|
|
Powered by
FUDForum. Page generated in 0.04214 seconds