[jboss-dev] Localization, Resource.properties

Thomas Heute theute at redhat.com
Fri Aug 10 02:53:58 EDT 2007


I'm looking for best practice concerning the keys you use for your 
resource bundles properties keys. And advantages/drawbacks you know 
about what you are using.

First i used some context prefixed English strings like:

Registration_AskLogin = Please enter a login
Connection_AskLogin = Your login

The main advantage not seen on this example, is that it gives a bit of 
context for the translator, it helps sometimes.

I could use:

Please_enter_a_login = Please enter a login
Your_login = Your login

But in some language and certain scenario, "Your login" could be said in 
a different manner depending on the context.

I could also use:
Please\ enter\ a\ login = Please enter a login
Your\ login = Your login

But that would suck ;) JSF EL wouldn't like it.


Thanks if you can help.





More information about the jboss-development mailing list