Uploaded image for project: 'Live Copy'
  1. Live Copy
  2. LIVECOPY-158

Master Local must contain country suffix

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Fix
    • Neutral
    • None
    • 3.1
    • Magnolia 6.1

    Description

      Hi Magnolia Team,

      just to let you know - we have an issue with Live Copy 3.1 and the masterLocale.

      For our client we have defined "en" as default masterLocale.
      As of Live Copy 3.1 this will cause an StringIndexOutOfBoundsException in line 60 of LiveCopyMultiSiteI18nAuthoringSupport where the country code is received by substring masterLocaleString.substring(3, 5).

      Updating the fallback to en_INT (for international) or en_GB will cause a lot of redactional work. Our solution would be to implement a custom authoring support class to handle also language codes without the country suffix:

      Locale masterLocale = LocaleUtils.toLocale(masterLocaleString);
      

      Maybe this is also a valid scenario for other clients which want to use Live Copy.

      Thanks and best
      Jürgen

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                Unassigned Unassigned
                juergenulrich Jürgen Ulrich
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Bug DoR
                    Task DoD