Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Using own TranslationService for Application.e4xmi
Using own TranslationService for Application.e4xmi [message #896634] Thu, 19 July 2012 04:28 Go to next message
Stefan Klaus is currently offline Stefan Klaus
Messages: 20
Registered: February 2011
Junior Member
Hi there!

Is there any example of how to extend the TranslationService to use own implementation. I've already a internationalisation-bundle collecting the resource bundle and like to use it within the TranslationService to provide texts for the Application.e4xmi. I don't like to use the build in mechanism with "Externalize Strings" and a resource bundle in OSGI/l10n/... I like to use my own existing resources for the Application.e4xmi

Thanks for your help
Stefan
Re: Using own TranslationService for Application.e4xmi [message #896641 is a reply to message #896634] Thu, 19 July 2012 04:52 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas Schindl
Messages: 5277
Registered: July 2009
Senior Member
I've shown at various conference how this is done using Google
Translate. I'll try to publish a blog entry and come back to you.

Tom

Am 19.07.12 10:28, schrieb Stefan Mising name:
> Hi there!
>
> Is there any example of how to extend the TranslationService to use own
> implementation. I've already a internationalisation-bundle collecting
> the resource bundle and like to use it within the TranslationService to
> provide texts for the Application.e4xmi. I don't like to use the build
> in mechanism with "Externalize Strings" and a resource bundle in
> OSGI/l10n/... I like to use my own existing resources for the
> Application.e4xmi
>
> Thanks for your help
> Stefan
Re: Using own TranslationService for Application.e4xmi [message #900009 is a reply to message #896641] Fri, 03 August 2012 08:28 Go to previous messageGo to next message
Stefan Klaus is currently offline Stefan Klaus
Messages: 20
Registered: February 2011
Junior Member
Thanks in advance.
Re: Using own TranslationService for Application.e4xmi [message #938857 is a reply to message #900009] Wed, 10 October 2012 04:10 Go to previous message
Stefan Klaus is currently offline Stefan Klaus
Messages: 20
Registered: February 2011
Junior Member
Ok, solved my Problem.

For all others here is my solution:

- Add a LifeCycleHandler as described here www.toedter.com/blog/?p=896

- Do your own Implementation of TranslationService by extending it

- Set your own Implementation for the TranslationService
@PostContextCreate
	public void initialConfiguration(IEclipseContext context) {

          context.set(TranslationService.class, new MyTranslationServiceImpl());
          ...

}


Done. Really simple...
Previous Topic:Core Expression Definition null/exists check?
Next Topic:Main menu
Goto Forum:
  


Current Time: Wed Aug 20 12:49:25 EDT 2014

Powered by FUDForum. Page generated in 0.01553 seconds