CMS MADE SIMPLE FORGE

CGCalendar

 

[#12233] 'Year' button text in admin page is hardcoded and does not change according to locale

avatar
Created By: Niels Ohrt (Niels_O)
Date Submitted: Fri Jan 03 05:50:08 -0500 2020

Assigned To: Robert Campbell (calguy1000)
Version: 2.6.2
CMSMS Version: 2.2.13
Severity: Trivial
Resolution: None
State: Open
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()
    },


History