Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Sapphire » Using Resource Bundles(For SDEF)
Using Resource Bundles [message #726359] Sat, 17 September 2011 15:59 Go to next message
Kamesh Sampath is currently offline Kamesh SampathFriend
Messages: 213
Registered: July 2009
Senior Member
Is it possible to use Resource bundles for specifying labels and other static text field properties for SDEF ?

lets say i have definition like

<definition>
 <root>
      <node>
         ....
         <label>Test Label</label>
         ....   
      </node>
 </root>
</definition>

Instead i create a bundle.properties or any other resource bundle and then modify my sdef to look like

<definition>
 <root>
      <node>
         ....
         <label>%testLabel</label>
         ....   
      </node>
 </root>
</definition>


If Sapphire does already support this is there any examples where i can look in for ? If not i shall raise an enhancement request for the same ?

~Kamesh
Re: Using Resource Bundles [message #726533 is a reply to message #726359] Sun, 18 September 2011 14:51 Go to previous messageGo to next message
Konstantin Komissarchik is currently offline Konstantin KomissarchikFriend
Messages: 1077
Registered: July 2009
Senior Member
Sapphire employs automatic string externalization. The resource files are generated during the build. There is no facility for doing this manually.

- Konstantin
Re: Using Resource Bundles [message #726534 is a reply to message #726533] Sun, 18 September 2011 14:56 Go to previous messageGo to next message
Kamesh Sampath is currently offline Kamesh SampathFriend
Messages: 213
Registered: July 2009
Senior Member
great ! thanks
Re: Using Resource Bundles [message #726537 is a reply to message #726534] Sun, 18 September 2011 15:01 Go to previous message
Konstantin Komissarchik is currently offline Konstantin KomissarchikFriend
Messages: 1077
Registered: July 2009
Senior Member
Meant to post a link to the article on Sapphire's approach to externalization...

http://www.eclipse.org/sapphire/releases/0.3/documentation/focus/localization/index.html
Previous Topic:(no subject)
Next Topic:Switching XSD
Goto Forum:
  


Current Time: Tue Apr 23 17:38:50 GMT 2024

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

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

Back to the top