[jboss-as7-dev] Console: Settings Dialogue

Heiko Braun hbraun at redhat.com
Tue May 3 10:39:35 EDT 2011



Looks like you don't even need to annotations.
It will fallback to the default bundle (en) anyway.

On May 3, 2011, at 3:44 PM, Heiko Braun wrote:

> 
> Stan,
> 
> In the upper right corner you can find a settings dialogue now.
> There isn't much besides the locale to chose from atm. 
> However it allows you to verify other locales.
> 
> If in doubt about the translation (assuming you don't speak german)
> then simply provide the bundle descriptor with a default value:
> 
> 
> @DefaultStringValue("Server Group")
> String serverGroup();
> 
> These will then be applied to all bundles that don't provide a value for this particular key.
> The keys are by default the method names.
> 
> There is an equivalent annotation for message bundles:
> 
> @DefaultMessage("Turns left for player ''{0}'': {1}")
> String turnsLeft(String username, int numTurns);
> 
> Ike
> 
> 
> 
> 
> _______________________________________________
> jboss-as7-dev mailing list
> jboss-as7-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/jboss-as7-dev




More information about the jboss-as7-dev mailing list