Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-4929

Fallback i18n Locale

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.5.14.1
    • 6.0.0
    • Core Interceptors
    • None

    Description

      What i noticed is, when i set the perfered languages in my browser for example in this order:

      fr - francais
      de - german
      en - english

      The framework will set the ActionContext.getLocale() to fr. Then the framework will look for resources for francais, and if this locale resources do not exist, the framework will look for the system locale. If the system locale in this example is en, the german resources will be overlooked.

      I mean the HTTP-Header "Accept-language" has an Array of locales. So why not fallback to the next selected if the first Locale does not exist? 

      Is it possible, to make the framework ready for fallback?

       

       

      Attachments

        Issue Links

          Activity

            People

              lukaszlenart Lukasz Lenart
              kdenzel Kai Denzel
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 40m
                  40m