Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-9623

Support a falling back to non-country locale to look for translations

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • NiFi Registry
    • None

    Description

      There is currently only a `messages.es.xlf`. This is the generic Spanish version of the text. However, most users will have their browser locale set to their language-country combination. Meaning users from Mexico would have a locale of `es-mx` and the current logic will try to find the messages files for `es-mx` and not find it, then default to the english version. However, it might be better to strip off the country and try again in cases like this and give the user an opportunity to get the messages for the generic language which in this example would be `es` and it would return those messages.

       

      The same issue exists in FDS: NIFI-6732. There is a solution up in PR form: https://github.com/apache/nifi-fds/pull/61

      Attachments

        Issue Links

          Activity

            People

              rfellows Rob Fellows
              rfellows Rob Fellows
              Votes:
              0 Vote for this issue
              Watchers:
              2 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