Wiki

Main | Proposals

Using a Locale other than English (en_US)

(Redirected from Cannot set page names (using a locale other than en US))

en_US is the default locale, so if you choose to set "locales" in your portal-ext.properties without en_US, you must also specify a new default locale. You can do this by setting your "user.country" and "user.language" in your system-ext.properties.

So for example, if you want your portal to use en_GB instead of en_US, you must set:

portal-ext.properties

locales=en_GB

system-ext.properties

user.country=GB
user.language=en

Notes #

Be careful not to confuse language with locale. A list of valid locales can be found here: http://www.roseindia.net/tutorials/I18N/locales-list.shtml
2504 Views , 0 Attachments 0 Attachments

Average (0 Votes)
Comments Flat View

Can you explain better in Liferay what's the difference between language and locale? Thanks.

Posted on 12/16/09 2:51 AM.

Top Top
Language vs Locale is not a difference that Liferay created. It's part of Java. Take a look at this link for more information: http://java.sun.com/j2se/1.4.2/docs/api/java/util/Locale.html

Basically a language can vary between different regions. A good example is Chinese. The same language has a different written representation between China and Taiwan. It is both the same language, so it is represented by "zh", but because the character sets are different, China is represented by the locale "zh_CN" and Taiwan is represented by the locale "zh_TW".

Posted on 12/21/09 7:01 PM in reply to Denis Signoretto.

Top Top
Thanks.
D.

Posted on 1/25/10 8:07 AM in reply to Douglas Wong.

Top Top