[osCommerce] Multi language split on multiple domains

Magic SEO URLs for CRE Loaded.
shotputty
Follower
Posts: 46
Joined: Tue May 11, 2010 3:28 pm

[osCommerce] Multi language split on multiple domains

Postby shotputty » Tue Nov 30, 2010 9:10 am

I have MSU for two domains on the same server.

I do not need the /NL or /DE so that is why I split it on two domains. Both websites use the same database so I have multiple language productnames in the database.

On both sites the category names and product names are the same language (dutch). How do I make the .de website select the german names from the database automatically ? :roll:

shotputty
Follower
Posts: 46
Joined: Tue May 11, 2010 3:28 pm

Re: [osCommerce] Multi language split on multiple domains

Postby shotputty » Tue Nov 30, 2010 1:55 pm

If I echo all variables I can see that these variables from MSU:

$unQueryLang
$unFancyLang

are both set to 4 (= dutch). While I want to set them to 2 (= german). Even if I set them manually in application_top.php:

$unQueryLang = 2 ;
$unFancyLang = 2 ;

include(DIR_WS_INCLUDES . 'magic_seo_url.php');

I still get the dutch language on the german site.

inveo
Inveo Support
Posts: 1285
Joined: Sat Feb 02, 2008 12:07 pm
Contact:

Re: [osCommerce] Multi language split on multiple domains

Postby inveo » Tue Nov 30, 2010 2:26 pm

osCommerce database content depends on a number of installed languages. It means once there is more than one language installed, MSU has to run in multi-language mode (URI has to contain language code).
There is no way how to make it work correctly your way.

Developing multi-language mode was one of the most difficult feature ever - there are so many events which needs to be handled that changing anything outside the env. is nearly impossible. Some people say, no it is possible... then we can only say yes... but it will not work 100% correctly.

shotputty
Follower
Posts: 46
Joined: Tue May 11, 2010 3:28 pm

Re: [osCommerce] Multi language split on multiple domains

Postby shotputty » Wed Dec 01, 2010 1:25 am

Okay, I understand. But one more question. :) Does MSU use the file includes/database_tables.php from OScommerce to know which tables define the language or does MSU query the database on allready obvious OScommerce table names like the table "languages" to get the default language_id and name?

If it uses database_tables.php I think I might work around it.. ;)