[CRE Loaded] Default language

Magic SEO URLs for CRE Loaded.
Altobirus
Posts: 5
Joined: Thu Mar 06, 2008 7:10 am

[CRE Loaded] Default language

Postby Altobirus » Thu Mar 06, 2008 7:50 am

Hi,

I've recently installed Magic SEO on CRE Loaded plateform. It works fine but the problem is that
it detected the browser defaut language and displayed it automatically but now, it automatically
put the site in defaut language (english for me) but i use french browser. It should display the french language automatically.

Any idea ?

Thanks a lot
(Altobirus - Paris)

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

Re: [CRE Loaded] Default language

Postby inveo » Fri Mar 07, 2008 9:52 am

Please try to move MSU installation line in includes/application_top.php after following block code:

Code: Select all

// include the language translations
  require(DIR_WS_LANGUAGES . $language . '.php');


or find in same file:

Code: Select all

$lng->get_browser_language();


and replace it with:

Code: Select all

$lng->get_browser_language();
$HTTP_GET_VARS['language'] = $lng->language['directory'];


Let me know whether it helped you or not.

Altobirus
Posts: 5
Joined: Thu Mar 06, 2008 7:10 am

Re: [CRE Loaded] Default language

Postby Altobirus » Fri Mar 07, 2008 4:25 pm

I try to add your code but it doesn't work.
If this can help you, in the same line where I added this code

Code: Select all

// Magic SEO
include(DIR_WS_INCLUDES . 'magic_seo_url.php');


I saw these lines

Code: Select all

// Ultimate SEO URLs v2.2
    include_once(DIR_WS_CLASSES . 'seo.class.php');
   if ( !is_object($seo_urls) ){
      $seo_urls = new SEO_URL($languages_id);
   }


May be if i use the same structure of code it will work but i don't know the name of the object. Any idea ?

Thanks for your help

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

Re: [CRE Loaded] Default language

Postby inveo » Fri Mar 07, 2008 4:32 pm

I forgot to mention that deleting cookies is required (removing Ultimate SEO URLs code is also great idea).

Altobirus
Posts: 5
Joined: Thu Mar 06, 2008 7:10 am

Re: [CRE Loaded] Default language

Postby Altobirus » Fri Mar 07, 2008 4:47 pm

it work fine now :))

I simply added after this code in include/application_top.php

Code: Select all

// include the language translations
  require(DIR_WS_LANGUAGES . $language . '.php');


This line

Code: Select all

// Magic SEO
include(DIR_WS_INCLUDES . 'magic_seo_url.php');


And I deleted my cookie.......all is ok now !!!

Thanks a lot