Page 1 of 1

$lang not changing with language ?

Posted: Sun Oct 11, 2009 6:17 pm
by great-dane
Im having the strange problem, that the value of $lang stays the value of the default language (en_US) regardless what language is selected. The page text and menu text changes OK - but $lang always shows en_US.

I would like to start using the news module, but need to query the current language in $lang to get it working OK.

Any ideas ?

Im running CMSMS 1.6 MLE with DA and EN languages installed.

Martin

Re: $lang not changing with language ?

Posted: Sun Oct 11, 2009 7:19 pm
by Peciura
Which language have you set to default one ?

Post to forum
  config_lang.php
  screenshots of
      "Site Admin » Global Settings » MLE settings" and
      "Site Admin » Global Settings » MLE languages"

Re: $lang not changing with language ?

Posted: Sun Oct 11, 2009 8:46 pm
by great-dane
Files attached - for config_lang.php added suffix .txt

Thanks..

Re: $lang not changing with language ?

Posted: Sun Oct 11, 2009 9:27 pm
by great-dane
Found it myself ;-) - was missing en_US and da_DK in the 'locale_cms'=>' in the config_lang-php file.
Now it works as a charm - thanks for bringing me on it through you asking for the files/shots...
Martin