1
0
Fork 0
python-docs-fr/library/mimetypes.po

312 lines
11 KiB
Plaintext
Raw Permalink Normal View History

2018-07-04 09:06:45 +00:00
# Copyright (C) 2001-2018, Python Software Foundation
2018-07-04 09:08:42 +00:00
# For licence information, see README file.
2016-10-30 09:46:26 +00:00
#
msgid ""
msgstr ""
2019-12-05 22:15:54 +00:00
"Project-Id-Version: Python 3\n"
2016-10-30 09:46:26 +00:00
"Report-Msgid-Bugs-To: \n"
2020-10-02 08:55:01 +00:00
"POT-Creation-Date: 2020-10-01 16:00+0200\n"
2016-10-30 09:46:26 +00:00
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
2018-07-04 09:14:25 +00:00
"Language-Team: FRENCH <traductions@lists.afpy.org>\n"
2017-05-23 22:40:56 +00:00
"Language: fr\n"
2016-10-30 09:46:26 +00:00
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: library/mimetypes.rst:2
2016-10-30 09:46:26 +00:00
msgid ":mod:`mimetypes` --- Map filenames to MIME types"
msgstr ""
#: library/mimetypes.rst:9
2020-02-14 10:18:53 +00:00
#, fuzzy
2016-10-30 09:46:26 +00:00
msgid "**Source code:** :source:`Lib/mimetypes.py`"
2020-02-14 10:18:53 +00:00
msgstr "**Code source :** :source:`Lib/types.py`"
2016-10-30 09:46:26 +00:00
#: library/mimetypes.rst:15
2016-10-30 09:46:26 +00:00
msgid ""
"The :mod:`mimetypes` module converts between a filename or URL and the MIME "
"type associated with the filename extension. Conversions are provided from "
"filename to MIME type and from MIME type to filename extension; encodings "
"are not supported for the latter conversion."
msgstr ""
#: library/mimetypes.rst:20
2016-10-30 09:46:26 +00:00
msgid ""
"The module provides one class and a number of convenience functions. The "
"functions are the normal interface to this module, but some applications may "
"be interested in the class as well."
msgstr ""
#: library/mimetypes.rst:24
2016-10-30 09:46:26 +00:00
msgid ""
"The functions described below provide the primary interface for this "
"module. If the module has not been initialized, they will call :func:`init` "
"if they rely on the information :func:`init` sets up."
msgstr ""
#: library/mimetypes.rst:33
2016-10-30 09:46:26 +00:00
msgid ""
2019-09-04 09:35:23 +00:00
"Guess the type of a file based on its filename, path or URL, given by *url*. "
"URL can be a string or a :term:`path-like object`."
2016-10-30 09:46:26 +00:00
msgstr ""
#: library/mimetypes.rst:36
2019-09-04 09:35:23 +00:00
msgid ""
"The return value is a tuple ``(type, encoding)`` where *type* is ``None`` if "
"the type can't be guessed (missing or unknown suffix) or a string of the "
"form ``'type/subtype'``, usable for a MIME :mailheader:`content-type` header."
msgstr ""
#: library/mimetypes.rst:40
2016-10-30 09:46:26 +00:00
msgid ""
"*encoding* is ``None`` for no encoding or the name of the program used to "
"encode (e.g. :program:`compress` or :program:`gzip`). The encoding is "
"suitable for use as a :mailheader:`Content-Encoding` header, **not** as a :"
"mailheader:`Content-Transfer-Encoding` header. The mappings are table "
"driven. Encoding suffixes are case sensitive; type suffixes are first tried "
"case sensitively, then case insensitively."
msgstr ""
#: library/mimetypes.rst:47
2016-10-30 09:46:26 +00:00
msgid ""
"The optional *strict* argument is a flag specifying whether the list of "
"known MIME types is limited to only the official types `registered with IANA "
"<https://www.iana.org/assignments/media-types/media-types.xhtml>`_. When "
"*strict* is ``True`` (the default), only the IANA types are supported; when "
"*strict* is ``False``, some additional non-standard but commonly used MIME "
"types are also recognized."
msgstr ""
#: library/mimetypes.rst:54
2019-09-04 09:35:23 +00:00
msgid "Added support for url being a :term:`path-like object`."
msgstr ""
#: library/mimetypes.rst:60
2016-10-30 09:46:26 +00:00
msgid ""
"Guess the extensions for a file based on its MIME type, given by *type*. The "
"return value is a list of strings giving all possible filename extensions, "
"including the leading dot (``'.'``). The extensions are not guaranteed to "
"have been associated with any particular data stream, but would be mapped to "
"the MIME type *type* by :func:`guess_type`."
msgstr ""
2020-10-02 08:55:01 +00:00
#: library/mimetypes.rst:78
2016-10-30 09:46:26 +00:00
msgid ""
"The optional *strict* argument has the same meaning as with the :func:"
"`guess_type` function."
msgstr ""
#: library/mimetypes.rst:71
2016-10-30 09:46:26 +00:00
msgid ""
"Guess the extension for a file based on its MIME type, given by *type*. The "
"return value is a string giving a filename extension, including the leading "
"dot (``'.'``). The extension is not guaranteed to have been associated with "
"any particular data stream, but would be mapped to the MIME type *type* by :"
"func:`guess_type`. If no extension can be guessed for *type*, ``None`` is "
"returned."
msgstr ""
#: library/mimetypes.rst:80
2016-10-30 09:46:26 +00:00
msgid ""
"Some additional functions and data items are available for controlling the "
"behavior of the module."
msgstr ""
#: library/mimetypes.rst:86
2016-10-30 09:46:26 +00:00
msgid ""
"Initialize the internal data structures. If given, *files* must be a "
"sequence of file names which should be used to augment the default type "
"map. If omitted, the file names to use are taken from :const:`knownfiles`; "
"on Windows, the current registry settings are loaded. Each file named in "
"*files* or :const:`knownfiles` takes precedence over those named before it. "
"Calling :func:`init` repeatedly is allowed."
msgstr ""
#: library/mimetypes.rst:93
2016-10-30 09:46:26 +00:00
msgid ""
"Specifying an empty list for *files* will prevent the system defaults from "
"being applied: only the well-known values will be present from a built-in "
"list."
msgstr ""
#: library/mimetypes.rst:96
2019-09-04 09:35:23 +00:00
msgid ""
"If *files* is ``None`` the internal data structure is completely rebuilt to "
"its initial default value. This is a stable operation and will produce the "
"same results when called multiple times."
msgstr ""
#: library/mimetypes.rst:100
2016-10-30 09:46:26 +00:00
msgid "Previously, Windows registry settings were ignored."
msgstr ""
#: library/mimetypes.rst:106
2016-10-30 09:46:26 +00:00
msgid ""
"Load the type map given in the file *filename*, if it exists. The type map "
"is returned as a dictionary mapping filename extensions, including the "
"leading dot (``'.'``), to strings of the form ``'type/subtype'``. If the "
"file *filename* does not exist or cannot be read, ``None`` is returned."
msgstr ""
#: library/mimetypes.rst:114
2016-10-30 09:46:26 +00:00
msgid ""
"Add a mapping from the MIME type *type* to the extension *ext*. When the "
"extension is already known, the new type will replace the old one. When the "
"type is already known the extension will be added to the list of known "
"extensions."
msgstr ""
#: library/mimetypes.rst:118
2016-10-30 09:46:26 +00:00
msgid ""
"When *strict* is ``True`` (the default), the mapping will be added to the "
"official MIME types, otherwise to the non-standard ones."
msgstr ""
#: library/mimetypes.rst:124
2016-10-30 09:46:26 +00:00
msgid ""
"Flag indicating whether or not the global data structures have been "
"initialized. This is set to ``True`` by :func:`init`."
msgstr ""
#: library/mimetypes.rst:132
2016-10-30 09:46:26 +00:00
msgid ""
"List of type map file names commonly installed. These files are typically "
"named :file:`mime.types` and are installed in different locations by "
"different packages."
msgstr ""
#: library/mimetypes.rst:139
2016-10-30 09:46:26 +00:00
msgid ""
"Dictionary mapping suffixes to suffixes. This is used to allow recognition "
"of encoded files for which the encoding and the type are indicated by the "
"same extension. For example, the :file:`.tgz` extension is mapped to :file:"
"`.tar.gz` to allow the encoding and type to be recognized separately."
msgstr ""
#: library/mimetypes.rst:147
2016-10-30 09:46:26 +00:00
msgid "Dictionary mapping filename extensions to encoding types."
msgstr ""
#: library/mimetypes.rst:152
2016-10-30 09:46:26 +00:00
msgid "Dictionary mapping filename extensions to MIME types."
msgstr ""
#: library/mimetypes.rst:157
2016-10-30 09:46:26 +00:00
msgid ""
"Dictionary mapping filename extensions to non-standard, but commonly found "
"MIME types."
msgstr ""
#: library/mimetypes.rst:161
2016-10-30 09:46:26 +00:00
msgid "An example usage of the module::"
msgstr "Un exemple d'utilisation du module ::"
2016-10-30 09:46:26 +00:00
#: library/mimetypes.rst:178
2016-10-30 09:46:26 +00:00
msgid "MimeTypes Objects"
msgstr ""
#: library/mimetypes.rst:180
2016-10-30 09:46:26 +00:00
msgid ""
"The :class:`MimeTypes` class may be useful for applications which may want "
"more than one MIME-type database; it provides an interface similar to the "
"one of the :mod:`mimetypes` module."
msgstr ""
#: library/mimetypes.rst:187
2016-10-30 09:46:26 +00:00
msgid ""
"This class represents a MIME-types database. By default, it provides access "
"to the same database as the rest of this module. The initial database is a "
"copy of that provided by the module, and may be extended by loading "
"additional :file:`mime.types`\\ -style files into the database using the :"
"meth:`read` or :meth:`readfp` methods. The mapping dictionaries may also be "
"cleared before loading additional data if the default data is not desired."
msgstr ""
#: library/mimetypes.rst:194
2016-10-30 09:46:26 +00:00
msgid ""
"The optional *filenames* parameter can be used to cause additional files to "
"be loaded \"on top\" of the default database."
msgstr ""
#: library/mimetypes.rst:200
2016-10-30 09:46:26 +00:00
msgid ""
"Dictionary mapping suffixes to suffixes. This is used to allow recognition "
"of encoded files for which the encoding and the type are indicated by the "
"same extension. For example, the :file:`.tgz` extension is mapped to :file:"
"`.tar.gz` to allow the encoding and type to be recognized separately. This "
"is initially a copy of the global :data:`suffix_map` defined in the module."
msgstr ""
#: library/mimetypes.rst:209
2016-10-30 09:46:26 +00:00
msgid ""
"Dictionary mapping filename extensions to encoding types. This is initially "
"a copy of the global :data:`encodings_map` defined in the module."
msgstr ""
#: library/mimetypes.rst:215
2016-10-30 09:46:26 +00:00
msgid ""
"Tuple containing two dictionaries, mapping filename extensions to MIME "
"types: the first dictionary is for the non-standards types and the second "
"one is for the standard types. They are initialized by :data:`common_types` "
"and :data:`types_map`."
msgstr ""
#: library/mimetypes.rst:223
2016-10-30 09:46:26 +00:00
msgid ""
"Tuple containing two dictionaries, mapping MIME types to a list of filename "
"extensions: the first dictionary is for the non-standards types and the "
"second one is for the standard types. They are initialized by :data:"
"`common_types` and :data:`types_map`."
msgstr ""
#: library/mimetypes.rst:231
2016-10-30 09:46:26 +00:00
msgid ""
"Similar to the :func:`guess_extension` function, using the tables stored as "
"part of the object."
msgstr ""
#: library/mimetypes.rst:237
2016-10-30 09:46:26 +00:00
msgid ""
"Similar to the :func:`guess_type` function, using the tables stored as part "
"of the object."
msgstr ""
#: library/mimetypes.rst:243
2016-10-30 09:46:26 +00:00
msgid ""
"Similar to the :func:`guess_all_extensions` function, using the tables "
"stored as part of the object."
msgstr ""
#: library/mimetypes.rst:249
2016-10-30 09:46:26 +00:00
msgid ""
"Load MIME information from a file named *filename*. This uses :meth:"
"`readfp` to parse the file."
msgstr ""
#: library/mimetypes.rst:252
2016-10-30 09:46:26 +00:00
msgid ""
"If *strict* is ``True``, information will be added to list of standard "
"types, else to the list of non-standard types."
msgstr ""
#: library/mimetypes.rst:258
2016-10-30 09:46:26 +00:00
msgid ""
"Load MIME type information from an open file *fp*. The file must have the "
"format of the standard :file:`mime.types` files."
msgstr ""
2020-10-02 08:55:01 +00:00
#: library/mimetypes.rst:271
2016-10-30 09:46:26 +00:00
msgid ""
"If *strict* is ``True``, information will be added to the list of standard "
"types, else to the list of non-standard types."
msgstr ""
#: library/mimetypes.rst:267
2018-11-29 15:13:39 +00:00
msgid "Load MIME type information from the Windows registry."
msgstr ""
#: library/mimetypes.rst:270
2018-11-29 15:13:39 +00:00
msgid ":ref:`Availability <availability>`: Windows."
msgstr ":ref:`Disponibilité <availability>` : Windows."