python-docs-fr/library/zipimport.po
2019-12-06 14:21:00 +01:00

255 lines
10 KiB
Plaintext

# SOME DESCRIPTIVE TITLE.
# Copyright (C) 1990-2016, Python Software Foundation
# This file is distributed under the same license as the Python package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: Python 2.7\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-10-30 10:44+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: ../Doc/library/zipimport.rst:3
msgid ":mod:`zipimport` --- Import modules from Zip archives"
msgstr ":mod:`zipimport` — Importer des modules à partir d'archives Zip"
#: ../Doc/library/zipimport.rst:12
msgid ""
"This module adds the ability to import Python modules (:file:`\\*.py`, :file:"
"`\\*.py[co]`) and packages from ZIP-format archives. It is usually not "
"needed to use the :mod:`zipimport` module explicitly; it is automatically "
"used by the built-in :keyword:`import` mechanism for :data:`sys.path` items "
"that are paths to ZIP archives."
msgstr ""
#: ../Doc/library/zipimport.rst:18
msgid ""
"Typically, :data:`sys.path` is a list of directory names as strings. This "
"module also allows an item of :data:`sys.path` to be a string naming a ZIP "
"file archive. The ZIP archive can contain a subdirectory structure to "
"support package imports, and a path within the archive can be specified to "
"only import from a subdirectory. For example, the path :file:`example.zip/"
"lib/` would only import from the :file:`lib/` subdirectory within the "
"archive."
msgstr ""
"Typiquement, :data:`sys.path` est une liste de noms de répertoires sous "
"forme de chaînes. Ce module permet également à un élément de :data:`sys."
"path` d'être une chaîne nommant une archive de fichier ZIP. L'archive ZIP "
"peut contenir une structure de sous-répertoire pour prendre en charge les "
"importations de paquets, et un chemin dans l'archive peut être spécifié pour "
"importer uniquement à partir d'un sous-répertoire. Par exemple, le chemin "
"d'accès :file:`example.zip/lib/` importerait uniquement depuis le sous-"
"répertoire :file:`lib/` dans l'archive."
#: ../Doc/library/zipimport.rst:25
msgid ""
"Any files may be present in the ZIP archive, but only files :file:`.py` and :"
"file:`.py[co]` are available for import. ZIP import of dynamic modules (:"
"file:`.pyd`, :file:`.so`) is disallowed. Note that if an archive only "
"contains :file:`.py` files, Python will not attempt to modify the archive by "
"adding the corresponding :file:`.pyc` or :file:`.pyo` file, meaning that if "
"a ZIP archive doesn't contain :file:`.pyc` files, importing may be rather "
"slow."
msgstr ""
#: ../Doc/library/zipimport.rst:32
msgid ""
"Using the built-in :func:`reload` function will fail if called on a module "
"loaded from a ZIP archive; it is unlikely that :func:`reload` would be "
"needed, since this would imply that the ZIP has been altered during runtime."
msgstr ""
#: ../Doc/library/zipimport.rst:36
msgid "ZIP archives with an archive comment are currently not supported."
msgstr ""
#: ../Doc/library/zipimport.rst:42
msgid ""
"`PKZIP Application Note <https://pkware.cachefly.net/webdocs/casestudies/"
"APPNOTE.TXT>`_"
msgstr ""
"`PKZIP Application Note <https://pkware.cachefly.net/webdocs/casestudies/"
"APPNOTE.TXT>`_"
#: ../Doc/library/zipimport.rst:41
msgid ""
"Documentation on the ZIP file format by Phil Katz, the creator of the format "
"and algorithms used."
msgstr ""
"Documentation sur le format de fichier ZIP par Phil Katz, créateur du format "
"et des algorithmes utilisés."
#: ../Doc/library/zipimport.rst:47
msgid ":pep:`273` - Import Modules from Zip Archives"
msgstr ":pep:`273` - Import Modules from Zip Archives"
#: ../Doc/library/zipimport.rst:45
msgid ""
"Written by James C. Ahlstrom, who also provided an implementation. Python "
"2.3 follows the specification in PEP 273, but uses an implementation written "
"by Just van Rossum that uses the import hooks described in PEP 302."
msgstr ""
#: ../Doc/library/zipimport.rst:49
msgid ":pep:`302` - New Import Hooks"
msgstr ":pep:`302` — Nouveaux crochets d'importation"
#: ../Doc/library/zipimport.rst:50
msgid "The PEP to add the import hooks that help this module work."
msgstr ""
"Le PEP pour ajouter les crochets d'importation qui aident ce module à "
"fonctionner."
#: ../Doc/library/zipimport.rst:53
msgid "This module defines an exception:"
msgstr "Ce module définit une exception :"
#: ../Doc/library/zipimport.rst:57
msgid ""
"Exception raised by zipimporter objects. It's a subclass of :exc:"
"`ImportError`, so it can be caught as :exc:`ImportError`, too."
msgstr ""
"Exception levée par les objets *zipimporter*. C'est une sous-classe de :exc:"
"`ImportError`, donc il peut être pris comme :exc:`ImportError`, aussi."
#: ../Doc/library/zipimport.rst:64
msgid "zipimporter Objects"
msgstr "Objets *zimporter*"
#: ../Doc/library/zipimport.rst:66
msgid ":class:`zipimporter` is the class for importing ZIP files."
msgstr ":class:`zipimporter` est la classe pour importer des fichiers ZIP."
#: ../Doc/library/zipimport.rst:70
msgid ""
"Create a new zipimporter instance. *archivepath* must be a path to a ZIP "
"file, or to a specific path within a ZIP file. For example, an "
"*archivepath* of :file:`foo/bar.zip/lib` will look for modules in the :file:"
"`lib` directory inside the ZIP file :file:`foo/bar.zip` (provided that it "
"exists)."
msgstr ""
"Créez une nouvelle instance de `zipimporter`. *archivepath* doit être un "
"chemin vers un fichier ZIP, ou vers un chemin spécifique dans un fichier "
"ZIP. Par exemple, un *archivepath* de :file:`foo/bar.zip/lib` cherchera les "
"modules dans le répertoire :file:`lib` du fichier ZIP :file:`foo/bar.zip` "
"(si celui-ci existe)."
#: ../Doc/library/zipimport.rst:75
msgid ""
":exc:`ZipImportError` is raised if *archivepath* doesn't point to a valid "
"ZIP archive."
msgstr ""
":exc:`ZipImportError` est levée si *archivepath* ne pointe pas vers une "
"archive ZIP valide."
#: ../Doc/library/zipimport.rst:80
msgid ""
"Search for a module specified by *fullname*. *fullname* must be the fully "
"qualified (dotted) module name. It returns the zipimporter instance itself "
"if the module was found, or :const:`None` if it wasn't. The optional *path* "
"argument is ignored---it's there for compatibility with the importer "
"protocol."
msgstr ""
"Rechercher un module spécifié par *fullname*. *fullname* doit être le nom du "
"module entièrement qualifié (`dotted`). Elle retourne l'instance "
"`zipimporter` elle-même si le module a été trouvé, ou :const:`None` si ce "
"n'est pas le cas. L'argument optionnel *path* est ignoré --- il est là pour "
"la compatibilité avec le protocole de l'importateur."
#: ../Doc/library/zipimport.rst:89
msgid ""
"Return the code object for the specified module. Raise :exc:`ZipImportError` "
"if the module couldn't be found."
msgstr ""
"Retourne l'objet de code pour le module spécifié. Lève :exc:`ZipImportError` "
"si le module n'a pas pu être trouvé."
#: ../Doc/library/zipimport.rst:95
msgid ""
"Return the data associated with *pathname*. Raise :exc:`IOError` if the file "
"wasn't found."
msgstr ""
#: ../Doc/library/zipimport.rst:101
msgid ""
"Return the value ``__file__`` would be set to if the specified module was "
"imported. Raise :exc:`ZipImportError` if the module couldn't be found."
msgstr ""
"Renvoie la valeur ``__file____`` qui serait définie si le module spécifié "
"était importé. Lève :exc:`ZipImportError` si le module n'a pas pu être "
"trouvé."
#: ../Doc/library/zipimport.rst:110
msgid ""
"Return the source code for the specified module. Raise :exc:`ZipImportError` "
"if the module couldn't be found, return :const:`None` if the archive does "
"contain the module, but has no source for it."
msgstr ""
"Renvoie le code source du module spécifié. Lève :exc:`ZipImportError` si le "
"module n'a pas pu être trouvé, renvoie :const:`None` si l'archive contient "
"le module, mais n'en a pas la source."
#: ../Doc/library/zipimport.rst:118
msgid ""
"Return ``True`` if the module specified by *fullname* is a package. Raise :"
"exc:`ZipImportError` if the module couldn't be found."
msgstr ""
"Renvoie ``True`` si le module spécifié par *fullname* est un paquet. Lève :"
"exc:`ZipImportError` si le module n'a pas pu être trouvé."
#: ../Doc/library/zipimport.rst:124
msgid ""
"Load the module specified by *fullname*. *fullname* must be the fully "
"qualified (dotted) module name. It returns the imported module, or raises :"
"exc:`ZipImportError` if it wasn't found."
msgstr ""
"Charge le module spécifié par *fullname*. *fullname* doit être le nom du "
"module entièrement qualifié (`dotted`). Il renvoie le module importé, ou "
"augmente :exc:`ZipImportError` s'il n'a pas été trouvé."
#: ../Doc/library/zipimport.rst:131
msgid ""
"The file name of the importer's associated ZIP file, without a possible "
"subpath."
msgstr ""
"Le nom de fichier de l'archive ZIP associé à l'importateur, sans sous-chemin "
"possible."
#: ../Doc/library/zipimport.rst:137
msgid ""
"The subpath within the ZIP file where modules are searched. This is the "
"empty string for zipimporter objects which point to the root of the ZIP file."
msgstr ""
"Le sous-chemin du fichier ZIP où les modules sont recherchés. C'est la "
"chaîne vide pour les objets `zipimporter` qui pointent vers la racine du "
"fichier ZIP."
#: ../Doc/library/zipimport.rst:141
msgid ""
"The :attr:`archive` and :attr:`prefix` attributes, when combined with a "
"slash, equal the original *archivepath* argument given to the :class:"
"`zipimporter` constructor."
msgstr ""
"Les attributs :attr:`archive` et :attr:`prefix`, lorsqu'ils sont combinés "
"avec une barre oblique, égalent l'argument original *archivepath* donné au "
"constructeur :class:`zipimporter`."
#: ../Doc/library/zipimport.rst:149
msgid "Examples"
msgstr "Exemples"
#: ../Doc/library/zipimport.rst:151
msgid ""
"Here is an example that imports a module from a ZIP archive - note that the :"
"mod:`zipimport` module is not explicitly used."
msgstr ""
"Voici un exemple qui importe un module d'une archive ZIP — notez que le "
"module :mod:`zipimport` n'est pas explicitement utilisé."