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()
{
   parent::__construct();
   $this->load->model(MyVeryFirst_model');
   $this->lang->load('calendar', 'polish');
   $this->load->helper('date');
}

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!
Search
Most Popular Articles & Pages
Because your vote is Important
Sorry, there are no polls available at the moment.
Categories