CodeIgniter Forums
Wrong keyword in library - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Development (https://forum.codeigniter.com/forum-6.html)
+--- Forum: Issues (https://forum.codeigniter.com/forum-19.html)
+--- Thread: Wrong keyword in library (/thread-71030.html)



Wrong keyword in library - mfinity168 - 06-28-2018

Hi develop team

I found some word wrong in system language
Codeigniter 3.1.9

Directory
system/language/english/calendar_lang.php

Line 77 
$lang['cal_mayl'] = 'May';

Edit 
$lang['cal_may'] = 'May';

And

Directory
CodeIgniter/system/libraries/Calendar.php

Line 361
$month_names = array('01' => 'cal_january', '02' => 'cal_february', '03' => 'cal_march', '04' => 'cal_april', '05' => 'cal_mayl', '06' => 'cal_june', '07' => 'cal_july', '08' => 'cal_august', '09' => 'cal_september', '10' => 'cal_october', '11' => 'cal_november', '12' => 'cal_december');

Edit 
$month_names = array('01' => 'cal_january', '02' => 'cal_february', '03' => 'cal_march', '04' => 'cal_april', '05' => 'cal_may', '06' => 'cal_june', '07' => 'cal_july', '08' => 'cal_august', '09' => 'cal_september', '10' => 'cal_october', '11' => 'cal_november', '12' => 'cal_december');


Reference
https://github.com/bcit-ci/CodeIgniter/blob/develop/system/language/english/calendar_lang.php
https://github.com/bcit-ci/CodeIgniter/blob/develop/system/libraries/Calendar.php

Thanks ^^


RE: Wrong keyword in library - ciadmin - 06-28-2018

This wording is on purpose. Line 65 in calendar_lang already defines the index "cal_may" in the group of abbreviated month names, so "cal_mayl" is purposefully different.