Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-54646

Localized URL (ex. /en) are not being mapped accordingly to site available locales

    Details

      Description

      When the user specifies a locale in the URL (ex. /en), we are mapping this locale according to "locales.enabled" portal property and not with the site available languages.

      Reproduction steps:
      1. Add the following property to the portal-ext:
      locales.enabled=ca_ES,zh_CN,en_US,fi_FI,fr_FR,de_DE,iw_IL,hu_HU,ja_JP,pt_BR,es_ES,en_GB
      2. Go to Admin > Site Administration / Configuration > Display Settings
      3. Choose the option "Define a custom default language and additional available languages for this site. " and set English (United Kingdom) as default language, and set German and English (UK) as your current languages, move every other language to the Available section
      4. Create a page "test-en-gb"
      5. At the Control Panel > Users and Organizations section edit the user and change the default language of the user to German
      6. Log in and click on: http://localhost:8080/en/test-en-gb

      Actual behavior: The page is displayed in German

      Expected behavior: The page should be displayed in English

        Attachments

        1. fixed.png
          fixed.png
          25 kB
        2. reproduced.png
          reproduced.png
          20 kB

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  4 years, 18 weeks, 5 days ago

                  Packages

                  Version Package
                  6.2.4 CE GA5
                  6.2.X EE
                  7.0.0 M5