[CRE Loaded] Default language

Technical difficulties? Ask for help here.

[CRE Loaded] Default language

Postby Altobirus » Thu Mar 06, 2008 11: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)
Altobirus
 
Posts: 5
Joined: Thu Mar 06, 2008 11:10 am

Re: [CRE Loaded] Default language

Postby ~J~ » Fri Mar 07, 2008 1:52 pm

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.
~J~
Magic SEO URL products are now part of the Inveo s.r.o. portfolio.
~J~
Magic SEO URL Founder
 
Posts: 692
Joined: Sat Feb 02, 2008 4:07 pm
Location: Prague, Central Europe

Re: [CRE Loaded] Default language

Postby Altobirus » Fri Mar 07, 2008 8: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
Altobirus
 
Posts: 5
Joined: Thu Mar 06, 2008 11:10 am

Re: [CRE Loaded] Default language

Postby ~J~ » Fri Mar 07, 2008 8:32 pm

I forgot to mention that deleting cookies is required (removing Ultimate SEO URLs code is also great idea).
~J~
Magic SEO URL products are now part of the Inveo s.r.o. portfolio.
~J~
Magic SEO URL Founder
 
Posts: 692
Joined: Sat Feb 02, 2008 4:07 pm
Location: Prague, Central Europe

Re: [CRE Loaded] Default language

Postby Altobirus » Fri Mar 07, 2008 8: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
Altobirus
 
Posts: 5
Joined: Thu Mar 06, 2008 11:10 am


Return to Troubleshooting

Who is online

Registered users: Google [Bot], MSN [Bot]