svn commit: r478365 - in /incubator/ofbiz/trunk/applications/ecommerce: data/DemoProduct.xml data/DemoProductCategoriesI18nData.xml data/DemoProductI18nData.xml ofbiz-component.xml

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

svn commit: r478365 - in /incubator/ofbiz/trunk/applications/ecommerce: data/DemoProduct.xml data/DemoProductCategoriesI18nData.xml data/DemoProductI18nData.xml ofbiz-component.xml

sichen
Author: sichen
Date: Wed Nov 22 15:09:30 2006
New Revision: 478365

URL: http://svn.apache.org/viewvc?view=rev&rev=478365
Log:
an example of product name and description i18n.  SOMEBODY PLEASE CHECK MY FRENCH AND ITALIAN

Added:
    incubator/ofbiz/trunk/applications/ecommerce/data/DemoProductI18nData.xml
Modified:
    incubator/ofbiz/trunk/applications/ecommerce/data/DemoProduct.xml
    incubator/ofbiz/trunk/applications/ecommerce/data/DemoProductCategoriesI18nData.xml
    incubator/ofbiz/trunk/applications/ecommerce/ofbiz-component.xml

Modified: incubator/ofbiz/trunk/applications/ecommerce/data/DemoProduct.xml
URL: http://svn.apache.org/viewvc/incubator/ofbiz/trunk/applications/ecommerce/data/DemoProduct.xml?view=diff&rev=478365&r1=478364&r2=478365
==============================================================================
--- incubator/ofbiz/trunk/applications/ecommerce/data/DemoProduct.xml (original)
+++ incubator/ofbiz/trunk/applications/ecommerce/data/DemoProduct.xml Wed Nov 22 15:09:30 2006
@@ -168,7 +168,7 @@
     <Product productId="GZ-1006-4" productTypeId="FINISHED_GOOD" primaryProductCategoryId="102" productName="Open Gizmo (MIT)" internalName="Open Gizmo (MIT)" description="Gizmo based on open standards" longDescription="Highest quality gizmo around." taxable="Y" chargeShipping="Y" autoCreateKeywords="Y" isVirtual="N" isVariant="Y" createdDate="2001-05-13 12:00:00.0" createdByUserLogin="admin" lastModifiedDate="2001-05-13 12:00:00.0" lastModifiedByUserLogin="admin"/>
 
     <Product productId="GZ-2002" productTypeId="FINISHED_GOOD" primaryProductCategoryId="101" productName="Square Gizmo" internalName="Square Gizmo" description="A square gizmo" taxable="Y" chargeShipping="Y" autoCreateKeywords="Y" isVirtual="N" isVariant="N" createdDate="2001-05-13 12:00:00.0" createdByUserLogin="admin" lastModifiedDate="2001-05-13 12:00:00.0" lastModifiedByUserLogin="admin"/>
-    <Product productId="GZ-2644" productTypeId="FINISHED_GOOD" primaryProductCategoryId="101" productName="Round Gizmo" internalName="Round Gizmo" description="Round Gizmo w/ Lights" longDescription="A small round gizmo with multi-colored lights. Works great in the dark. Small and compact." isVirtual="N" isVariant="N" quantityIncluded="100.0" weight="7.0"/>
+    <Product productId="GZ-2644" productTypeId="FINISHED_GOOD" primaryProductCategoryId="101" internalName="Round Gizmo" longDescription="A small round gizmo with multi-colored lights. Works great in the dark. Small and compact." isVirtual="N" isVariant="N" quantityIncluded="100.0" weight="7.0"/>
     <Product productId="GZ-5005" productTypeId="FINISHED_GOOD" primaryProductCategoryId="101" productName="Purple Gizmo" internalName="Purple Gizmo" description="The stylish gizmo" taxable="Y" chargeShipping="Y" autoCreateKeywords="Y" isVirtual="N" isVariant="N" createdDate="2001-05-13 12:00:00.0" createdByUserLogin="admin" lastModifiedDate="2001-05-13 12:00:00.0" lastModifiedByUserLogin="admin"/>
     <Product productId="GZ-7000" productTypeId="FINISHED_GOOD" primaryProductCategoryId="102" productName="Massive Gizmo" internalName="Massive Gizmo" description="The biggest gizmo ever" taxable="Y" chargeShipping="Y" autoCreateKeywords="Y" isVirtual="N" isVariant="N" createdDate="2001-05-13 12:00:00.0" createdByUserLogin="admin" lastModifiedDate="2001-05-13 12:00:00.0" lastModifiedByUserLogin="admin"/>
     <Product productId="GZ-8544" productTypeId="FINISHED_GOOD" primaryProductCategoryId="102" productName="Big Gizmo" internalName="Big Gizmo" description="Big Gizmo w/ Legs" longDescription="A large gizmo with legs. Walks on its own. Does not require a power supply." isVirtual="N" isVariant="N" quantityIncluded="100.0" weight="12.0"/>

