[ http://issues.apache.org/jira/browse/OFBIZ-75?page=comments#action_12430211 ] Jacques Le Roux commented on OFBIZ-75: --------------------------------------
Si, Thanks for your review and help. You are right, I think I pasted this lines from minilastviewedcategories.ftl, where a such test is made before, but I did not care in sidedeepcategory.ftl. Anyway I will use your better pattern (was not sure I could use it in one line). I will put the BSH snippet in CategoryWorker. java and create a new patch this afternoon. > I18n of categories > ------------------ > > Key: OFBIZ-75 > URL: http://issues.apache.org/jira/browse/OFBIZ-75 > Project: OFBiz (The Open for Business Project) > Issue Type: Improvement > Components: ecommerce, order > Affects Versions: SVN trunk > Reporter: Jacques Le Roux > Fix For: SVN trunk > > Attachments: i18nCateg.patch, injectGizmos.xml > > > I propose this patch for i18n of categories. I found 3 places where I had to > do something : eCommerce (Browse Categories and Last Categories) and > creation of order. > I wrote it in BSH/FTL but I'm now asking myself whether it would not be > better to write BSH part as a method of CategoryWorker. Because it's used in > 2 files and could be consuming (not sure of overhead, cache ?). > Attached is a data file wich creates DataResources (DESCRIPTION) in french > and english for Gizmos categories. You may use it for test but have to delete > the Gizmos categories (100, 101, 102) descriptions to see the changes > (descriptions overrides else) > I think I'll do something also for Catalog ASA I I'll find some time to... > I did not change the MIT headers to ASL 2. I can do it in another patch if > this one is OK and there is no pb with this change. > Jacques -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
