cancel
Showing results for 
Search instead for 
Did you mean: 

Setting UME User with language Portuguese (Brazil)

Former Member
0 Kudos

Hello All,

does someone has any idea how Can I to set language of user such as Portuguese(Brazil) ?

The code bellow not work well, because, it's just set the language as Portuguese without (Brazil).

IUserFactory userfact = UMFactory.getUserFactory();

IUserMaint newUser = UMFactory.getUserFactory().newUser(infoUser[0]);

newUser.setLastName(infoUser[1]);

newUser.setLocale(new Locale("pt"));

newUser.setCountry("Brazil");

newUser.save();

newUser.commit();

Thanks.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hey Guys, I found the answer to this problem above!!

newUser.setLocale(new Locale("pt_br"));

[]´s

daniel_ruiz2
Active Contributor
0 Kudos

Hi,

I'm not sure if what you did really worked, but you should take a look at the Locale documentation:

http://docs.oracle.com/javase/1.4.2/docs/api/java/util/Locale.html

D.

Answers (0)