Modified: incubator/ofbiz/trunk/applications/ecommerce/data/DemoProductCategoriesI18nData.xml
URL: http://svn.apache.org/viewvc/incubator/ofbiz/trunk/applications/ecommerce/data/DemoProductCategoriesI18nData.xml?view=diff&rev=478365&r1=478364&r2=478365
==============================================================================
--- incubator/ofbiz/trunk/applications/ecommerce/data/DemoProductCategoriesI18nData.xml (original)
+++ incubator/ofbiz/trunk/applications/ecommerce/data/DemoProductCategoriesI18nData.xml Wed Nov 22 15:09:30 2006
@@ -15,14 +15,14 @@
 under the License.
 -->
 <entity-engine-xml>
-    <!-- Gizmos category -->
+   <!-- Gizmos category -->
     <DataResource dataResourceId="DR100DESCFR" dataResourceTypeId="ELECTRONIC_TEXT" localeString="fr"/>  
     <DataResource dataResourceId="DR100DESCIT" dataResourceTypeId="ELECTRONIC_TEXT" localeString="it"/>  
     <DataResource dataResourceId="DR100DESCEN" dataResourceTypeId="ELECTRONIC_TEXT" localeString="en"/>    
 
-    <ElectronicText dataResourceId="DR100DESCFR" textData="Gizmos fr"/>
-    <ElectronicText dataResourceId="DR100DESCIT" textData="Gizmos it"/>
-    <ElectronicText dataResourceId="DR100DESCEN" textData="Gizmos en"/>
+    <ElectronicText dataResourceId="DR100DESCFR" textData="Gizmos francais"/>
+    <ElectronicText dataResourceId="DR100DESCIT" textData="Gizmos italiano"/>
+    <ElectronicText dataResourceId="DR100DESCEN" textData="Gizmos (english)"/>
 
     <Content contentId="C100DESCFR" contentTypeId="DOCUMENT" dataResourceId="DR100DESCFR" description="DESCRIPTION FR Gizmos" localeString="fr" />
     <Content contentId="C100DESCIT" contentTypeId="DOCUMENT" dataResourceId="DR100DESCIT" description="DESCRIPTION IT Gizmos" localeString="it" />
@@ -74,9 +74,9 @@
     <DataResource dataResourceId="DR200DESCIT" dataResourceTypeId="ELECTRONIC_TEXT" localeString="it"/>  
     <DataResource dataResourceId="DR200DESCEN" dataResourceTypeId="ELECTRONIC_TEXT" localeString="en"/>    
 
-    <ElectronicText dataResourceId="DR200DESCFR" textData="Widgets fr"/>
-    <ElectronicText dataResourceId="DR200DESCIT" textData="Widgets it"/>
-    <ElectronicText dataResourceId="DR200DESCEN" textData="Widgets en"/>
+    <ElectronicText dataResourceId="DR200DESCFR" textData="Widgets francais"/>
+    <ElectronicText dataResourceId="DR200DESCIT" textData="Widgets italiano"/>
+    <ElectronicText dataResourceId="DR200DESCEN" textData="Widgets (english)"/>
 
     <Content contentId="C200DESCFR" contentTypeId="DOCUMENT" dataResourceId="DR200DESCFR" description="DESCRIPTION FR Gizmos" localeString="fr" />
     <Content contentId="C200DESCIT" contentTypeId="DOCUMENT" dataResourceId="DR200DESCIT" description="DESCRIPTION IT Gizmos" localeString="it" />
