Skip to Content
0
May 13, 2010 at 08:16 AM

Getting Locale for a Resourcebundle

38 Views

Hi ,

I need to use Resourcebundles for a Java bean .

Can some one let me know how to access the user locale.

Right now I am using this piece of code

IUser user = UMFactory.getAuthenticator().getLoggedInUser();

Locale IbLocale = user.getLocale();

//get resource bundle

rb = ResourceBundle.getBundle("com.sap.cdev.tmro.lm.provider.requestdispatcher.station.tooltip", IbLocale);

Any better suggestions for accessing user locale are welcome.

Thanks.

Ismail.