• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Wrong keyword in library

#1
Wink 
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 ^^
Reply

#2
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.
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.