Elxis CMS Forum

Support => Language => Topic started by: sawaedy on August 08, 2011, 22:05:53

Title: Change language to English Automatic
Post by: sawaedy on August 08, 2011, 22:05:53
im have a problem in language website, is in open browser started in english, im want to start in persian , im set the language defult persian, but site open in english

any body help me for solve the problem?
www.sawaedy.com
Title: Re: Change language to English Automatic
Post by: Ivan Trebješanin on August 08, 2011, 22:52:23
Go to your root directory (eg. public_html) and open index.php. Find this (around line 74):
Code: [Select]
$elxis_language->toBrowserLang();and comment it like this:
Code: [Select]
//$elxis_language->toBrowserLang();
Save, and check if everything is fine
Title: Re: Change language to English Automatic
Post by: sawaedy on August 08, 2011, 23:07:17
hi
very good
im thanks from your helpful response

merc
Title: Re: Change language to English Automatic
Post by: doom on August 10, 2011, 11:02:18
Had same prob, could not imagine that browser lang is related with elxis set lang.
I guess // deactivates that php- line, so elxis stays to set lang.
Correct me if I understood wrong.
Thanks for info.
Title: Re: Change language to English Automatic
Post by: rentasite on August 10, 2011, 19:23:10
Had same prob, could not imagine that browser lang is related with elxis set lang.

Yes, that's how it works.

I guess // deactivates that php- line, so elxis stays to set lang.

Correct!
Title: Re: Change language to English Automatic
Post by: sawaedy on August 10, 2011, 19:33:30
is 100% correct