[jira] Créée: (OFBIZ-75) I18n of categories

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
35 messages Options
12
Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-75) I18n of categories

Nicolas Malin (Jira)
    [ http://issues.apache.org/jira/browse/OFBIZ-75?page=comments#action_12433979 ]
           
Jacques Le Roux commented on OFBIZ-75:
--------------------------------------

Thanks Marco,

Dis you try it ?

> 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
>
>
> 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

       
Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-75) I18n of categories

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)
    [ http://issues.apache.org/jira/browse/OFBIZ-75?page=comments#action_12433997 ]
           
Marco Risaliti commented on OFBIZ-75:
-------------------------------------

Hi Jacques,

No I'm sorry but I haven't tried your patch because I haven't the time to test it but I think it's a good idea.

Marco

> 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
>
>
> 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

       
Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-75) I18n of categories

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)
    [ http://issues.apache.org/jira/browse/OFBIZ-75?page=comments#action_12434075 ]
           
Jacques Le Roux commented on OFBIZ-75:
--------------------------------------

OK, waiting for your test...

Thanks,

> 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
>
>
> 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

       
Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (OFBIZ-75) I18n of categories

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)
     [ http://issues.apache.org/jira/browse/OFBIZ-75?page=all ]

Marco Risaliti updated OFBIZ-75:
--------------------------------

    Attachment: injectGizmos_2.xml

Hi Jacques,

I have applied your patch and I have tried it with italian seed data that I will upload to you.
I have seen that if I try to switch from english to italian it's working correctly but if I switch from italian to french the labels are not shown in french.
I have not seen how is implemented and what does it need to work correctly probably it's only my seed daata is not correctly configurated.
I didn't like very much that the localized categories are showed only if the description of the product category is null , probably there is a more elegant way.

Thanks
Marco


> 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, injectGizmos_2.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

       
Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-75) I18n of categories

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)
    [ http://issues.apache.org/jira/browse/OFBIZ-75?page=comments#action_12436124 ]
           
Jacques Le Roux commented on OFBIZ-75:
--------------------------------------

Thank you for the try Marco,

I see no reason why french labels should not work. So I guess that there is something in your seed data. ASA you will send them I will see that point.

For "categories are showed only if description of product category is null" please take a look at this David's comment taken from http://issues.apache.org/jira/browse/OFBIZ-81?page=comments#action_12419847
________________________________________
David E. Jones [08/juil./06 06:56 AM]

For the Product description stuff: there isn't really any redundancy. If the fields on the Product entity are populated it won't look at the corresponding ProductContent records, that is part of the pattern. It works out very nicely and support the needs of both camps: those that want the simple fields and those that want the managed content, and this even though it was implemented this way incrementally as the fields on the Product entity were there from the beginning, and the ProductContent stuff was added later. The way this works has nothing to do with ECAs or anything. Copying that data over would kill the flexibility of the ProductContent model.

See also my comment just after (and it's an interesting issue about this subject).

Of course it works the same for categories : this is the "Override Simple Fields" concept (OSF) (better understood when you use OFBiz in english depending of the translation in you language).

Of course how this UI works is not easy to understand at the beginnig. But ASA you know the OSF concept it's clear. Moreover you may try to use content management with your own seed data to better understang the OSFconcept ( a great word for a simple thing but it's intended to set up the idea ;o)

> 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, injectGizmos_2.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

       
Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-75) I18n of categories

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)
    [ http://issues.apache.org/jira/browse/OFBIZ-75?page=comments#action_12436126 ]
           
Jacques Le Roux commented on OFBIZ-75:
--------------------------------------

Marco,

Sorry I did not check before my answer and I see your seed data know. I will try to understand ...

> 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, injectGizmos_2.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

       
Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-75) I18n of categories

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)
    [ http://issues.apache.org/jira/browse/OFBIZ-75?page=comments#action_12436145 ]
           
Marco Risaliti commented on OFBIZ-75:
-------------------------------------

Hi Jacques,

I'm sorry but I'm not agree with this behaviour if I have understood correctly.
Normally to localize descriptions we will take before if exists a localized description and only after we take the general ones.
For example also the uiLabels and EntityLabels in OFBIZ use this behaviour.
I don't like to set the description of the categories to null because what happens in case there aren't any alternative locale defined for the selected locale/categories ?
Probably it's shows a blanks description ?
What's happens in all the application where this change is not applied its probably shows a null description ?
In my opinion it's better to check if there is an alternative locale definition and in case it doesn't exists take the description of thecategory without set to null the category description.
Anyway I think that this is a great improvement to all the users that has internazional ecommerce sites and want to see different categories description for different locales.

Thanks a lot
Marco



> 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, injectGizmos_2.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

       
Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-75) I18n of categories

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)
    [ http://issues.apache.org/jira/browse/OFBIZ-75?page=comments#action_12436242 ]
           
Jacques Le Roux commented on OFBIZ-75:
--------------------------------------

Marco,

As explained David this is how works this functionnality for the moment. This is true for products (already in place) and with this patch for categories. Some work remains to be done for Catalog.

If I'm not wrong it's how it works and it's impossible to have both : it's override concept (like in objects methods if you prefer)

So for categories
. either you use description in Catalog/Category/Content Override Simple Fields/Description and in this case you can't have localisation (quicker but not i18n)
. either you don't use Override Simple Fields/Description (let blank) and in this case must you provide Content/Data Resource structures in each languages you want to use (easier with seed data but you may also use content manager)

BTW I began this morning to take a look at your data but I did not get enough time to finish. Will see that ASAP.

> 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, injectGizmos_2.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

       
Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-75) I18n of categories

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)
    [ http://issues.apache.org/jira/browse/OFBIZ-75?page=comments#action_12436444 ]
           
Jacques Le Roux commented on OFBIZ-75:
--------------------------------------

Hi Marco,

I tested with the corrected/simplified/updated injectGizmos2.xml above and it works :o) May you confirm this point please ?

