CMS MADE SIMPLE FORGE

CMS Made Simple Core

 

[#7558] Frontend language issue

avatar
Created By: Joeri (joeri210)
Date Submitted: Fri Feb 03 05:48:49 -0500 2012

Assigned To:
Version: 1.10.2
CMSMS Version: 1.10.2
Severity: Minor
Resolution: Invalid
State: Closed
Summary:
Frontend language issue
Detailed Description:
What does frontend language precisely do?

Reason:
I was using the date_format function from smarty (which is just a modifier from
PHP) and it still showed my dates in English, even though I set a different
language as frontend language.

I manually added to the config.php :
setlocale(LC_ALL, 'nl_NL'); 

And now the dates show up in the chosen language. Just wondering or the frontend
language option shouldn't taking care of this?



History

Comments
avatar
Date: 2012-02-03 06:03
Posted By: Goran Ilic (uniqu3)

there is $config['locale'] = 'nl_NL.utf-8'; for example which would take care of
this.
      
avatar
Date: 2012-02-15 00:47
Posted By: Joeri (joeri210)

Hey Goran,

Thanks. But I suppose that does the same as the setlocale option (just the
config is a cleaner way, agreed).

But do you know what the language option does in the Admin side? It would make
sense if that one would take care of this...


      
avatar
Date: 2012-04-13 11:43
Posted By: Robert Campbell (calguy1000)

language specifies what language files are loaded.   Locale is used for
specifying the output of date functions and currency format etc.
      
avatar
Date: 2012-04-13 11:54
Posted By: Joeri (joeri210)

Clear. Thanks.

But can't we say in general that someone choosing a specific language, wants the
matching locale?

I know, this would be a discussion where people differ in opinion. In windows
you can set them seperately I think. But with keeping in mind a mutliple
language site, it would be very convenient to have the locale change too.


      
Updates

Updated: 2012-09-07 15:16
state: Open => Closed

Updated: 2012-04-13 11:43
resolution_id: 5 => 9

Updated: 2012-02-03 06:03
resolution_id: => 5