on 02-09-2015 9:41 AM
Hello All , How to do validation based on Agentry client Language in JAVA. Can you provide syntax to capture client langauge . Ex : if Client Language nl then { Need to run V1 } if Client Language Fr then { Need to run V2 } Can you provide some suggestion on it ? Thanks & Regards, Kunal Varaiya
Hello,
You could try using below:
String lang = _user.getClientDeviceLanguage();
Thanks
Resmi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kunal,
By using java.util.Locale you can get the default language of your device.
Syntax :Locale.getDefault().getLanguage();
Hope this will help.
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.