You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by bu...@apache.org on 2003/02/03 15:56:41 UTC

DO NOT REPLY [Bug 16708] New: - I18N on ActionForwards

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16708>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16708

I18N on ActionForwards

           Summary: I18N on ActionForwards
           Product: Struts
           Version: Nightly Build
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: Controller
        AssignedTo: struts-dev@jakarta.apache.org
        ReportedBy: jdk@jdk.ca


I have a patch which adds a few methods to the ActionMapping class to support 
i18n on the returned ActionForward.  When a Locale object is passed in, it 
checks to see if there is an appropriate localized ActionForward defined.

For example, if you have defined an action, "ConquerEarth", and it's localized 
variant, "ConquerEarth_fr".  If you call ActionMapping.findForward
("ConquerEarth", locale), and locale is initialized appropriately to 'fr', then 
the "ConquerEarth_fr" action will be returned.  Otherwise, "ConquerEarth" will 
be returned.

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-dev-help@jakarta.apache.org