diff --git a/files/index.php b/files/index.php index bf0845caab2..6b953d1d7bd 100644 --- a/files/index.php +++ b/files/index.php @@ -105,7 +105,7 @@ ', '»', "$course->shortname -> $fullnav"); + $fullnav = str_replace('->', '»', format_string($course->shortname) . " -> $fullnav"); echo '
'; if ($course->id == SITEID and $wdir != "/backupdata") { diff --git a/lang/en_utf8/data.php b/lang/en_utf8/data.php index 18f558a4a51..b94cccdfce6 100644 --- a/lang/en_utf8/data.php +++ b/lang/en_utf8/data.php @@ -61,6 +61,7 @@ $string['deleted'] = 'deleted'; $string['deletefield'] = 'Delete an existing field'; $string['deletewarning'] = 'Are you sure you want to delete this preset?'; $string['descending'] = 'Descending'; +$string['directorynotapreset'] = '$a->directory Not a preset: missing files: $a->missing_files'; $string['download'] = 'Download'; $string['edit'] = 'Edit'; $string['editcomment'] = 'Edit comment'; @@ -77,6 +78,7 @@ $string['example'] = 'Database module example'; $string['export'] = 'Export'; $string['exportaszip'] = 'Export as zip'; $string['exportedtozip'] = 'Exported to temporary zip...'; +$string['failedpresetdelete'] = 'Error deleting a preset!'; $string['fieldadded'] = 'Field added'; $string['fieldallowautolink'] = 'Allow autolink'; $string['fielddeleted'] = 'Field deleted'; @@ -96,6 +98,7 @@ $string['fieldwidth'] = 'Width'; $string['fieldwidthlistview'] = 'Width in list view'; $string['fieldwidthsingleview'] = 'Width in single view'; $string['file'] = 'File'; +$string['filesnotgenerated'] = 'Not all files were generated: $a'; $string['filtername'] = 'Database Auto-linking'; $string['footer'] = 'Footer'; $string['forcelinkname'] = 'Forced name for the link'; @@ -131,6 +134,7 @@ $string['modulename'] = 'Database'; $string['modulenameplural'] = 'Databases'; $string['more'] = 'More'; $string['moreurl'] = 'More URL'; +$string['movezipfailed'] = 'Can\'t move zip'; $string['multientry'] = 'Repeated entry'; $string['multimenu'] = 'Menu (Multi-select)'; $string['multipletags'] = 'Multiple tags found! Template not saved'; @@ -149,12 +153,14 @@ $string['nameurl'] = 'URL field'; $string['newentry'] = 'New entry'; $string['newfield'] = 'Create a new field'; $string['noaccess'] = 'You do not have access to this page'; +$string['nodefinedfields'] = 'New preset has no defined fields!'; $string['nofieldindatabase'] = 'There are no fields defined for this database.'; $string['nolisttemplate'] = 'List template is not yet defined'; $string['nomatch'] = 'No matching entries found!'; $string['nomaximum'] = 'No maximum'; $string['norecords'] = 'No entries in database'; $string['nosingletemplate'] = 'Single template is not yet defined'; +$string['notinjectivemap'] = 'Not an injective map'; $string['number'] = 'Number'; $string['numberrssarticles'] = 'RSS articles'; $string['numnotapproved'] = 'Pending'; @@ -211,6 +217,7 @@ $string['text'] = 'Text'; $string['textarea'] = 'Textarea'; $string['todatabase'] = 'to this database.'; $string['type'] = 'Field type'; +$string['undefinedprocessactionmethod'] = 'No action method defined in Data_Preset to handle action \"$a\".'; $string['updatefield'] = 'Update an existing field'; $string['uploadfile'] = 'Upload file'; $string['uploadrecords'] = 'Upload entries from a file'; @@ -218,5 +225,5 @@ $string['url'] = 'Url'; $string['usestandard'] = 'Use a preset'; $string['viewfromdate'] = 'Viewable from'; $string['viewtodate'] = 'Viewable to'; - +$string['wrongdataid'] = 'Wrong data id provided'; ?> diff --git a/lang/en_utf8/error.php b/lang/en_utf8/error.php index 6451b55f222..3e11952a768 100644 --- a/lang/en_utf8/error.php +++ b/lang/en_utf8/error.php @@ -37,6 +37,7 @@ $string['invalidcourse'] = 'Invalid course'; $string['invalidfieldname'] = '\"$a\" is not a valid field name'; $string['invalidfiletype'] = '\"$a\" is not a valid file type'; $string['invalidmd5'] = 'Invalid md5'; +$string['invalidrequest'] = 'Invalid request'; $string['invalidrole'] = 'Invalid role'; $string['invalidxmlfile'] = '\"$a\" is not a valid XML file'; $string['loginasonecourse'] = 'You can not enter this course.'.$strwarning.'
'; + $html .= ''.$strexport.' | |
| '; +helpbutton('exportzip', '', 'data'); +echo ' | '; +$options = new object(); +$options->action = 'export'; +$options->d = $data->id; +$options->sesskey = sesskey(); +print_single_button('preset.php', $options, $strexport, 'post'); +echo ' |
| '; +helpbutton('savepreset', '', 'data'); +echo ' | '; +$options = new object(); +$options->action = 'save1'; +$options->d = $data->id; +$options->sesskey = sesskey(); +print_single_button('preset.php', $options, $strsave, 'post'); +echo ' |
'.$strimport.' | |
| '; +helpbutton('importfromfile', '', 'data'); +echo ' | '; + +echo ''; +echo ' |
| '; +helpbutton('usepreset', '', 'data'); +echo ' | '; + +echo ''; +echo ' |