Default_lang doesn't do anything

This is a FORK of the CMS Made Simple project and is not oficially supported in any way by the CMS Made Simple development team.
Locked
dapam
Forum Members
Forum Members
Posts: 14
Joined: Tue Oct 28, 2008 5:28 am

Default_lang doesn't do anything

Post by dapam »

Ok, in my config_lang.php I have:

Code: Select all

define('DEFAULT_LANG', 'fi_FI');
$force_mle_default = true;

$hls = array(

 'fi_FI' => array(
        'block'=>'fi',
        'flag'=>'suomeksi',
        'text'=>'suomeksi',
        'locale'=>'fi_FI.utf8@euro',
 ),
 'en_US' => array(
        'block'=>'en',
        'flag'=>'in english',
        'text'=>'in english',
 ),
);
But everytime I access the page without hl / locale parameter, locale / language is set to en_US by default. It works fine after I click 'suomeksi'. So how can the locale to be set to fi_FI by default?
alby

Re: Default_lang doesn't do anything

Post by alby »

dapam wrote: Ok, in my config_lang.php I have:

Code: Select all

define('DEFAULT_LANG', 'fi_FI');
$force_mle_default = true;

$hls = array(

 'fi_FI' => array(
        'block'=>'fi',
        'flag'=>'suomeksi',
        'text'=>'suomeksi',
        'locale'=>'fi_FI.utf8@euro',
 ),
 'en_US' => array(
        'block'=>'en',
        'flag'=>'in english',
        'text'=>'in english',
 ),
);
But everytime I access the page without hl / locale parameter, locale / language is set to en_US by default. It works fine after I click 'suomeksi'. So how can the locale to be set to fi_FI by default?
In 1.5.4 there is a bug in check function but I have not verify if is relative to your problem.
However, try to comment in config_lang (add # char in front) and use check in Admin Global Settings

Alby
Locked

Return to “[locked] CMSMS MLE fork”