Page 1 of 1

if $lang == en_US doesn't work

Posted: Fri Sep 04, 2009 9:26 am
by Perigee
Hello,

I've update my CMSMS version to 1.6.3 Touho and I have some problems on my homepage (english and french).

I tested the variable $lang and it always contains "fr_FR" even on english homepage.

I need to display something like this :

Code: Select all

{if $lang == 'en_US'}
<h3>Events</h3>
{else}
<h3>Agenda</h3>
{/if}
    {news category="Agenda_$lang" detailpage="les-plus-recentes" sortasc="true"}
The title AND the news are always in french, not in english...
idem for the footer, images with texts, news/actualités and events/agenda.
You can see the problem here : www.perigee.fr

This code worked very well before update.

Can you help me ?

This is my configuration :
CMSMS MLE 1.6.3 Touho
PHP 5.2.10
MySQL 5.0.68
Host : OVH 90plan

Modules :
CMSMailer 1.73.14
FileManager 1.0
MenuManager 1.6.1
ModuleManager 1.3.1
News 2.10.2
nuSOAP 1.0.1
Printing 1.0.1
Search 1.6.1
ThemeManager 1.1.1
TinyMCE 2.5.1
FCKeditorX 1.1.0
FormBuilder 0.5.4
FrontEndUsers 1.6.4
CustomContent 1.5.3
CGExtensions 1.15.3
NMS 2.2.2
LightBox 1.0.1

Re: if $lang == en_US doesn't work

Posted: Fri Sep 04, 2009 11:08 am
by Peciura
Link you supplied doesn't work for me.
Have you checked "Site Admin » Global Settings » MLE setting" "Submit and test MLE DB" and "Submit and test MLE config" as well as "Site Admin » Global Settings » MLE Languages" ?

Re: if $lang == en_US doesn't work

Posted: Fri Sep 04, 2009 12:36 pm
by Perigee
Sorry, today is a bad day for me.... my website's got problems with the host name  :'( and it's not accessible every time.

First test : "MLE DB installation was successfully tested"
second test :
"    * Error in some MLE config fields:
    * locale_cms field is missing in en_US! Look in README.FIRST
    * locale_cms field is missing in fr_FR! Look in README.FIRST"

my config_lang :

Code: Select all



$hls = array(
 'en_US' => array(
	'locale_cms'=>'',
	'block'=>'en',
	'parent'=>'en',
	'flag'=>'<img src="http://www.perigee.fr/cmsms/uploads/lang/us.png" style="border:0;opacity:1;" alt="English" title="English" />',
	'text'=>'English',
	'locale'=>'en_US.UTF-8'
 ),
 'fr_FR' => array(
	'locale_cms'=>'',
	'block'=>'fr',
	'parent'=>'fr',
	'flag'=>'<img src="http://www.perigee.fr/cmsms/uploads/lang/fr.png" style="border:0;opacity:1;" alt="Français" title="Français" />',
	'text'=>'Français',
	'locale'=>'fr_FR.UTF-8'
 ),
);

where is the error with the locale ?  ???

Re: if $lang == en_US doesn't work

Posted: Fri Sep 04, 2009 6:33 pm
by Peciura
You are missing 'locale_cms'=>'',.
Use 'en_US' and 'fr_FR' accordingly.

Re: if $lang == en_US doesn't work

Posted: Mon Sep 14, 2009 3:47 pm
by Perigee
thank you very much !!!!!!! \^o^/
I will buy glasses to read the code  ;D

sorry for the delay

Re: if $lang == en_US doesn't work

Posted: Thu Sep 24, 2009 8:50 pm
by alby
Perigee wrote: thank you very much !!!!!!! \^o^/
I will buy glasses to read the code  ;D

sorry for the delay
Please put SOLVED in first title post

Alby