You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by "Christopher Schultz (JIRA)" <de...@velocity.apache.org> on 2007/02/21 17:56:06 UTC
[jira] Updated: (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 ]
Christopher Schultz updated VELTOOLS-75:
----------------------------------------
Attachment: VELTOOLS-75a.diff
More complete patch which includes a get(..) method that takes a List as well as the one that takes an object array.
> 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.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