Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [babel-dev] The Runtime Translation Editor



On Fri, Jan 23, 2009 at 1:56 AM, Sean Flanigan <sflaniga@xxxxxxxxxx> wrote:
I've been trying it out from CVS.  It looks good.  Running under
Ganymede-SR1/Java5, the RTE was able to translate itself using the
Translate This Dialog button  (since it uses the class TranslatableNLS),
but it wasn't able to find any of Eclipse's menus.  Perhaps the
menu-parsing needs to be updated for Eclipse 3.4, or maybe it's the
Java5/Java6 issue?  Any ideas?

Also, I'm getting lots of Unhandled event loop exceptions (NPE) in my
Error Log, but I should put in a bug for that.
https://bugs.eclipse.org/bugs/show_bug.cgi?id=262111
It looks like the menu problem and your NPEs are related.


It was impressive to see instant translation updates, but it seems to
require a lot of co-operation from plugins which want to be translated
(ie using classes like TranslatableNLS, TranslatableSet,
TranslatableText).  And consider how hard it is to get projects just to
externalise their strings!

Now, I suppose instant translation updates do require co-operation from
the plugin (or perhaps invasive AOP).  At the moment, unco-operative
plugins can only be translated if you know the plugin ID.  And you have
to restart the entire application to see the new translations.

What might help:

1. Some sort of automatic mapping from GUI component to plugin/resource
bundle.  SWT must know, at least in some cases:
http://markmail.org/message/jjnmxme4kq4qfhrw

2. Plugin reloading/reactivation to pick up new translations.  OSGi can
stop and start bundles, can't it?  (Obviously, you can't reload all
plugins, but surely some of them could be restarted.)
It can. If you start eclipse with the -console argument, you then can do:
start org.xyz.hello
stop org.xyz.hello

And so on.


Plugins which use TranslatableNLS would still have instant translations,
but this should improve the situation for the other plugins.


--
Sean Flanigan

Senior Software Engineer
Engineering - Internationalisation
Red Hat


_______________________________________________
babel-dev mailing list
babel-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/babel-dev



Back to the top