Hi David,
I agree with you but there are a lot of Content.description
translation and PartyClassification.description labels and in this
case we need to remove it or use it (adding default-resource-name on
the entity).
Anyway I can revert the default-resource-name for those specific
entities or remove those labels.
What did you think of it ?
Thanks
Marco
Il giorno 27/feb/09, alle ore 22:29, David E Jones ha scritto:
Are the entity field labels actually used for all of these entities?
Generally this feature ONLY makes sense for things that are part of
seed data, things that may be entered by users should use other
patterns for i18n.
The suspect entities that are included here include:
- Content (has the alternate locale associated content pattern for
i18n)
- PartyClassificationGroup
The rest look fine, and are populated by seed data (ie data that is
maintained with code).
-David
On Feb 27, 2009, at 1:26 PM, [email protected] wrote:
Author: mrisaliti
Date: Fri Feb 27 20:26:54 2009
New Revision: 748683
URL: http://svn.apache.org/viewvc?rev=748683&view=rev
Log:
Some missing default-resource-name for entity labels.
Modified:
ofbiz/trunk/applications/content/entitydef/entitymodel.xml
ofbiz/trunk/applications/order/entitydef/entitymodel.xml
ofbiz/trunk/applications/party/entitydef/entitymodel.xml
Modified: ofbiz/trunk/applications/content/entitydef/entitymodel.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/entitydef/entitymodel.xml?rev=748683&r1=748682&r2=748683&view=diff
=
=
=
=
=
=
=
=
=
=====================================================================
--- ofbiz/trunk/applications/content/entitydef/entitymodel.xml
(original)
+++ ofbiz/trunk/applications/content/entitydef/entitymodel.xml Fri
Feb 27 20:26:54 2009
@@ -150,6 +150,7 @@
<entity entity-name="Content"
package-name="org.ofbiz.content.content"
+ default-resource-name="ContentEntityLabels"
title="Content Entity">
<field name="contentId" type="id-ne"></field>
<field name="contentTypeId" type="id"></field>
@@ -412,6 +413,7 @@
</view-entity>
<entity entity-name="ContentAssocPredicate"
package-name="org.ofbiz.content.content"
+ default-resource-name="ContentEntityLabels"
title="Content Association Predicate Entity">
<field name="contentAssocPredicateId" type="id-ne"></field>
<field name="description" type="description"></field>
@@ -731,6 +733,7 @@
</entity>
<entity entity-name="CharacterSet"
package-name="org.ofbiz.content.data"
+ default-resource-name="ContentEntityLabels"
title="Character Set Entity">
<field name="characterSetId" type="id-long-ne"></field>
<field name="description" type="description"></field>
@@ -1093,6 +1096,7 @@
</entity>
<entity entity-name="DocumentType"
package-name="org.ofbiz.content.document"
+ default-resource-name="ContentEntityLabels"
title="Document Type Entity">
<field name="documentTypeId" type="id-ne"></field>
<field name="parentTypeId" type="id-ne"></field>
Modified: ofbiz/trunk/applications/order/entitydef/entitymodel.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/entitydef/entitymodel.xml?rev=748683&r1=748682&r2=748683&view=diff
=
=
=
=
=
=
=
=
=
=====================================================================
--- ofbiz/trunk/applications/order/entitydef/entitymodel.xml
(original)
+++ ofbiz/trunk/applications/order/entitydef/entitymodel.xml Fri
Feb 27 20:26:54 2009
@@ -253,6 +253,7 @@
</entity>
<entity entity-name="OrderBlacklistType"
package-name="org.ofbiz.order.order"
+ default-resource-name="OrderEntityLabels"
title="Order Blacklist Type Entity">
<field name="orderBlacklistTypeId" type="id-ne"></field>
<field name="description" type="description"></field>
@@ -912,6 +913,7 @@
</entity>
<entity entity-name="OrderItemType"
package-name="org.ofbiz.order.order"
+ default-resource-name="OrderEntityLabels"
title="Order Item Type Entity">
<field name="orderItemTypeId" type="id-ne"></field>
<field name="parentTypeId" type="id-ne"></field>
@@ -1276,6 +1278,7 @@
</entity>
<entity entity-name="OrderContentType"
package-name="org.ofbiz.order.order"
+ default-resource-name="OrderEntityLabels"
title="Order Content Type Entity">
<field name="orderContentTypeId" type="id-ne"></field>
<field name="parentTypeId" type="id"></field>
Modified: ofbiz/trunk/applications/party/entitydef/entitymodel.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/entitydef/entitymodel.xml?rev=748683&r1=748682&r2=748683&view=diff
=
=
=
=
=
=
=
=
=
=====================================================================
--- ofbiz/trunk/applications/party/entitydef/entitymodel.xml
(original)
+++ ofbiz/trunk/applications/party/entitydef/entitymodel.xml Fri
Feb 27 20:26:54 2009
@@ -1800,6 +1800,7 @@
</entity>
<entity entity-name="PartyClassificationGroup"
package-name="org.ofbiz.party.party"
+ default-resource-name="PartyEntityLabels"
title="Party Classification Group Entity">
<field name="partyClassificationGroupId" type="id-ne"></field>
<field name="partyClassificationTypeId" type="id"></field>