extend-entity default-resource-name and ofbiz patch

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

extend-entity default-resource-name and ofbiz patch

Boris Hamanov
Hello guys,

I am trying to translate order status to a new language. I don't want to
modify CommonEntityLabels.xml so I did this in my entitymodel.xml

    <extend-entity entity-name="StatusItem"
          default-resource-name="HusaTranslateEntityLabels">
    </extend-entity>

Problem is it does not work.

The xsd allows default-resource-name, but maybe the ModelEntity does not
contain the required functionality.

I found this commit here:
http://mail-archives.apache.org/mod_mbox/ofbiz-commits/201002.mbox/%3C20100224235958.EA6D5238897F@...%3E
that seems to add that. But it not is applied in my version of Ofbiz -
apache-ofbiz-09.04.02

Any ideas how to make that work without upgrading ofbiz? Is there a way to
patch ofbiz without modifying the core files? Some hot drop/patch folder or
something similar?
Reply | Threaded
Open this post in threaded view
|

Re: extend-entity default-resource-name and ofbiz patch

Adrian Crum-3
You will need to modify your local copy. Code maintenance should not be
a problem if you create your own patch and keep it with your local project.

-Adrian

On 6/18/2012 9:05 AM, Boris Hamanov wrote:

> Hello guys,
>
> I am trying to translate order status to a new language. I don't want to
> modify CommonEntityLabels.xml so I did this in my entitymodel.xml
>
>      <extend-entity entity-name="StatusItem"
>            default-resource-name="HusaTranslateEntityLabels">
>      </extend-entity>
>
> Problem is it does not work.
>
> The xsd allows default-resource-name, but maybe the ModelEntity does not
> contain the required functionality.
>
> I found this commit here:
> http://mail-archives.apache.org/mod_mbox/ofbiz-commits/201002.mbox/%3C20100224235958.EA6D5238897F@...%3E
> that seems to add that. But it not is applied in my version of Ofbiz -
> apache-ofbiz-09.04.02
>
> Any ideas how to make that work without upgrading ofbiz? Is there a way to
> patch ofbiz without modifying the core files? Some hot drop/patch folder or
> something similar?
>
Reply | Threaded
Open this post in threaded view
|

Re: extend-entity default-resource-name and ofbiz patch

Boris Hamanov
Thanks Adrian! It worked OK.

-----Original Message-----
From: Adrian Crum
Date: 18 юни 2012 г. 11:09 ч.
To: [hidden email]
Subject: Re: extend-entity default-resource-name and ofbiz patch

You will need to modify your local copy. Code maintenance should not be
a problem if you create your own patch and keep it with your local project.

-Adrian

On 6/18/2012 9:05 AM, Boris Hamanov wrote:

> Hello guys,
>
> I am trying to translate order status to a new language. I don't want to
> modify CommonEntityLabels.xml so I did this in my entitymodel.xml
>
>      <extend-entity entity-name="StatusItem"
>            default-resource-name="HusaTranslateEntityLabels">
>      </extend-entity>
>
> Problem is it does not work.
>
> The xsd allows default-resource-name, but maybe the ModelEntity does not
> contain the required functionality.
>
> I found this commit here:
> http://mail-archives.apache.org/mod_mbox/ofbiz-commits/201002.mbox/%3C20100224235958.EA6D5238897F@...%3E
> that seems to add that. But it not is applied in my version of Ofbiz -
> apache-ofbiz-09.04.02
>
> Any ideas how to make that work without upgrading ofbiz? Is there a way to
> patch ofbiz without modifying the core files? Some hot drop/patch folder
> or
> something similar?
>