java - How to add locale for Arabic -



java - How to add locale for Arabic -

i trying build multi-language website using jsf 2.0 using this tutorial

but facing @ line

countries.put("english", locale.english); countries.put("chinese", locale.simplified_chinese); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

i want set arabic, locale.xxxxxxx not giving back upwards arab countries. countries no standard arabic country.

any idea, can have standard arabic country?

you have utilize this

countries.put("arabic", new locale("ar", "dz")); //or language name generic standard arabic new locale("ar");

where first pair of letters means language , sec country (region) - people's democratic republic of algeria in case. can utilize this link reference list of available countries , locales (i know, roseindia sucks list seemed me useful).

java internationalization multilanguage

Comments

Popular posts from this blog

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

javascript - mongodb won't find my schema method in nested container -