Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.x is supported too.
   1  <?php
   2  // This file is part of Moodle - http://moodle.org/
   3  //
   4  // Moodle is free software: you can redistribute it and/or modify
   5  // it under the terms of the GNU General Public License as published by
   6  // the Free Software Foundation, either version 3 of the License, or
   7  // (at your option) any later version.
   8  //
   9  // Moodle is distributed in the hope that it will be useful,
  10  // but WITHOUT ANY WARRANTY; without even the implied warranty of
  11  // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12  // GNU General Public License for more details.
  13  //
  14  // You should have received a copy of the GNU General Public License
  15  // along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
  16  
  17  /**
  18   * Strings for custom file types.
  19   *
  20   * @package tool_filetypes
  21   * @copyright 2014 The Open University
  22   * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
  23   */
  24  
  25  $string['addfiletypes'] = 'Add a new file type';
  26  $string['corestring'] = 'Alternative language string';
  27  $string['corestring_help'] = 'This setting can be used to select a different language string from the core mimetypes.php language file. Generally it should be left blank. For custom types, use the description field.';
  28  $string['defaulticon'] = 'Default icon for MIME type';
  29  $string['defaulticon_help'] = 'If there are multiple file extensions with the same MIME type, select this option for one of the extensions so that its icon will be used when determining an icon from the MIME type.';
  30  $string['delete_confirmation'] = 'Are you absolutely sure you want to remove <strong>.{$a}</strong>?';
  31  $string['deletea'] = 'Delete {$a}';
  32  $string['deletefiletypes'] = 'Delete a file type';
  33  $string['description'] = 'Custom description';
  34  $string['description_help'] = 'Simple file type description, e.g. \'Kindle ebook\'. If your site supports multiple languages and uses the multi-language filter, you can enter multi-language tags in this field to supply a description in different languages.';
  35  $string['descriptiontype'] = 'Description type';
  36  $string['descriptiontype_help'] = 'There are three possible ways to specify a description.
  37  
  38  * Default behaviour uses the MIME type. If there is a language string in mimetypes.php corresponding to that MIME type, it will be used; otherwise the MIME type itself will be displayed to users.
  39  * You can specify a custom description on this form.
  40  * You can specify the name of a languge string in mimetypes.php to use instead of the MIME type.';
  41  $string['descriptiontype_default'] = 'Default (MIME type or corresponding language string if available)';
  42  $string['descriptiontype_custom'] = 'Custom description specified in this form';
  43  $string['descriptiontype_lang'] = 'Alternative language string (from mimetypes.php)';
  44  $string['displaydescription'] = 'Description';
  45  $string['editfiletypes'] = 'Edit an existing file type';
  46  $string['emptylist'] = 'There are no file types defined.';
  47  $string['error_addentry'] = 'The file type extension, description,  MIME type, and icon must not contain line feed and semicolon characters.';
  48  $string['error_defaulticon'] = 'Another file extension with the same MIME type is already marked as the default icon.';
  49  $string['error_extension'] = 'The file type extension <strong>{$a}</strong> already exists or is invalid. File extensions must be unique and must not contain special characters.';
  50  $string['error_notfound'] = 'The file type with extension {$a} cannot be found.';
  51  $string['extension'] = 'Extension';
  52  $string['extension_help'] = 'File name extension without the dot, e.g. \'mobi\'';
  53  $string['groups'] = 'Type groups';
  54  $string['groups_help'] = 'Optional list of file type groups that this type belongs to. These are generic categories such as \'document\' and \'image\'.';
  55  $string['icon'] = 'File icon';
  56  $string['icon_help'] = 'Icon filename.
  57  
  58  The list of icons is taken from the /pix/f directory inside your Moodle installation. You can add custom icons to this folder if required.';
  59  $string['mimetype'] = 'MIME type';
  60  $string['mimetype_help'] = 'MIME type associated with this file type, e.g. \'application/x-mobipocket-ebook\'';
  61  $string['pluginname'] = 'File types';
  62  $string['revert'] = 'Restore {$a} to Moodle defaults';
  63  $string['revert_confirmation'] = 'Are you sure you want to restore <strong>.{$a}</strong> to Moodle defaults, discarding your changes?';
  64  $string['revertfiletype'] = 'Restore a file type';
  65  $string['source'] = 'Type';
  66  $string['source_custom'] = 'Custom';
  67  $string['source_deleted'] = 'Deleted';
  68  $string['source_modified'] = 'Modified';
  69  $string['source_standard'] = 'Standard';
  70  $string['privacy:metadata'] = 'The File types plugin does not store any personal data.';