Uploaded image for project: 'Velocity Tools'
  1. Velocity Tools
  2. VELTOOLS-75

Add MessageTool.get method that accepts an explicit Locale

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • None
    • 1.x, 1.4, 2.x, 3.0
    • VelocityStruts
    • None

    Description

      Perhaps this does not come up very often, but sometimes you want to display a message in a language that is not the current user's current locale.

      For instance, we are adding multi-language capability to our product, and I want to be able to display a list of languages for which the text "Switch to [language]" is displayed in the target language, not the user's current language (because if they can't read English, it's going to be hard for them to read "Switch to Your Language".

      I propose the addition of a getMessage method that allows you to explicitly indicate the locale to use.

      Attachments

        1. VELTOOLS-75.diff
          1 kB
          Christopher Schultz
        2. VELTOOLS-75a.diff
          3 kB
          Christopher Schultz

        Activity

          People

            Unassigned Unassigned
            chris@christopherschultz.net Christopher Schultz
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: