We have different "norms" in the different modules for keys in property files (due to 
the fact that some property files were taken from PHPNukes). We should agree on some 
kind of normalization. Unfortunately i couldn't find any recommendation to stick with 
so we have to agree on something by ourself.

We already have 1 file per module and i think it's ok for everybody.
We could subdivide that file into chunks into the file to be easier to read. Let's 
take the news module example, we have admin stuff and other stuff, we have things 
related to comments, topics and stories, so we could start the key name by specifying 
this 'domain'.
Something like:
   Admin.Comments.DeleteStory   <- for admin stuff
   Comment.Title                           <- for general stuff (admin and not)
with points or with underscores
  Admin_Comments_EnterTitle
  Comment_Title

Then we should decide on the way to name keys using upper/lowercase
  Admin_Comments_EnterTitle
  admin_comments_enterTitle
  ADMIN_COMMENTS_ENTERTITLE
  ADMIN.COMMENTS.ENTER_TITLE

In the code each key is preceded by the name of the module and a '.' like this:  
${news.Admin.Comments.EnterTitle}

What are your thoughts ? any recommendation ? When this will be decided, i will try to 
make a little guide for module developers with norms we use (along with JBoss coding 
rules).

Please comment on stuff above. I personally like {news.Admin.Comments.EnterTitle} 
better but i don't really care as long as we all choose the same notation.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3846870#3846870

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3846870


-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to