I'm working for a client that needs a bi-langual webshop (French/Dutch). I managed to configure the whole shop in both languages and everything works fine. Now, the customer got back to me and he would like to remove the language selector from the header and he wants to make it "dependent" on the URL. For example, if you surf to example.com/french/, then the French version of the site should be displayed and when you surf to example.com/dutch/, the dutch version should be displayed. Is this possible with OC ? Anybody that can point me into the right direction ?
I'm trying to do something quite similar. I want to have 2 links on each page one for each language. And but I didn't want my theme to be javascript dependent, the problem is that the controller expects an post variable, and I'm almost sure that if I start hacking the controllers I'll lose the ability to properly upgrade the software.
The code I'm talking about can be found at catalog/controller/common/header.php line 4
The code I'm talking about can be found at catalog/controller/common/header.php line 4
This was easily done in 1.3.4 and earlier with my Improved Language Library that supported passing in the language code in the url. But 1.4.0 has some crazy ass changes for language that make no sense to me, so its a much more complex process.
Look in the top index.php file - a lot of the language code seems to have been moved there. You might be able to manipulate that to suit your URL requirements.
I did notice that a lot of the modules require a config->language reference now instead of just language get id - I haven't worked it all out yet.
I did notice that a lot of the modules require a config->language reference now instead of just language get id - I haven't worked it all out yet.
http://www.alreadymade.com
Follow me on twitter.com/alreadymade
Who is online
Users browsing this forum: No registered users and 1 guest