[
https://issues.jboss.org/browse/FORGE-192?page=com.atlassian.jira.plugin....
]
James Perkins commented on FORGE-192:
-------------------------------------
Maybe in the API you could have something like:
{code:java}
public abstract class ConsoleMessages {
public interface MessageKey {
String getKey();
}
public String getMessage(final MessageKey key) {
return getBundle().getString(key.getKey());
}
public String getFormattedMessage(final MessageKey key, final Object param) {
return String.format(getMessage(key), param);
}
public String getFormattedMessage(final MessageKey key, final Object param1, final
Object param2) {
return String.format(getMessage(key), param1, param2);
}
public String getFormattedMessage(final MessageKey key, final Object... params) {
return String.format(getMessage(key), params);
}
protected abstract ResourceBundle getBundle();
}
{code}
Then maybe in the {{ShellPrintWriter}} and {{ShellPrompt}} you have respective
{{ShellPrintWriter.write(ConsoleMessage cm, MessageKey key, Object... paramers)}}
methods.
Make Forge console i18n and L10n compatible
-------------------------------------------
Key: FORGE-192
URL:
https://issues.jboss.org/browse/FORGE-192
Project: Forge
Issue Type: Feature Request
Components: Brainstorming, Shell
Affects Versions: 1.0.6.Final
Reporter: George Gastaldi
Fix For: 2.0.0.Alpha2
Forge should allow different languages to be used, so that the help messages and commands
could be typed on the native speaker developer language.
Example: When a Brazilian Portuguese developer is creating a new project, he would type:
"novo-projeto" instead of "new-project".
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira