mirror of
https://github.com/moodle/moodle.git
synced 2025-08-03 16:13:28 +02:00
Updating the translate_list for YUI components.
This commit is contained in:
parent
7d2e9a5220
commit
483f306734
1 changed files with 27 additions and 8 deletions
|
@ -17,22 +17,41 @@ function ajax_get_lib($libname) {
|
|||
'yui_yahoo' => '/lib/yui/yahoo/yahoo-min.js',
|
||||
'yui_animation' => '/lib/yui/animation/animation-min.js',
|
||||
'yui_autocomplete' => '/lib/yui/autocomplete/autocomplete-min.js',
|
||||
'yui_button' => '/lib/yui/button/button-min.js',
|
||||
'yui_calendar' => '/lib/yui/calendar/calendar-min.js',
|
||||
'yui_charts' => '/lib/yui/charts/charts-experimental-min.js',
|
||||
'yui_colorpicker' => '/lib/yui/colorpicker/colorpicker-min.js',
|
||||
'yui_cookie' => '/lib/yui/cookie/cookie-beta-min.js',
|
||||
'yui_connection' => '/lib/yui/connection/connection-min.js',
|
||||
'yui_container' => '/lib/yui/container/container-min.js',
|
||||
'yui_datasource' => '/lib/yui/datasource/datasource-beta-min.js',
|
||||
'yui_datatable' => '/lib/yui/datatable/datatable-beta-min.js',
|
||||
'yui_dom' => '/lib/yui/dom/dom-min.js',
|
||||
'yui_dom-event' => '/lib/yui/yahoo-dom-event/yahoo-dom-event.js',
|
||||
'yui_dragdrop' => '/lib/yui/dragdrop/dragdrop-min.js',
|
||||
'yui_ddsend' => '/lib/yui/dragdrop/ddsend.js',
|
||||
'yui_editor' => '/lib/yui/editor/editor-beta-min.js',
|
||||
'yui_element' => '/lib/yui/element/element-beta-min.js',
|
||||
'yui_event' => '/lib/yui/event/event-min.js',
|
||||
'yui_get' => '/lib/yui/get/get-min.js',
|
||||
'yui_history' => '/lib/yui/history/history-min.js',
|
||||
'yui_imagecropper' => '/lib/yui/imagecropper/imagecropper-beta-min.js',
|
||||
'yui_imageloader' => '/lib/yui/imageloader/imageloader-min.js',
|
||||
'yui_json' => '/lib/yui/json/json-min.js',
|
||||
'yui_layout' => '/lib/yui/layout/layout-beta-min.js',
|
||||
'yui_logger' => '/lib/yui/logger/logger-min.js',
|
||||
'yui_menu' => '/lib/yui/menu/menu-min.js',
|
||||
'yui_profiler' => '/lib/yui/profiler/profiler-beta-min.js',
|
||||
'yui_profilerviewer' => '/lib/yui/profilerviewer/profilerviewer-beta-min.js',
|
||||
'yui_resize' => '/lib/yui/resize/resize-beta-min.js',
|
||||
'yui_selector' => '/lib/yui/selector/selector-beta-min.js',
|
||||
'yui_simpleeditor' => '/lib/yui/editor/simpleeditor-beta-min.js',
|
||||
'yui_slider' => '/lib/yui/slider/slider-min.js',
|
||||
'yui_tabview' => '/lib/yui/tabview/tabview-min.js',
|
||||
'yui_treeview' => '/lib/yui/treeview/treeview-min.js',
|
||||
'yui_slider' => '/lib/yui/slider/slider-min.js',
|
||||
'yui_uploader' => '/lib/yui/uploader/uploader-experimental-min.js',
|
||||
'yui_utilities' => '/lib/yui/utilities/utilities.js',
|
||||
'yui_yuiloader' => '/lib/yui/yuiloader/yuiloader-beta-min.js',
|
||||
'yui_yuitest' => '/lib/yui/yuitest/yuitest-beta-min.js',
|
||||
'ajaxcourse_blocks' => '/lib/ajax/block_classes.js',
|
||||
'ajaxcourse_sections' => '/lib/ajax/section_classes.js',
|
||||
'ajaxcourse' => '/lib/ajax/ajaxcourse.js'
|
||||
|
@ -45,7 +64,7 @@ function ajax_get_lib($libname) {
|
|||
}
|
||||
|
||||
$testpath = str_replace($CFG->wwwroot, $CFG->dirroot, $libpath);
|
||||
if (!file_exists($testpath)) {
|
||||
if (!file_exists($testpath)) {
|
||||
print_error('require_js: '.$libpath.' - file not found.');
|
||||
}
|
||||
|
||||
|
@ -59,20 +78,20 @@ function ajax_get_lib($libname) {
|
|||
function ajaxenabled($browsers = array()) {
|
||||
|
||||
global $CFG, $USER;
|
||||
|
||||
|
||||
if (!empty($browsers)) {
|
||||
$valid = false;
|
||||
foreach ($browsers as $brand => $version) {
|
||||
if (check_browser_version($brand, $version)) {
|
||||
$valid = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (!$valid) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
$ie = check_browser_version('MSIE', 6.0);
|
||||
$ff = check_browser_version('Gecko', 20051106);
|
||||
$op = check_browser_version('Opera', 9.0);
|
||||
|
@ -80,7 +99,7 @@ function ajaxenabled($browsers = array()) {
|
|||
|
||||
if (!$ie && !$ff && !$op && !$sa) {
|
||||
/** @see http://en.wikipedia.org/wiki/User_agent */
|
||||
// Gecko build 20051107 is what is in Firefox 1.5.
|
||||
// Gecko build 20051107 is what is in Firefox 1.5.
|
||||
// We still have issues with AJAX in other browsers.
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue