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

Disable Language Pop-up for a site if the Site's locale does not equal userLocale

    Details

      Description

      **Customer's Scenario:

      1. The friendly urls for language codes are disabled (portal-ext.properties: locale.prepend.friendly.url.style=0)
      2. The portal has two languages enabled, English and German (Control Panel -> Configuration -> Instance Settings -> Miscellaneous -> Available Languages -> Current -> English, German)
      3. A site has set its language to English only, German is not available at this site (Site -> Configuration -> Site Settings -> Languages -> Current -> English)
      4. A user has his language default set to German (User -> My Account -> Account Settings -> Language -> German)
      5. If this user now browses to this site, a popup appears (appended as Popup.png) that lets the user choose between German

        (Die Seite in Deutsch (Deutschland) anzeigen)

        and English

        (Set English (United States) as your preferred language)

         

       Based on these steps above we could not reproduce the pop-up, only if the url contained the language key, for example: http://localhost:8080/en/group/site-english/

        Attachments

          Activity

            People

            Assignee:
            summer.zhang Summer Zhang
            Reporter:
            orsolya.lukacs Orsolya Lukács (Inactive)
            Participants of an Issue:
            Recent user:
            Jason Pince
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              1 year, 9 weeks, 2 days ago

                Packages

                Version Package
                7.1.10 DXP FP14
                7.1.X
                7.2.10 DXP FP2
                7.2.10.1 DXP SP1
                7.2.X
                7.2.1 CE GA2
                7.3.10 DXP GA1
                Master