@@ -146,9 +146,9 @@
     <DataResource dataResourceId="DR20111DESCIT" dataResourceTypeId="ELECTRONIC_TEXT" localeString="it"/>  
     <DataResource dataResourceId="DR20111DESCEN" dataResourceTypeId="ELECTRONIC_TEXT" localeString="en"/>    
 
-    <ElectronicText dataResourceId="DR20111DESCFR" textData="Micro Widgets fr"/>
-    <ElectronicText dataResourceId="DR20111DESCIT" textData="Micro Widgets it"/>
-    <ElectronicText dataResourceId="DR20111DESCEN" textData="Micro Widgets en"/>    
+    <ElectronicText dataResourceId="DR20111DESCFR" textData="Micro Widgets francais"/>
+    <ElectronicText dataResourceId="DR20111DESCIT" textData="Micro Widgets italiano"/>
+    <ElectronicText dataResourceId="DR20111DESCEN" textData="Micro Widgets (english)"/>    
 
     <Content contentId="C20111DESCFR" contentTypeId="DOCUMENT" dataResourceId="DR20111DESCFR" description="DESCRIPTION FR Micro Widgets" localeString="fr" />
     <Content contentId="C20111DESCIT" contentTypeId="DOCUMENT" dataResourceId="DR20111DESCIT" description="DESCRIPTION IT Micro Widgets" localeString="it" />

