Quantcast
Channel: PTC Community: Message List - Windchill
Viewing all articles
Browse latest Browse all 8876

Re: How to LocalizedMessage from ResourceBundle file using code ?

$
0
0

Just drop the "RB" from the class name in the example Patrick gave you.  *RB.rbInfo files compile into *.class files.

 

String resourceBundle = wt.part.QuantityUnit.class.getName();

String key = "ea";         // or "l" or "kg" or "as_needed", etc.

String localizedName = wt.util.WTMessage.getLocalizedMessage(resourceBundle, key);


Viewing all articles
Browse latest Browse all 8876

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>