You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by "Nathan Bubna (JIRA)" <de...@velocity.apache.org> on 2007/02/21 23:37:05 UTC

[jira] Resolved: (VELTOOLS-75) Add MessageTool.get method that accepts an explicit Locale

     [ https://issues.apache.org/jira/browse/VELTOOLS-75?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nathan Bubna resolved VELTOOLS-75.
----------------------------------

       Resolution: Fixed
    Fix Version/s: 1.4

The valid portions of the patch were committed in revision 510272, with the tabs converted to spaces.

Double check your patches, Christopher, that one was not diffed against the latest version of MessageTool and included a System.out.println().  :)

Thanks though!  I really appreciate all your continued help with the Struts tools!

> Add MessageTool.get method that accepts an explicit Locale
> ----------------------------------------------------------
>
>                 Key: VELTOOLS-75
>                 URL: https://issues.apache.org/jira/browse/VELTOOLS-75
>             Project: Velocity Tools
>          Issue Type: Improvement
>          Components: VelocityStruts
>            Reporter: Christopher Schultz
>            Priority: Trivial
>             Fix For: 1.4, 1.x, 2.0
>
>         Attachments: VELTOOLS-75.diff, VELTOOLS-75a.diff
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org