Elxis CMS Forum

Support => General => Topic started by: xmanhattan on July 31, 2009, 10:49:05

Title: default language
Post by: xmanhattan on July 31, 2009, 10:49:05
Hello all,

Although I set the default language to Greek, through the global configuration in the control panel, the site appears in English.

Does this have to do with the second line shown here:
Code: [Select]
$mosConfig_lang = 'greek';
$mosConfig_pub_langs = 'english,greek';
$mosConfig_alang = 'greek';

Should the configuration.php be (code) or is there something else that I maybe missed?
Code: [Select]
$mosConfig_lang = 'greek';
$mosConfig_pub_langs = 'greek,english';
$mosConfig_alang = 'greek';

Title: Re: default language
Post by: webgift on July 31, 2009, 11:35:10
As I can see :

Redirect to user's browser language
This feature is available in Elxis 2009.0 DEV rev2288 or newer.

When a visitor first visits your front-page during a session Elxis will automatically detect his browser language and re-direct him to a version of the site in this language (if exists). Notice that this redirect only happens when you visit the front-page.
If you want to disable this feature open Elxis' index.php and comment this line:

$elxis_language->toBrowserLang();


http://wiki.elxis.org/wiki/2008.1_vs_2009.0_differences#Redirect_to_user.27s_browser_language
Title: Re: default language
Post by: xmanhattan on July 31, 2009, 13:24:30
Ooooops, thank you for reminding me of that.

I verified that it works.
Title: Re: default language
Post by: webgift on July 31, 2009, 15:26:33
Ok.

That's the point! :

I verified that it works.

 ;)
Title: probleme of language
Post by: dasylva on August 01, 2009, 20:32:59
hi,
i made my website (in local ) in french and i want to add english, i dontv know how to translate  links and to make a corresponpance between link and contents.
can yu help me?
Title: Re: default language
Post by: ks-net on August 01, 2009, 21:06:32
actually you have to create from the begin  those English links pointing to existing  English content

read a short description of how you can start with multilingual content
http://wiki.elxis.org/wiki/Quick-Guide_Add_Content#Prepare_For_Multilingual_Content
Title: Re: default language
Post by: dasylva on August 02, 2009, 16:41:47
OK THANKS§ ;D