> 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, injectGizmos_2.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

       
Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (OFBIZ-75) I18n of categories

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)
     [ http://issues.apache.org/jira/browse/OFBIZ-75?page=all ]

Jacques Le Roux updated OFBIZ-75:
---------------------------------

    Attachment:     (was: injectGizmos_2.xml)

> 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

       
Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (OFBIZ-75) I18n of categories

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)
     [ http://issues.apache.org/jira/browse/OFBIZ-75?page=all ]

Jacques Le Roux updated OFBIZ-75:
---------------------------------

    Attachment: injectGizmos2.xml

> 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

       
Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-75) I18n of categories

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)
    [ http://issues.apache.org/jira/browse/OFBIZ-75?page=comments#action_12436611 ]
           
Marco Risaliti commented on OFBIZ-75:
-------------------------------------

Hi Jacques,

I have tested the new attached seed data and it's working correctly on the ecommerce/catalog applications.

Thanks
Marco


> 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

       
Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-75) I18n of categories

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)
    [ http://issues.apache.org/jira/browse/OFBIZ-75?page=comments#action_12436617 ]
           
Jacques Le Roux commented on OFBIZ-75:
--------------------------------------

Thanks for your test Marco,

I will commit it ASAP. I think that I will commit also a seed data file. Thus if someone wants to test categories i18n (at least on english, italian and french for the moment...) it will be possible :  just have to delete the categories descriptions (which override the i10n of categories contents).

> 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

       
Reply | Threaded
Open this post in threaded view
|

[jira] Closed: (OFBIZ-75) I18n of categories

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)
     [ 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

       
Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-75) I18n of categories

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)
    [ http://issues.apache.org/jira/browse/OFBIZ-75?page=comments#action_12437780 ]
           
Jacques Le Roux commented on OFBIZ-75:
--------------------------------------

I only added Demo Catalog categories in about DemoCategoriesI18nData.xml.

To see international values (at least english, french an italian for now) you only have to delete Demo Catalog categories descriptions

> 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

       
12