CodeIgniter Forums

Full Version: Wrong keyword in library
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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/b...r_lang.php
https://github.com/bcit-ci/CodeIgniter/b...lendar.php

Thanks ^^
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.