[OFBiz] SVN: r7557 - in trunk/applications/order: config entitydef webapp/ordermgr/order
jacopo@svn.ofbiz.org
jacopo at svn.ofbiz.org
Wed May 10 10:29:51 CDT 2006
Author: jacopo
Date: 2006-05-10 10:29:38 -0500 (Wed, 10 May 2006)
New Revision: 7557
Added:
trunk/applications/order/config/OrderEntityLabels.properties
trunk/applications/order/config/OrderEntityLabels_it.properties
Modified:
trunk/applications/order/entitydef/entitymodel.xml
trunk/applications/order/webapp/ordermgr/order/findOrders.ftl
Log:
Implemented i18n of OrderType's description.
Added: trunk/applications/order/config/OrderEntityLabels.properties
===================================================================
--- trunk/applications/order/config/OrderEntityLabels.properties 2006-05-10 14:51:08 UTC (rev 7556)
+++ trunk/applications/order/config/OrderEntityLabels.properties 2006-05-10 15:29:38 UTC (rev 7557)
@@ -0,0 +1,19 @@
+#####################################################################
+#
+# Copyright 2001-2006 The Apache Software Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License"); you may not
+# use this file except in compliance with the License. You may obtain a copy of
+# the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+# License for the specific language governing permissions and limitations
+# under the License.
+#####################################################################
+
+OrderType.description.PURCHASE_ORDER=Purchase
+OrderType.description.SALES_ORDER=Sales
Property changes on: trunk/applications/order/config/OrderEntityLabels.properties
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ "Date Rev Author URL Id"
Name: svn:eol-style
+ native
Added: trunk/applications/order/config/OrderEntityLabels_it.properties
===================================================================
--- trunk/applications/order/config/OrderEntityLabels_it.properties 2006-05-10 14:51:08 UTC (rev 7556)
+++ trunk/applications/order/config/OrderEntityLabels_it.properties 2006-05-10 15:29:38 UTC (rev 7557)
@@ -0,0 +1,19 @@
+#####################################################################
+#
+# Copyright 2001-2006 The Apache Software Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License"); you may not
+# use this file except in compliance with the License. You may obtain a copy of
+# the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+# License for the specific language governing permissions and limitations
+# under the License.
+#####################################################################
+
+OrderType.description.PURCHASE_ORDER=Acquisto
+OrderType.description.SALES_ORDER=Vendite
Property changes on: trunk/applications/order/config/OrderEntityLabels_it.properties
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ "Date Rev Author URL Id"
Name: svn:eol-style
+ native
Modified: trunk/applications/order/entitydef/entitymodel.xml
===================================================================
--- trunk/applications/order/entitydef/entitymodel.xml 2006-05-10 14:51:08 UTC (rev 7556)
+++ trunk/applications/order/entitydef/entitymodel.xml 2006-05-10 15:29:38 UTC (rev 7557)
@@ -1030,6 +1030,7 @@
</entity>
<entity entity-name="OrderType"
package-name="org.ofbiz.order.order"
+ default-resource-name="OrderEntityLabels"
title="Order Type Entity">
<field name="orderTypeId" type="id-ne"></field>
<field name="parentTypeId" type="id-ne"></field>
Modified: trunk/applications/order/webapp/ordermgr/order/findOrders.ftl
===================================================================
--- trunk/applications/order/webapp/ordermgr/order/findOrders.ftl 2006-05-10 14:51:08 UTC (rev 7556)
+++ trunk/applications/order/webapp/ordermgr/order/findOrders.ftl 2006-05-10 15:29:38 UTC (rev 7557)
@@ -154,12 +154,12 @@
<td>
<select name='orderTypeId' class='selectBox'>
<#if currentType?has_content>
- <option value="${currentType.orderTypeId}">${currentType.description}</option>
+ <option value="${currentType.orderTypeId}">${currentType.get("description", locale)}</option>
<option value="${currentType.orderTypeId}">---</option>
</#if>
<option value="ANY">${uiLabelMap.CommonAnyOrderType}</option>
<#list orderTypes as orderType>
- <option value="${orderType.orderTypeId}">${orderType.description}</option>
+ <option value="${orderType.orderTypeId}">${orderType.get("description", locale)}</option>
</#list>
</select>
</td>
More information about the Svn
mailing list