Uploaded image for project: 'Tapestry 5'
  1. Tapestry 5
  2. TAP5-2346

use servletRequest.getLocales() rather than getLocale() to support "second choice" language options

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • tapestry-core

    Description

      At the moment, Tapestry only considers a request's first locale choice, falling back to the default. It would be better, methinks, to iterate over the available choices (selecting the first supported) before falling back to the default.

      Note that it is still appropriate for Tapestry's Request object to have only getLocale(), as it will be the best fit from the request.getLocales().

      http://apache-tapestry-mailing-list-archives.1045711.n5.nabble.com/T5-3-Localization-is-only-partially-implemented-td5726903.html
      http://docs.oracle.com/javaee/6/api/javax/servlet/ServletRequest.html#getLocales%28%29

      Attachments

        Activity

          People

            Unassigned Unassigned
            rhailey Robert Hailey
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: