On Thu, Sep 25, 2008 at 08:43:45PM -0700, Diggory Mark wrote:
> Maybe an example of how to do it using MessageFormat and JSTL would  
> help get the point across...
> 
> Take...
> 
> Messages.properties:
> jsp.home.search2 = Enter some text in the box below to search DSpace.
> 
> home.jsp
> <p><label for="tquery"><fmt:message key="jsp.home.search2"/></label></p>
> 
> ---------- replace it with ---------------------------
> 
> Messages.properties:
> jsp.home.search2 = Enter some text in the box below to search {0}.
> 
> home.jsp:
> <p><label for="tquery">
> <fmt:message key="jsp.home.search2">
>       <fmt:param value='<%=ConfigurationManager.getProperty("dspace.name") 
> %>'/>
> </fmt:message>
> 
> </label></p>

I dislike turning something fairly readable:

  browse.page-title = Browsing {dspace.name.short}

into something you have to find and grub through a JSP to comprehend:

  browse.page-title = Browsing {0}

but if this method will satisfy everybody then I will do it.

-- 
Mark H. Wood, Lead System Programmer   [EMAIL PROTECTED]
Typically when a software vendor says that a product is "intuitive" he
means the exact opposite.

Attachment: pgpZ8eEGVFwat.pgp
Description: PGP signature

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Dspace-devel mailing list
Dspace-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-devel

Reply via email to