mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
MDL-18375 calendar: huge refactor of the initial patch
1) Moved the calendar types location to a sub-folder in the calendar directory. 2) Removed/moved language strings. 3) Removed calendar types that should be downloaded as plugins. 4) Removed a Non-English language pack for the Gregorian calendar type that should be downloaded separately. 5) Removed custom files responsible for checking for updates and uninstalling calendar types, which should be done by core. 6) Removed JS from the calendar_month block as there is no non-JS alternative provided and the JS written does not make use of the YUI library to ensure multiple browser support. 7) Removed code from the base class responsible for creating timestamps that are saved in the DB. 8) Added PHPDocs. Note: In the original patch we are editing core functions responsible for saving time in the database in the calendar base class. This is very dangerous, we do not want to touch these functions as it could cause a complete fubar of the database. There are places we are forcing the use of the gregorian calendar as we are passing dates generated by the PHP date function, where as sometimes we pass dates from usergetdate (which was being overwritten to return the date specific to the calendar). We can not expect third party modules to change the calendar type depending on the format they pass to these functions.
This commit is contained in:
parent
6dd59aabfa
commit
2f00e1b245
45 changed files with 606 additions and 1931 deletions
|
@ -570,8 +570,9 @@ $string['gradeexport'] = 'Primary grade export methods';
|
|||
$string['guestroleid'] = 'Role for guest';
|
||||
$string['guestroleid_help'] = 'This role is automatically assigned to the guest user. It is also temporarily assigned to not enrolled users that enter the course via guest enrolment plugin.';
|
||||
$string['helpadminseesall'] = 'Do admins see all calendar events or just those that apply to themselves?';
|
||||
$string['helpcalendarsettings'] = 'Configure various calendar and date/time-related aspects of Moodle';
|
||||
$string['helpcalendarcustomexport'] = 'Enable custom date range export option in calendar exports. Calendar exports must be enabled before this is effective.';
|
||||
$string['helpcalendarsettings'] = 'Configure various calendar and date/time-related aspects of Moodle';
|
||||
$string['helpcalendartype'] = 'This is the calendar type that will be used throughout your site.';
|
||||
$string['helpexportlookahead'] = 'How many days in the future does the calendar look for events during export for the custom export option?';
|
||||
$string['helpexportlookback'] = 'How many days in the past does the calendar look for events during export for the custom export option?';
|
||||
$string['helpforcetimezone'] = 'You can allow users to individually select their timezone, or force a timezone for everyone.';
|
||||
|
|
|
@ -93,6 +93,7 @@ $string['export'] = 'Export';
|
|||
$string['exportbutton'] = 'Export';
|
||||
$string['exportcalendar'] = 'Export calendar';
|
||||
$string['for'] = 'for';
|
||||
$string['forcecalendartype'] = 'Force calendar';
|
||||
$string['fri'] = 'Fri';
|
||||
$string['friday'] = 'Friday';
|
||||
$string['generateurlbutton'] = 'Get calendar URL';
|
||||
|
@ -138,6 +139,7 @@ $string['pollinterval'] = 'Update interval';
|
|||
$string['pollinterval_help'] = 'How often you would like the calendar to update with new events.';
|
||||
$string['preferences'] = 'Preferences';
|
||||
$string['preferences_available'] = 'Your personal preferences';
|
||||
$string['preferredcalendar'] = 'Preferred calendar';
|
||||
$string['pref_lookahead'] = 'Upcoming events look-ahead';
|
||||
$string['pref_lookahead_help'] = 'This sets the (maximum) number of days in the future that an event has to start in in order to be displayed as an upcoming event. Events that start beyond this will never be displayed as upcoming. Please note that <strong>there is no guarantee</strong> that all events starting in this time frame will be displayed; if there are too many (more than the "Maximum upcoming events" preference) then the most distant events will not be shown.';
|
||||
$string['pref_maxevents'] = 'Maximum upcoming events';
|
||||
|
|
|
@ -1,19 +0,0 @@
|
|||
<?php
|
||||
$string['preferredcalendar'] = 'Preferred calendar';
|
||||
$string['helpcalendarsystem'] = 'helpcalendarsystem';
|
||||
$string['changecalendar'] = 'change';
|
||||
$string['checkforupdates'] = 'Check for available updates';
|
||||
$string['configcalendarsystem'] = 'Default calendar';
|
||||
$string['forcecalendarsystem'] = 'Force calendar';
|
||||
$string['system'] = 'Calendar';
|
||||
$string['calendarsystem'] = 'Calendar system';
|
||||
$string['calendarsystems'] = 'Calendar systems';
|
||||
$string['calendarsystemdeleteconfirm'] = 'You are about to completely delete the calendar system \'{$a}\'. This will completely delete everything in the database associated with this plugin. Are you SURE you want to continue?';
|
||||
$string['calendarsystemsmanage'] = 'Manage calendar systems';
|
||||
$string['updateavailable'] = 'There is a newer calendar system core version available!';
|
||||
$string['updateavailable_moreinfo'] = 'More info...';
|
||||
$string['updateavailable_version'] = 'Version {$a}';
|
||||
$string['updateavailableforplugin'] = 'There is a newer version for {$a} calendar system plugin available!';
|
||||
$string['updateavailablenot'] = 'Your calendar system code is up-to-date!';
|
||||
$string['updatecheck'] = 'Check for CalendarSystem update';
|
||||
?>
|
|
@ -91,7 +91,8 @@ $string['type_cachelock'] = 'Cache lock handler';
|
|||
$string['type_cachelock_plural'] = 'Cache lock handlers';
|
||||
$string['type_cachestore'] = 'Cache store';
|
||||
$string['type_cachestore_plural'] = 'Cache stores';
|
||||
$string['type_calendarsystem_plural'] = 'Calendar systems';
|
||||
$string['type_calendartype'] = 'Calendar type';
|
||||
$string['type_calendartype_plural'] = 'Calendar types';
|
||||
$string['type_coursereport'] = 'Course report';
|
||||
$string['type_coursereport_plural'] = 'Course reports';
|
||||
$string['type_editor'] = 'Editor';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue