Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Lyo » How do I translate the values returned from the ServiceCatalog?
How do I translate the values returned from the ServiceCatalog? [message #1016691] Thu, 07 March 2013 11:25 Go to next message
Stephen Rowles is currently offline Stephen RowlesFriend
Messages: 4
Registered: March 2013
Junior Member
Using Lyo and having services exposed in the Service Catalog, it uses the title values etc. supplied by the @OslcDialog and @OslcQueryCapability annotations.

These, being annotations, are simply fixed strings. However if I understand it correctly those values could be displayed to the end user by a consuming application?

Is there a mechanism to specify a NLS message key and have the service catalog send the appropriate title and label text based on the requesting language from the HTTP request?
Re: How do I translate the values returned from the ServiceCatalog? [message #1016975 is a reply to message #1016691] Fri, 08 March 2013 12:28 Go to previous message
Michael Fiedler is currently offline Michael FiedlerFriend
Messages: 15
Registered: September 2012
Junior Member
Currently the resource shape strings cannot be translated. This is bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=398142.

For other strings (Dialogs, etc) which you have control over displaying: adding @Context javax.ws.rs.core.HttpHeaders httpHeaders; to your JAX-RX service classes will get you access to Accept-Language and you can localize the requested strings.

Hope this helps.


Regards,
Mike
Previous Topic:Using Lyo with multiple "project" roots
Next Topic:Automation RIO: prefilling creation dialog
Goto Forum:
  


Current Time: Tue Mar 19 08:57:12 GMT 2024

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

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

Back to the top