Forum

Questions and discussions

How to switch off language detection?

Script's setup and configuration

How to switch off language detection?

Postby lucy » Fri Jan 14, 2011 9:49 am

Hi,
Version 10.11 is very nice but I don't like automatic language detection feature. Half translated pages looks bad. Also Polish words are often longer than a place for them and should be used in different forms.
I will leave languages as option but I would like my website always starts with english language.
lucy
 
Posts: 144
Joined: Mon Apr 12, 2010 2:52 pm

Re: How to switch off language detection?

Postby admin » Fri Jan 14, 2011 11:53 am

Hello,

You should edit the file: /admin/function/functions.php

line 556:

You have to comment the lines:

Code: Select all
/*
if(!isset($_SESSION["slang"]) and isset($_SERVER["HTTP_ACCEPT_LANGUAGE"]))
{
foreach ($lang_symbol as $key => $value)
{
if(preg_match("/".$value."/",$_SERVER["HTTP_ACCEPT_LANGUAGE"]))
{
$lng=$key;
}
}
}

*/
admin
Site Admin
 
Posts: 1458
Joined: Sun Mar 07, 2010 5:55 pm

Re: How to switch off language detection?

Postby lucy » Fri Jan 14, 2011 11:56 am

thanks :-)
lucy
 
Posts: 144
Joined: Mon Apr 12, 2010 2:52 pm

Re: How to switch off language detection?

Postby serge » Mon Dec 03, 2012 9:59 am

Hi,

Does anyone know how to disable language detection in v12.10 since the code above no longer exists in file functions.php

Thanks!
serge
 
Posts: 80
Joined: Wed May 05, 2010 9:10 pm

Re: How to switch off language detection?

Postby admin » Mon Dec 03, 2012 5:04 pm

There is the same code in
/admin/function/settings.php
admin
Site Admin
 
Posts: 1458
Joined: Sun Mar 07, 2010 5:55 pm

Re: How to switch off language detection?

Postby serge » Mon Dec 03, 2012 5:39 pm

Thank you!
serge
 
Posts: 80
Joined: Wed May 05, 2010 9:10 pm


Return to Configuration

Who is online

Users browsing this forum: No registered users and 6 guests

cron
  Photo Store Script

Professional php photo stock script and WordPress plug-in for photographers and video producers.

  Support
  CMSaccount Inc.