Named parameters in localized messages
--------------------------------------

                 Key: SEAMINTL-4
                 URL: https://jira.jboss.org/browse/SEAMINTL-4
             Project: Seam i18n
          Issue Type: Feature Request
          Components: Messages
            Reporter: Aslak Knutsen
            Priority: Minor


When coming back to localized message files after being away for a while, it's 
always a problem to remember what object/value parameter {2} is suppose to be. 
At this point you have to find the specific message location in the source code 
and read through the code to figure out what's actually being passed in.

It's also hard to send the file over to someone for translation, because they 
most likely also need an explanation of what {2} is. 

It would be nice to be able to used named parameters, but with Java(< 7) that 
is a bit of a pain to code.

Would it be possible with some middle ground;
e.g. A name/alias in the message file that is ignored by the parser, but there 
just for documentation. 
(Maybe even function as a named parameter when Java 7 comes out?)

"Welcome {0:firstName} {1:lastName}!"



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
seam-issues mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/seam-issues

Reply via email to