Date: 2004-10-06T07:07:10 Editor: JamesMitchell <[EMAIL PROTECTED]> Wiki: Apache Struts Wiki Page: ShortTermPlansForJamesMitchell URL: http://wiki.apache.org/struts/ShortTermPlansForJamesMitchell
Update with i18n wishlist Change Log: ------------------------------------------------------------------------------ @@ -1,4 +1,46 @@ -Short term plans for James Mitchell: +James Mitchell: + * '''[[GetText(Commons i18n)]]''' http://jakarta.apache.org/commons/sandbox/i18n + * properties file based configuration + * RDBMS based configuration (like I've already done in commons-resources) + * Struts plugin that will load and configure commons-i18n for my Struts applications + * JSP taglib that can provide the same functionality as bean:message + * Additional types of LocalizedMessages or LocalizedExceptions: + * System error + * Error + * Warning + * Alert + * Flag + * Info + * Add new entry for icon(s) + {{{ + <message id="validationFailed"> + <locale language="en"> + <entry key="title">Parameter {0} invalid</entry> + <entry key="text">The given value of the parameter {0} is invalid</entry> + <entry key="summary">Value of parameter {0} invalid</entry> + <entry key="details">The given value {1} of parameter {0} is invalid.</entry> + <entry key="small-icon">/images/some-icon-small.jpg</entry> + <entry key="large-icon">/images/some-icon-large.jpg</entry> + </locale> + }}} + * New MessageManager impl that can assemble messages based on a config file who's entries simply point to existing i18n'd properties file(s) keys. + {{{ + # This is my ApplicationResources_en.properties file (struts app) + global.validation.failed.title =Parameter {0} invalid + global.validation.failed.text =The given value of the parameter {0} is invalid + global.validation.failed.summary =Value of parameter {0} invalid + global.validation.failed.details =The given value {1} of parameter {0} is invalid. + global.validation.failed.small-icon=/images/some-icon-small.jpg + global.validation.failed.large-icon=/images/some-icon-large.jpg + }}} + and i want to configure like this + {{{ + ... + <message id="validationFailed" key="global.validation.failed"/> + ... + }}} + + * '''[[GetText(Commons Resource)]]''' http://jakarta.apache.org/commons/sandbox/resources * create new implementations that use: * DbUtils (http://jakarta.apache.org/commons/dbutils/) @@ -13,8 +55,7 @@ * '''[[GetText(Apache Struts)]]''' * Refactor taglib tests to remove dependency on commons-lang * Create a Struts plugin that acts lets a developer use any distribution of commons-resources with Struts 1.x - * Plugin that allows runtime editing of message resources (let's you edit via browser popup any/all messages accessed in a give request) - This is mostly intended for database impls + * Plugin that allows runtime editing of message resources (let's you edit via browser popup any/all messages accessed in a give request). This is intended for database impls ---- --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]