Summary:
'Year' button text in admin page is hardcoded and does not change according to locale
Detailed Description:
In CGCalendar 2.6.2 (and earlier versions) the ’Year’ button text in the
calender administration page is hardcoded.
The other button texts ’Month’, ’Week’ and ’Day’ changes according to locale.
$lang['year'] = 'Year';
should be added to CGCalendar/lang/en_US.php (and translated to other locales)
$smarty→assign('text_year',$this→Lang('year'));
should be added to CGCalendar/function.admindisplaymanageevents.php
In CGCalendar/templates/admin_events_tab.tpl
buttonText: {
listYear: 'Year',
today: '{$text_today|cms_escape}'.decode(),
week: '{$text_week|cms_escape}'.decode(),
month: '{$text_month|cms_escape}'.decode(),
day: '{$text_day|cms_escape}'.decode()
},
should be changed to:
buttonText: {
listYear: '{$text_year|cms_escape}'.decode(),
today: '{$text_today|cms_escape}'.decode(),
week: '{$text_week|cms_escape}'.decode(),
month: '{$text_month|cms_escape}'.decode(),
day: '{$text_day|cms_escape}'.decode()
},