Added: incubator/ofbiz/trunk/applications/ecommerce/data/DemoProductI18nData.xml
URL: http://svn.apache.org/viewvc/incubator/ofbiz/trunk/applications/ecommerce/data/DemoProductI18nData.xml?view=auto&rev=478365
==============================================================================
--- incubator/ofbiz/trunk/applications/ecommerce/data/DemoProductI18nData.xml (added)
+++ incubator/ofbiz/trunk/applications/ecommerce/data/DemoProductI18nData.xml Wed Nov 22 15:09:30 2006
@@ -0,0 +1,54 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+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.
+-->
+<entity-engine-xml>
+    <!-- Example of a product with many languages -->
+    <DataResource dataResourceId="GZ2644DESCFR" dataResourceTypeId="ELECTRONIC_TEXT" localeString="fr"/>  
+    <DataResource dataResourceId="GZ2644DESCIT" dataResourceTypeId="ELECTRONIC_TEXT" localeString="it"/>  
+    <DataResource dataResourceId="GZ2644DESCEN" dataResourceTypeId="ELECTRONIC_TEXT" localeString="en"/>    
+
+    <ElectronicText dataResourceId="GZ2644DESCFR" textData="Gizmo rond avec lumieres"/>
+    <ElectronicText dataResourceId="GZ2644DESCIT" textData="Gizmo rotondo con luces"/>
+    <ElectronicText dataResourceId="GZ2644DESCEN" textData="Round Gizmo with lights"/>
+
+    <Content contentId="GZ2644DESCFR" contentTypeId="DOCUMENT" dataResourceId="GZ2644DESCFR" description="DESCRIPTION FR Round Gizmo" localeString="fr" />
+    <Content contentId="GZ2644DESCIT" contentTypeId="DOCUMENT" dataResourceId="GZ2644DESCIT" description="DESCRIPTION IT Round Gizmo" localeString="it" />
+    <Content contentId="GZ2644DESCEN" contentTypeId="DOCUMENT" dataResourceId="GZ2644DESCEN" description="DESCRIPTION EN Round Gizmo" localeString="en"/>
+
+    <ProductContent productId="GZ-2644" contentId="GZ2644DESCEN" productContentTypeId="DESCRIPTION" fromDate="2006-09-22 00:00:00.0"/>
+
+    <ContentAssoc contentId="GZ2644DESCEN" contentIdTo="GZ2644DESCIT" contentAssocTypeId="ALTERNATE_LOCALE" fromDate="2006-09-22 00:00:00.0"/>
+    <ContentAssoc contentId="GZ2644DESCEN" contentIdTo="GZ2644DESCFR" contentAssocTypeId="ALTERNATE_LOCALE" fromDate="2006-09-22 00:00:00.0"/>
+
+
+    <DataResource dataResourceId="GZ2644NAMEFR" dataResourceTypeId="ELECTRONIC_TEXT" localeString="fr"/>  
+    <DataResource dataResourceId="GZ2644NAMEIT" dataResourceTypeId="ELECTRONIC_TEXT" localeString="it"/>  
+    <DataResource dataResourceId="GZ2644NAMEEN" dataResourceTypeId="ELECTRONIC_TEXT" localeString="en"/>    
+
+    <ElectronicText dataResourceId="GZ2644NAMEFR" textData="Gizmo Rond"/>
+    <ElectronicText dataResourceId="GZ2644NAMEIT" textData="Gizmo Rotondo"/>
+    <ElectronicText dataResourceId="GZ2644NAMEEN" textData="Round Gizmo"/>
+
+    <Content contentId="GZ2644NAMEFR" contentTypeId="DOCUMENT" dataResourceId="GZ2644NAMEFR" NAMEription="NAMERIPTION FR Round Gizmo" localeString="fr" />
+    <Content contentId="GZ2644NAMEIT" contentTypeId="DOCUMENT" dataResourceId="GZ2644NAMEIT" NAMEription="NAMERIPTION IT Round Gizmo" localeString="it" />
+    <Content contentId="GZ2644NAMEEN" contentTypeId="DOCUMENT" dataResourceId="GZ2644NAMEEN" NAMEription="NAMERIPTION EN Round Gizmo" localeString="en"/>
+
+    <ProductContent productId="GZ-2644" contentId="GZ2644NAMEEN" productContentTypeId="PRODUCT_NAME" fromDate="2006-09-22 00:00:00.0"/>
+
+    <ContentAssoc contentId="GZ2644NAMEEN" contentIdTo="GZ2644NAMEIT" contentAssocTypeId="ALTERNATE_LOCALE" fromDate="2006-09-22 00:00:00.0"/>
+    <ContentAssoc contentId="GZ2644NAMEEN" contentIdTo="GZ2644NAMEFR" contentAssocTypeId="ALTERNATE_LOCALE" fromDate="2006-09-22 00:00:00.0"/>
+
+</entity-engine-xml>

Modified: incubator/ofbiz/trunk/applications/ecommerce/ofbiz-component.xml
URL: http://svn.apache.org/viewvc/incubator/ofbiz/trunk/applications/ecommerce/ofbiz-component.xml?view=diff&rev=478365&r1=478364&r2=478365
==============================================================================
--- incubator/ofbiz/trunk/applications/ecommerce/ofbiz-component.xml (original)
+++ incubator/ofbiz/trunk/applications/ecommerce/ofbiz-component.xml Wed Nov 22 15:09:30 2006
@@ -43,6 +43,7 @@
     <entity-resource type="data" reader-name="demo" loader="main" location="data/DemoStandardCosting.xml"/>
     <entity-resource type="data" reader-name="demo" loader="main" location="data/DemoPurchasing.xml"/>
     <entity-resource type="data" reader-name="demo" loader="main" location="data/DemoStoreGiftCertificateSettings.xml"/>
+    <entity-resource type="data" reader-name="demo" loader="main" location="data/DemoProductI18nData.xml"/>
     <entity-resource type="data" reader-name="demo" loader="main" location="data/DemoProductCategoriesI18nData.xml"/>    
     <webapp name="ecommerce"
         title="eCommerce"