on 05-11-2012 3:01 PM
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.
Hey Guys, I found the answer to this problem above!!
newUser.setLocale(new Locale("pt_br"));
[]´s
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
User | Count |
---|---|
76 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.