I'm interested in having multiple mount points to support various
languages. For instance: http://www.domain.com/en/control/main http://www,domain.com/fr/control/main ...etc.. Is there an easy way to force ofbiz (hopefully using a single website store) to render a certain language based on mount point, or do I have to do fancy Apache redirects. I'm hoping that doing this, along with using sitemaps.xml would allow a site to be indexed in multiple languages. Does anyone have an example on how to do this? |
this is accomplished internal to ofbiz
single url. the Language is selectable by user. you can create a URL that add the language selection in the parm list. Mike sent the following on 9/7/2011 10:43 AM: > I'm interested in having multiple mount points to support various > languages. For instance: > > http://www.domain.com/en/control/main > http://www,domain.com/fr/control/main > ...etc.. > > Is there an easy way to force ofbiz (hopefully using a single website > store) to render a certain language based on mount point, or do I > have to do fancy Apache redirects. > > I'm hoping that doing this, along with using sitemaps.xml would allow > a site to be indexed in multiple languages. > > Does anyone have an example on how to do this? > |
The demo ecommerce app already allows a USER to select a language.
What I'm interested in setting the locale based on the mount point. I thought that maybe the place to do this would be specialpurpose/ecommerce/ofbiz-component.xml. <webapp name="ecommerce" title="eCommerce" locale="fr" <-------------------- server="default-server" location="webapp/ecommerce" mount-point="/ecommerce" app-bar-display="false"/> Doesn't work (sadly) On Wed, Sep 7, 2011 at 11:05 AM, BJ Freeman <[hidden email]> wrote: > this is accomplished internal to ofbiz > single url. > the Language is selectable by user. > you can create a URL that add the language selection in the parm list. > > > Mike sent the following on 9/7/2011 10:43 AM: >> I'm interested in having multiple mount points to support various >> languages. For instance: >> >> http://www.domain.com/en/control/main >> http://www,domain.com/fr/control/main >> ...etc.. >> >> Is there an easy way to force ofbiz (hopefully using a single website >> store) to render a certain language based on mount point, or do I >> have to do fancy Apache redirects. >> >> I'm hoping that doing this, along with using sitemaps.xml would allow >> a site to be indexed in multiple languages. >> >> Does anyone have an example on how to do this? >> > |
you would have to modify the contextfilter defined in the web.xml
by that I mean change the code in the java class. currently mydomain.com/control is the way ofbiz works you can have many eccommerce clones each with a mount point like mount-point="/fr-ecommerce Mike sent the following on 9/7/2011 11:21 AM: > The demo ecommerce app already allows a USER to select a language. > What I'm interested in setting the locale based on the mount point. > I thought that maybe the place to do this would be > specialpurpose/ecommerce/ofbiz-component.xml. > > <webapp name="ecommerce" > title="eCommerce" > locale="fr" <-------------------- > server="default-server" > location="webapp/ecommerce" > mount-point="/ecommerce" > app-bar-display="false"/> > > Doesn't work (sadly) > > On Wed, Sep 7, 2011 at 11:05 AM, BJ Freeman <[hidden email]> wrote: >> this is accomplished internal to ofbiz >> single url. >> the Language is selectable by user. >> you can create a URL that add the language selection in the parm list. >> >> >> Mike sent the following on 9/7/2011 10:43 AM: >>> I'm interested in having multiple mount points to support various >>> languages. For instance: >>> >>> http://www.domain.com/en/control/main >>> http://www,domain.com/fr/control/main >>> ...etc.. >>> >>> Is there an easy way to force ofbiz (hopefully using a single website >>> store) to render a certain language based on mount point, or do I >>> have to do fancy Apache redirects. >>> >>> I'm hoping that doing this, along with using sitemaps.xml would allow >>> a site to be indexed in multiple languages. >>> >>> Does anyone have an example on how to do this? >>> >> > |
correction
mydomain.com/Mountpoint/control BJ Freeman sent the following on 9/7/2011 11:26 AM: > you would have to modify the contextfilter defined in the web.xml > by that I mean change the code in the java class. > currently mydomain.com/control is the way ofbiz works > you can have many eccommerce clones each with a mount point like > mount-point="/fr-ecommerce > > Mike sent the following on 9/7/2011 11:21 AM: >> The demo ecommerce app already allows a USER to select a language. >> What I'm interested in setting the locale based on the mount point. >> I thought that maybe the place to do this would be >> specialpurpose/ecommerce/ofbiz-component.xml. >> >> <webapp name="ecommerce" >> title="eCommerce" >> locale="fr" <-------------------- >> server="default-server" >> location="webapp/ecommerce" >> mount-point="/ecommerce" >> app-bar-display="false"/> >> >> Doesn't work (sadly) >> >> On Wed, Sep 7, 2011 at 11:05 AM, BJ Freeman <[hidden email]> wrote: >>> this is accomplished internal to ofbiz >>> single url. >>> the Language is selectable by user. >>> you can create a URL that add the language selection in the parm list. >>> >>> >>> Mike sent the following on 9/7/2011 10:43 AM: >>>> I'm interested in having multiple mount points to support various >>>> languages. For instance: >>>> >>>> http://www.domain.com/en/control/main >>>> http://www,domain.com/fr/control/main >>>> ...etc.. >>>> >>>> Is there an easy way to force ofbiz (hopefully using a single website >>>> store) to render a certain language based on mount point, or do I >>>> have to do fancy Apache redirects. >>>> >>>> I'm hoping that doing this, along with using sitemaps.xml would allow >>>> a site to be indexed in multiple languages. >>>> >>>> Does anyone have an example on how to do this? >>>> >>> >> |
In reply to this post by BJ Freeman
Thanks BJ. I'll check it out.
On Wed, Sep 7, 2011 at 11:26 AM, BJ Freeman <[hidden email]> wrote: > you would have to modify the contextfilter defined in the web.xml > by that I mean change the code in the java class. > currently mydomain.com/control is the way ofbiz works > you can have many eccommerce clones each with a mount point like > mount-point="/fr-ecommerce > > Mike sent the following on 9/7/2011 11:21 AM: >> The demo ecommerce app already allows a USER to select a language. >> What I'm interested in setting the locale based on the mount point. >> I thought that maybe the place to do this would be >> specialpurpose/ecommerce/ofbiz-component.xml. >> >> <webapp name="ecommerce" >> title="eCommerce" >> locale="fr" <-------------------- >> server="default-server" >> location="webapp/ecommerce" >> mount-point="/ecommerce" >> app-bar-display="false"/> >> >> Doesn't work (sadly) >> >> On Wed, Sep 7, 2011 at 11:05 AM, BJ Freeman <[hidden email]> wrote: >>> this is accomplished internal to ofbiz >>> single url. >>> the Language is selectable by user. >>> you can create a URL that add the language selection in the parm list. >>> >>> >>> Mike sent the following on 9/7/2011 10:43 AM: >>>> I'm interested in having multiple mount points to support various >>>> languages. For instance: >>>> >>>> http://www.domain.com/en/control/main >>>> http://www,domain.com/fr/control/main >>>> ...etc.. >>>> >>>> Is there an easy way to force ofbiz (hopefully using a single website >>>> store) to render a certain language based on mount point, or do I >>>> have to do fancy Apache redirects. >>>> >>>> I'm hoping that doing this, along with using sitemaps.xml would allow >>>> a site to be indexed in multiple languages. >>>> >>>> Does anyone have an example on how to do this? >>>> >>> >> > |
In reply to this post by Mike Z
create different webapp definitions in the same ofbiz-component.xml
pointing to the same webapp location using different virtual hosts and mount points and using different product stores via the website in web.xml some help can be found here: http://www.antwebsystems.com/control/ViewBlogArticle?contentId=18704 Regards, Hans -- Ofbiz on twitter: http://twitter.com/apache_ofbiz Alternative ofbiz website: http://www.ofbiz.info http://www.antwebsystems.com : Quality services for competitive rates. On Wed, 2011-09-07 at 10:43 -0700, Mike wrote: > I'm interested in having multiple mount points to support various > languages. For instance: > > http://www.domain.com/en/control/main > http://www,domain.com/fr/control/main > ...etc.. > > Is there an easy way to force ofbiz (hopefully using a single website > store) to render a certain language based on mount point, or do I > have to do fancy Apache redirects. > > I'm hoping that doing this, along with using sitemaps.xml would allow > a site to be indexed in multiple languages. > > Does anyone have an example on how to do this? |
I solved this problem by making a slight modification to:
applications/product/src/org/ofbiz/product/product/ProductEvents.java As outlined in the following Jira: https://issues.apache.org/jira/browse/OFBIZ-4412 There is a simple patch available. > > On Wed, 2011-09-07 at 10:43 -0700, Mike wrote: >> I'm interested in having multiple mount points to support various >> languages. For instance: >> >> http://www.domain.com/en/control/main >> http://www,domain.com/fr/control/main >> ...etc.. >> >> Is there an easy way to force ofbiz (hopefully using a single website >> store) to render a certain language based on mount point, or do I >> have to do fancy Apache redirects. >> >> I'm hoping that doing this, along with using sitemaps.xml would allow >> a site to be indexed in multiple languages. >> >> Does anyone have an example on how to do this? > > > > |
Free forum by Nabble | Edit this page |