[ http://issues.apache.org/jira/browse/OFBIZ-75?page=all ]
Jacques Le Roux closed OFBIZ-75.
--------------------------------
Resolution: Fixed
Commited in revision: 449957
Some points to note
The getCategoryContentWrappers is recursive
I have added categories i18n in BreadCrumbs
I have added a demo file : applications/content/data/DemoCategoriesI18nData.xml
I have commented System.out.println(....); lines in CategoryContentWrapper :
public CategoryContentWrapper(GenericValue productCategory, HttpServletRequest
request) {
this.productCategory = productCategory;
this.locale = UtilHttp.getLocale(request);
this.mimeTypeId = "text/html";
/*System.out.println(productCategory);
System.out.println(locale);
System.out.println(mimeTypeId);*/
}
> 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
> Assigned To: Jacques Le Roux
> Fix For: SVN trunk
>
> Attachments: i18nCateg.patch, injectGizmos.xml, injectGizmos2.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