Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Convention for keys in message bundles

 
Jiri Pejchal
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,I'm making a localized web application with JSF. Are there any conventions (recommendations)for naming the keys in messages bundles?

I mean something like:
package.filename.formquestion=

Maybe the package name is superfluous (and too long) and should be omitted.

What about grouping messages?
There are also same messages in different files:
some of them could be shared but others may mean something different
depending on the context.
 
Krishna Srinivasan
Ranch Hand
Posts: 1862
Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am working on JSF for the past one year. I don't thing there is a naming convention for the messages. We cann't use .(dot) because it will consider it as an object. I too had the same problem of finding the good convention for messages used in JSF. :p
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic