In r751072 I have fixed an issue I had introduced recently. I have also updated http://docs.ofbiz.org/x/_AM to reflect the UI as it
works now
Jacques
From: "masionas" <[email protected]>
Hi Jacques ,
I have actually tried it from seed file, but an idea is the same as in your
article - creating main content and then association as alternate locale.
Here is the code I used in the seed and it appeared to work finally after
adding en_US and en_GB to general.properties. HOW do I check that it works?
I go to ecommerce and request the link with this category and language set
as US English in dropdown - it shows US English description content. Then I
change the language in dropdown to GB English and request the url again.
Firstly, it shows cached old page with both US items, then I press F5 and it
shows GB language selected in dropdown and GB description content. Here is
the seed data:
<!-- Footer Box 1 -->
<ProductCategory productCategoryId="FOOTER_BOX_1"
productCategoryTypeId="INTERNAL_CATEGORY" categoryName= "Footer Box 1"
categoryImageUrl = "/images/categories/category/FOOTER_BOX_1.jpg"
linkOneImageUrl="/images/categories/linkOne/FOOTER_BOX_1.gif"
description = "" categoryMenuName="" categoryMenuIcon="" linkUrl=""/>
<!-- Content for Footer Box 1 -->
<DataResource dataResourceId="DRFooterBox1EnUS"
dataResourceTypeId="ELECTRONIC_TEXT" localeString="en_US"/>
<DataResource dataResourceId="DRFooterBox1EnGB"
dataResourceTypeId="ELECTRONIC_TEXT" localeString="en_GB"/>
<ElectronicText dataResourceId="DRFooterBox1EnUS" textData="30 day
returns text US English"/>
<ElectronicText dataResourceId="DRFooterBox1EnGB" textData="30 day
returns text GB English"/>
<Content contentId="CFooterBox1EnUS" contentTypeId="DOCUMENT"
dataResourceId="DRFooterBox1EnUS" description="30 day return text US"
localeString="en_US" />
<Content contentId="CFooterBox1EnGB" contentTypeId="DOCUMENT"
dataResourceId="DRFooterBox1EnGB" description="30 day return text GB"
localeString="en_GB"/>
<ProductCategoryContent productCategoryId="FOOTER_BOX_1"
contentId="CFooterBox1EnUS" prodCatContentTypeId="DESCRIPTION"
fromDate="2006-09-22 00:00:00.0"/>
<ContentAssoc contentId="CFooterBox1EnUS" contentIdTo="CFooterBox1EnGB"
contentAssocTypeId="ALTERNATE_LOCALE" fromDate="2006-09-22 00:00:00.0"/>
<!-- End Content for Footer Box 1 -->
<!-- End Footer Box 1 -->
--
View this message in context:
http://www.nabble.com/multilingual-Sub-content-and-alternate-locale-tp20953155p22244043.html
Sent from the OFBiz - User mailing list archive at Nabble.com.