Uploaded image for project: 'PUBLIC - Liferay Portal Enterprise Edition'
  1. PUBLIC - Liferay Portal Enterprise Edition
  2. LPE-1440

Setting the localization in the URL does not work

Details

    Description

      The language of a page can be set using URLs of the form http://localhost/locale/... For example: http://localhost/zh_CN/web/guest/home will display the default page in Chinese. However, only German and Chinese are enabled by default. To enable additional languages, something like the following needs to be added to web.xml for each language:

      <servlet-mapping>
      <servlet-name>I18n Servlet</servlet-name>
      <url-pattern>/fr/*</url-pattern>
      </servlet-mapping>

      This update enables this URL format for all supported languages by default by adding the above XML to web.xml automatically.

      Attachments

        Issue Links

          Activity

            People

              kristoffer.onias Kristoffer Onias
              brian.chan Brian Chan
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Packages

                  Version Package
                  5.1 EE SP5 (5.1.8)
                  5.2 EE SP2 (5.2.6)