Change language for calendar |
[eluser]Mutsop[/eluser]
Hi, How is it possible to change the names of the days and months into another language? I found out in the change logs, they apparenlty implemented this function a few months ago. Regards
[eluser]Cristian Gilè[/eluser]
Hi Mutsop, under application/language/yourlanguage folder create a file named calendar_lang.php and within that file assign each line of text to an array called $lang like this: https://bitbucket.org/ellislab/codeignit...r_lang.php Cristian Gilè
[eluser]some1ell[/eluser]
It doesn't work ![]()
[eluser]InsiteFX[/eluser]
You have to load it Code: $this->lang->load('filename', 'language'); InsiteFX
[eluser]some1ell[/eluser]
Sorry..I am very new to this =) can you tell me more...where do I write this or include that? and what about language_key? Sorry =)
[eluser]some1ell[/eluser]
still nothing=) i have a file koledar_lang.php in this folder --> /system/application/language/english Source of this file is: Code: <?php I opened application/config/autoload.php and add this line $autoload['language'] = array('koledar'); Code: /* then I load it in this file welcome.php - located in --> system/application/controllers I add this line: Code: $this->lang->load('koledar', 'english'); 'sample' source: Code: <?php 'Sample' source of file list.php located in --> system/application/views/feedback Code: <? extend('templates/master.php') ?> And when I open this page I still get February instead of Februar =) I really don't know what i am doing wrong=) Please help ![]()
[eluser]some1ell[/eluser]
Ok....I fix it another way =) I changed <?=date('F j, g:ia',strtotime($item->date_submitted))?> to <?=date('d M Y, G:i ![]() it fine for me now ![]() thank you... |
Welcome Guest, Not a member yet? Register Sign In |