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

The Main Site Page Variation in the Staging bar displays as 'main-variation' instead of 'Main Variation'

    Details

      Description

      Note: This is reproducible on ee-6.2.x, ee-7.0.x, and master

      Steps to reproduce (Case 1):

      1. Create a new blank site 'Site Name', add a public page to it.
      2. Enable the local staging of Site Name for public pages.
      3. Add a site page variation.
      4. Try to publish to live, selecting as Site Pages Variation Main Variation.

      Expected Result:
      Message in the popup shoould be Publish Main Variation to Live.

      Actual result:
      Message in the popup is Publish main-variation to Live.


      Steps to reproduce (Case 2):

      1. Create a new blank site 'Site Name', add a public page to it.
      2. Enable the local staging of Site Name for public pages.
      3. Add a site page variation named "navigation" (no capital letters).
      4. Switch language to Spanish.

      Expected Result:
      In the Site Pages Variation drop down "navigation" shouldn't appear translated.

      Actual result:
      In the Site Pages Variation drop down "navigation" appears translated.


      Steps to reproduce (Case 3):

      1. Create a new blank site 'Site Name', add a public page to it.
      2. Enable the local staging of Site Name for public pages.
      3. Add a site page variation named "navigation" (no capital letters).
      4. Switch language to Spanish.
      5. Go to Site Pages Variation menu to create a new one.

      Expected Result:
      "navigation" shouldn't appear translated.

      Actual result:
      "navigation" appears translated.


      Steps to reproduce (Case 4):

      1. Create a new blank site 'Site Name', add a public page to it.
      2. Enable the local staging of Site Name for public pages.
      3. Add a site page variation named "navigation" (no capital letters).
      4. Switch language to Spanish.
      5. Go to Site Pages Variation menu and click Add Site Pages Variation.

      Expected Result:
      "navigation" in "Copy Pages from Site Pages Variation" drop down shouldn't appear translated.

      Actual result:
      "navigation" in "Copy Pages from Site Pages Variation" drop down appears translated.


      Steps to reproduce (Case 5):

      1. Create a new blank site 'Site Name', add a public page to it.
      2. Enable the local staging of Site Name for public pages.
      3. Add a site page variation named "navigation" (no capital letters).
      4. Publish to Live selecting as "Site Pages Variation" navigation.
      5. Switch language to Spanish.
      6. Turn to Live.

      Expected Result:
      "navigation" shouldn't appear translated in last publication information.

      Actual result:
      "navigation" appears translated in last publication information.


      Steps to reproduce (Case 6):

      1. Create a new blank site 'Site Name', add a public page to it.
      2. Enable the local staging of Site Name for public pages.
      3. Add a page variation named "content" (no capital letters).
      4. Switch language to Spanish.

      Expected Result:
      In the Page Variation drop down "content" shouldn't appear translated.

      Actual result:
      In the Page Variation drop down "content" appears translated.


      Steps to reproduce (Case 7):

      1. Create a new blank site 'Site Name', add a public page to it.
      2. Enable the local staging of Site Name for public pages.
      3. Add a page variation named "content" (no capital letters).
      4. Switch language to Spanish.
      5. Go to Page Variations menu.

      Expected Result:
      "content" shouldn't appear translated.

      Actual result:
      "content" appears translated.


      Steps to reproduce (Case 8):

      1. Create a new blank site 'Site Name', add a public page to it.
      2. Enable the local staging of Site Name for public pages.
      3. Add a page variation named "content" (no capital letters).
      4. Switch language to Spanish.
      5. Publish to Live selecting as "Page Variation" content.
      6. Switch language to Spanish.
      7. Turn to Live

      Expected Result:
      "content" shouldn't appear translated in last publication information.

      Actual result:
      "content" appears translated in last publication information.


      Steps to reproduce (Case 9):

      1. Create a new blank site 'Site Name', add a public page to it.
      2. Enable the local staging of Site Name for public pages.
      3. Add a site page variation.
      4. From the site pages variation try to merge Main Variation into the new created one.

      Expected Result:
      The message confirmation should display Main Variation.

      Actual result:
      The message confirmation displays main-variation.


      Steps to reproduce (Case 10):

      1. Create a new blank site 'Site Name', add a public page to it.
      2. Enable the local staging of Site Name for public pages.
      3. Add a site page variation named "content".
      4. Switch language to Spanish.
      5. Go to Site Pages Variation.
      6. Click merge on Main Variation.

      Expected Result:
      The name "content" shouldn't appear translated.

      Actual result:
      The name "content" appears translated.


      Steps to reproduce (6.2.x):

      1. Create a new blank site 'Site Name', add a public page to it.
      2. Enable the local staging of Site Name.
      3. Go to the staging of Site Name, add site pages variation, and select Main Variation under Copy # Pages from Site Pages Variation.
      4. Go to the staging of Site Name, add another public page
        • Navigate to the newly created page, then click Mark as Ready for Publication.
      5. Change site page variation to Main Variation in variation menulist.
      6. Click drop down button of staging.

      Expected Result:
      The page variation info message should be displayed as "Main Variation".

      Actual result:
      The page variation info message displays as "main-variation".

        Attachments

        1. Expected.PNG
          Expected.PNG
          33 kB
        2. Reproduced_62x_20170706.PNG
          Reproduced_62x_20170706.PNG
          52 kB
        3. Reproduced.PNG
          Reproduced.PNG
          32 kB

          Issue Links

            Activity

              People

              Assignee:
              brian.wulbern Brian Wulbern
              Reporter:
              brian.wulbern Brian Wulbern
              Participants of an Issue:
              Recent user:
              Csaba Turcsan
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                3 years, 16 weeks, 5 days ago

                  Packages

                  Version Package
                  6.2.X EE
                  7.0.0 DXP FP23
                  7.0.X EE
                  7.0.4 CE GA5
                  7.1.X
                  Master