Uploaded image for project: 'Tapestry'
  1. Tapestry
  2. TAPESTRY-1852

Document Supported locales in AjaxShellDelegate

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 4.1.3
    • Fix Version/s: 4.1.5
    • Component/s: Documentation
    • Labels:
      None

      Description

      AjaxShellDelegate#isLocaleSupported is used to check whether the locale is supported. For what ever reason the default list of pre-bundled dojo supported locales is to short.
      protected String[] SUPPORTED_LOCALES =

      { "en-us", "de-de", "de", "en-gb", "es-es", "es", "fr-fr", "fr", "zh-cn", "zh-tw", "zh" , "it-it", "it", "ja-jp", "ja", "ko-kr", "ko", "pt-br", "pt", "en", "xx"}

      ;

      I have seen that this check was added to fix https://issues.apache.org/jira/browse/TAPESTRY-1551 but I have another scenario.
      I want to use dojo.i18n.number.parse(value, djConfig.locale); this parsing method uses internally dojo.i18n.number.FORMAT_TABLE
      dojo.i18n.number.FORMAT_TABLE support much more locales. The only one possibility to get the locale on client side is djConfig.locale
      But because of the mentioned limitation djConfig.locale cannot be used for number formating.

      Is it possible to remove this check or at least to complete the list?

        Attachments

          Activity

            People

            • Assignee:
              andyhot Andreas Andreou
              Reporter:
              igor.drobiazko Igor Drobiazko
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: