How to get current month in codeigniter (translation)

I’ve just install translation to codeigniter.

At the beginning of my controller I’ve set:

public function __construct()
   $this->lang->load('calendar', 'polish');

Next in function

echo mdate(%F);

it shows me month in English, why?

echo $this->lang->line('cal_december');
echo timespan('1079621429', time());

Shows me names in polish which is ok. I’ve set locale to polish.

What I’m doing wrong?

Leave a Reply


Hire Me
Follow Me!
Most Popular Articles & Pages
Because your vote is Important
Sorry, there are no polls available at the moment.