Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Request: Allow Commonwealth English locales/ResourceBundles to inherit from en_GB
Request: Allow Commonwealth English locales/ResourceBundles to inherit from en_GB [message #122372] Wed, 10 December 2008 01:42 Go to next message
Sean Flanigan is currently offline Sean FlaniganFriend
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 #122394 is a reply to message #122372] Wed, 10 December 2008 14:20 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: atoulme.intalio.com

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.

Thanks,

Antoine
Re: Request: Allow Commonwealth English locales/ResourceBundles to inherit from en_GB [message #122415 is a reply to message #122394] Thu, 11 December 2008 01:03 Go to previous messageGo to next message
Sean Flanigan is currently offline Sean FlaniganFriend
Messages: 22
Registered: July 2009
Junior Member
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig15F8E23C33C82DE7B5C08D23
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Antoine Toulme wrote:
> We will see what the Equinox team thinks of this.
>=20
> This might also be generalized to other locales.
>=20
> 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

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).


--------------enig15F8E23C33C82DE7B5C08D23
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

iQEcBAEBAgAGBQJJQGb3AAoJEANMP0IIh1rv+YYH/j+pRrjY08NomoAZStHX xsA4
dSXgfuFi0NK5QxUTKLpn4HsziYXTVz6cKOC9e2jXSpqeB7jUS7a0V4I7dEb4 PqxV
yOjapxaFrhF5fxaqR4qIX7Kert4EorLwbXQIKV2BNK4PakSZUjtmKLir0VNk rkhV
A5Kj8BNk//XRtyyjTQB0s+jbBFJ6Z9OYtW7EarIwNhxk6yDQWUphfTUtAIsC PRJe
cwiSko+3wn53TX0BUgkHSLdO68g0aPucwg/wMK++2rKpYzAoSrdt3tqDYon4 G1QI
xtnuFfUTQm7s/ggna0t844dj/Du4px/ogOL1RUIskoOR/ooM7oUdwOti+75o +Bo=
=a5IP
-----END PGP SIGNATURE-----

--------------enig15F8E23C33C82DE7B5C08D23--
Re: Request: Allow Commonwealth English locales/ResourceBundles to inherit from en_GB [message #122423 is a reply to message #122415] Thu, 11 December 2008 07:57 Go to previous message
Eclipse UserFriend
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 :)).
Previous Topic:org.eclipse.equinox.http.registry.resources - ability to cache rule
Next Topic:automatically update list of update sites
Goto Forum:
  


Current Time: Tue Mar 19 08:27:24 GMT 2024

Powered by FUDForum. Page generated in 0.02221 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top