mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
Added way to get a textual description of a file (e.g. 'Word document') based on its MIME type.
This commit is contained in:
parent
3ce73b147f
commit
c0381e22da
2 changed files with 46 additions and 0 deletions
26
lang/en_utf8/mimetypes.php
Normal file
26
lang/en_utf8/mimetypes.php
Normal file
|
@ -0,0 +1,26 @@
|
|||
<?PHP
|
||||
|
||||
// These should be accessed using get_mimetype_description in filelib.php.
|
||||
// They correspond to a (currently small) subset of the MIME types that Moodle
|
||||
// supports, which are also listed in filelib.php. Descriptions for other types
|
||||
// should be added here.
|
||||
|
||||
// Style: initial lower-case letter, except as required for product names etc.
|
||||
|
||||
$string['text/plain'] = 'text file';
|
||||
$string['application/pdf'] = 'PDF document';
|
||||
$string['application/msword'] = 'Word document';
|
||||
$string['text/rtf'] = 'RTF document';
|
||||
$string['application/vnd.ms-excel'] = 'Excel spreadsheet';
|
||||
$string['audio/wav'] = 'sound file';
|
||||
$string['audio/mp3'] = 'MP3 audio file';
|
||||
$string['application/vnd.ms-powerpoint'] = 'Powerpoint presentation';
|
||||
$string['application/zip'] = 'zip archive';
|
||||
$string['image/jpeg'] = 'JPEG image';
|
||||
$string['image/gif'] = 'GIF image';
|
||||
$string['image/bmp'] = 'uncompressed BMP image';
|
||||
|
||||
// Moodle default MIME type used for all types not described
|
||||
$string['document/unknown'] = 'file';
|
||||
|
||||
?>
|
Loading…
Add table
Add a link
Reference in a new issue