And this entry will indicate that a portlet being deployed supports a given locale.
However, the portlet must have appropriate translations incorporated to support this locale. And the client will need to either request this locale through registration or browser settings. Of course, if this is the only locale that the portlet supports, this locale will always be used during rendering.
But what are you setting the locale for? For the portlet, or for the client? The client has various ways to tell the server which locale they prefer.
Joined: May 05, 2009
I want to set the locale programatically.
For ex in portal page if i select locale in selection box from one portlet (say locale portlet) it should take locale specific resource bundle.