Documentation

Initial Instance Localization

Liferay DXP supports localization by language, time zone, and more. The English (US) language translation and GMT time zone are the defaults, but DXP has over 40 translations and can be set to any time zone. Localization is scoped for virtual instances, widgets in each instance, and individual users. As you set up DXP, you can configure the virtual instance default language and time zone using these interfaces:

  • Portal Properties: Specify defaults in a properties file before starting the application server.

  • Setup Wizard: Set defaults via a UI as a part of launching DXP.

  • Control Panel: Modify defaults via a UI after launching the DXP instance.

Portal Properties

If you want to configure the default virtual instance’s localization before starting DXP, use a portal-ext.properties file.

Portal Property Description
company.default.locale Set it to any available locale, defined for the locales portal property.
company.default.time.zone Set it to any of the time zones defined in the time.zones portal property.

For example,

company.default.locale=pt_PT
company.default.time.zone=Europe/Lisbon

The properties above localize the virtual instance for users in Lisbon, Portugal.

Setup Wizard

The Setup Wizard sets the DXP instance’s default language and time zone. They’re available to select in the Default Language and Time Zone selectors.

Use the Setup Wizard to set the DXP instance's default language and time zone

The Setup Wizard is enabled by default for Liferay-Tomcat Bundles and application server installations.

If you have already launched DXP, change the instance’s default language and time zone in the Control Panel.

Control Panel

A virtual instance’s default language and time zone can be modified using the instance’s Localization page. See Configuring a Virtual Instance Localization for instructions.

Conclusion

You have configured your DXP instance’s default language and time zone. If want to explore more information on localizing DXP, including how to facilitate choosing locales, please see Site Localization.