[ 
http://www.stripesframework.org/jira/browse/STS-433?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12059#action_12059
 ] 

Nikolaos commented on STS-433:
------------------------------

I have to say I agree with Iwao that doing the following over and over again is 
really taxing for anyone that is building a large Web app that is heavily 
localized.
<fmt:message var="userAddressTitle" key="user.address.title" />
<stripes:text name="user.address" title="${userAddressTitle}"/>

e.g. writing 2 lines for every 1 line of form input or hyperlink may seem like 
an acceptable workaround but actually is quite frustrating and unnecessarily 
tedius... .

The "title" attribute is very useful for a number of reasons (tooltip, SEO, 
etc...) on not only "input" tags but also on "a" tags.

I would highly recommend that Stripes "input" and "a" tags are augmented to 
work the way Reder described which is to basically use the name of the tag and 
do a lookup for ".title" in the resource bundle (assuming the value is not 
provided).  This would not only align to how Stripes handles localization for 
other tags like the "img" tag where it does a look up for ".src" and ".alt" 
attributes if they are not provided but this also addresses Freddy's concern of 
how to differentiate between a string being a value vs. a key for lookup.

Localization may not be a highlight for all projects but where its required it 
needs to be quite thoroughly worked into the web framework.

--Nikolaos



> Localize title attribute for Stripes tags.
> ------------------------------------------
>
>                 Key: STS-433
>                 URL: http://www.stripesframework.org/jira/browse/STS-433
>             Project: Stripes
>          Issue Type: Improvement
>          Components: Tag Library
>    Affects Versions: Release 1.5
>         Environment: Mac OS X 10.4.10, Java 1.5.0_07
>            Reporter: Iwao AVE!
>            Priority: Trivial
>         Attachments: STS-433.patch
>
>
> It would be nice if Stripes tag localizes its title.
> So that we can write
> <stripes:text name="user.address" title="user.address.title" />
> instead of
> <fmt:message var="userAddressTitle" key="user.address.title" />
> <stripes:text name="user.address" title="${userAddressTitle}"/>

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

        

------------------------------------------------------------------------------
Centralized Desktop Delivery: Dell and VMware Reference Architecture
Simplifying enterprise desktop deployment and management using
Dell EqualLogic storage and VMware View: A highly scalable, end-to-end
client virtualization framework. Read more!
http://p.sf.net/sfu/dell-eql-dev2dev
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development

Reply via email to