Documentation
Liferay provides a rich store of resources and knowledge to help our community better use and work with our technology.
Languages and Time Zones
Specify the available locales. Messages corresponding to a specific language are specified in properties files with file names matching that of content/Language_*.properties. These values can also be overridden in properties files with file names matching that of content/Language-ext_*.properties. Use a comma to separate each entry.
If there is more than one locale for the same language, the first one in the list will be used when a translation is requested in another locale of the same language but a translated value cannot be found. For example, if there are two locales such as pt_BR and pt_PT (in this order), any key not found in pt_PT will be looked for in pt_BR.
All locales must use UTF-8 encoding.
See the following links specifiy language and country codes: - http://ftp.ics.uci.edu/pub/ietf/http/related/iso639.txt - http://userpage.chemie.fu-berlin.de/diverse/doc/ISO_3166.html
locales=ar_SA,eu_ES,bg_BG,ca_AD,ca_ES,zh_CN,zh_TW,hr_HR,cs_CZ,nl_NL,nl_BE,en_US,en_GB,et_EE,fi_FI,fr_FR,gl_ES,de_DE,el_GR,iw_IL,hi_IN,hu_HU,in_ID,it_IT,ja_JP,ko_KR,nb_NO,fa_IR,pl_PL,pt_BR,pt_PT,ro_RO,ru_RU,sr_RS,sr_RS_latin,sl_SI,sk_SK,es_ES,sv_SE,tr_TR,uk_UA,vi_VN
Specify the locales that are in beta. Go to http://translate.liferay.com to participate in the translation efforts.
locales.beta=ar_SA,eu_ES,bg_BG,ca_AD,ca_ES,zh_TW,hr_HR,cs_CZ,nl_NL,nl_BE,en_GB,et_EE,fi_FI,fr_FR,gl_ES,el_GR,iw_IL,hi_IN,in_ID,it_IT,ja_JP,ko_KR,nb_NO,fa_IR,pl_PL,pt_PT,ro_RO,ru_RU,sr_RS,sr_RS_latin,sl_SI,sk_SK,sv_SE,tr_TR,uk_UA,vi_VN
Set this to true if unauthenticated users get their preferred language from the Accept-Language header. Set this to false if unauthenticated users get their preferred language from their company.
locale.default.request=false
Set this to 0 if the locale is not automatically prepended to a URL. This means that each URL could potentially point to many different languages. For example, the URL http://localhost:8080/web/guest/home could then be viewed by users in many different languages.
Set this to 1 if the locale is automatically prepended to a URL when the requested locale is not the default locale. This means that each URL points to just one language. For example, the URL http://localhost:8080/web/guest/home would point to the default language. The URL http://localhost:8080/zh/web/guest/home and http://localhost:8080/zh_CN/web/guest/home would both point to the Chinese language.
In cases where the prepended locale is zh and not complete locale zh_CN, then the full locale returned will be based on the order in which the locales appear in the property locales. If zh_CN appears before zh_TW, then zh will be a short hand for zh_TW.
The default language is set in system.properties with the properties user.country and user.language.
Set this to 2 if the locale is automatically prepended to every URL. This means that each URL points to just one language.
Note that each language requires an entry in the property locales and a servlet mapping in web.xml for the I18n Servlet.
locale.prepend.friendly.url.style=1
Set this to true to disable language translations. When a translation is requested for the key first-name, instead of returning "First Name" in English (or in its relevant locale), it will return first-name.
translations.disabled=false
Specify the available time zones. The specified ids must match those from the class java.util.TimeZone.
time.zones=\
Pacific/Midway,\
Pacific/Honolulu,\
America/Anchorage,\
America/Los_Angeles,\
America/Denver,\
America/Chicago,\
America/New_York,\
America/Caracas,\
America/Puerto_Rico,\
America/St_Johns,\
America/Sao_Paulo,\
America/Noronha,\
Atlantic/Azores,\
UTC,\
Europe/Lisbon,\
Europe/Paris,\
Europe/Istanbul,\
Asia/Jerusalem,\
Asia/Baghdad,\
Asia/Tehran,\
Asia/Dubai,\
Asia/Kabul,\
Asia/Karachi,\
Asia/Calcutta,\
Asia/Katmandu,\
Asia/Dhaka,\
Asia/Rangoon,\
Asia/Saigon,\
Asia/Shanghai,\
Asia/Tokyo,\
Asia/Seoul,\
Australia/Darwin,\
Australia/Sydney,\
Pacific/Guadalcanal,\
Pacific/Auckland,\
Pacific/Enderbury,\
Pacific/Kiritimati