Skip to main content



      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 06:25 Go to next message
Eclipse UserFriend
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 07:28 Go to previous message
Eclipse UserFriend
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.
Previous Topic:Using Lyo with multiple "project" roots
Next Topic:Automation RIO: prefilling creation dialog
Goto Forum:
  


Current Time: Wed Jul 23 18:37:54 EDT 2025

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

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

Back to the top