From 02b95e252f4fa5cd77a09814d30d66b1fb2367b9 Mon Sep 17 00:00:00 2001 From: Arnaud Date: Wed, 9 Feb 2022 15:27:28 +0100 Subject: [PATCH 1/7] Traduction partielle glob.po --- library/glob.po | 38 ++++++++++++++++++++++++-------------- 1 file changed, 24 insertions(+), 14 deletions(-) diff --git a/library/glob.po b/library/glob.po index d91633cbf..60869383c 100644 --- a/library/glob.po +++ b/library/glob.po @@ -6,19 +6,18 @@ msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2021-09-23 16:16+0200\n" -"PO-Revision-Date: 2018-09-28 12:40+0200\n" -"Last-Translator: Julien VITARD \n" +"PO-Revision-Date: 2022-02-09 15:22+0100\n" +"Last-Translator: Arnaud Fréalle \n" "Language-Team: FRENCH \n" "Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Generator: Poedit 1.8.11\n" +"X-Generator: Poedit 3.0\n" #: library/glob.rst:2 msgid ":mod:`glob` --- Unix style pathname pattern expansion" -msgstr "" -":mod:`glob` --- Recherche de chemins de style Unix selon certains motifs" +msgstr ":mod:`glob` — Recherche de chemins de style Unix selon certains motifs" #: library/glob.rst:7 msgid "**Source code:** :source:`Lib/glob.py`" @@ -80,7 +79,8 @@ msgstr "" "src/Python-1.5/Makefile`) soit relatif (comme :file:`../../Tools/\\*/\\*." "gif`), et contenir un caractère de remplacement de style shell. Les liens " "symboliques cassés sont aussi inclus dans les résultats (comme pour le " -"shell)." +"shell). Le fait que les résultats soient triés ou non dépend du système de " +"fichier." #: library/glob.rst:50 msgid "" @@ -89,37 +89,47 @@ msgid "" "func:`glob` as changing the current directory before calling it. If " "*pathname* is relative, the result will contain paths relative to *root_dir*." msgstr "" +"Si *root_dir* n'est pas ``None``, cela doit être :term:`objet simili-chemin " +"` spécifiant le dossier racine pour rechercher. Cela a le " +"même effet sur :func:`glob` en changeant le dossier courant avant l'appel de " +"la fonction. Si *pathname* est relative, le résultat contiendra les chemins " +"relatifs au *root_dir* ." #: library/glob.rst:56 msgid "" "This function can support :ref:`paths relative to directory descriptors " "` with the *dir_fd* parameter." msgstr "" +"Cette fonction prend en charge les :ref:`chemins relatifs aux descripteurs " +"de dossier ` avec le paramètre *dir_fd*." #: library/glob.rst:62 -#, fuzzy msgid "" "If *recursive* is true, the pattern \"``**``\" will match any files and zero " "or more directories, subdirectories and symbolic links to directories. If " "the pattern is followed by an :data:`os.sep` or :data:`os.altsep` then files " "will not match." msgstr "" -"Si *recursive* est vrai, le motif \"``**``\" reconnaît tous les fichiers et, " -"zéro ou plus répertoires et sous-répertoires. Si le motif est suivi par un " -"caractère de séparation ``os.sep``, seuls les répertoires et sous-" -"répertoires sont reconnus." +"Si *recursive* est vrai, le motif \"``**``\" reconnaît tous les fichiers, " +"aucun ou plusieurs répertoires, sous-répertoires et liens symboliques aux " +"répertoires. Si le motif est suivi par un caractère de séparation :data:`os." +"sep` ou :data:`os.altsep` alors les fichiers ne seront pas reconnus." #: library/glob.rst:86 msgid "" "Raises an :ref:`auditing event ` ``glob.glob`` with arguments " "``pathname``, ``recursive``." msgstr "" +"Lève un :ref:`évènement d'audit ` ``glob.glob`` avec les arguments " +"``pathname``, ``recursive``." #: library/glob.rst:87 msgid "" "Raises an :ref:`auditing event ` ``glob.glob/2`` with arguments " "``pathname``, ``recursive``, ``root_dir``, ``dir_fd``." msgstr "" +"Lève un :ref:`évènement d'audit ` ``glob.glob/2`` avec les " +"arguments ``pathname``, ``recursive``, ``root_dir``, ``dir_fd``." #: library/glob.rst:71 msgid "" @@ -135,15 +145,15 @@ msgstr "Gestion des chemins récursifs utilisant le motif \"``**``\"." #: library/glob.rst:92 msgid "Added the *root_dir* and *dir_fd* parameters." -msgstr "" +msgstr "Paramètres *root_dir* et *dir_fd* ajoutés." #: library/glob.rst:83 msgid "" "Return an :term:`iterator` which yields the same values as :func:`glob` " "without actually storing them all simultaneously." msgstr "" -"Renvoie un :term:`iterator` qui produit les mêmes valeurs que :func:`glob`, " -"sans toutes les charger en mémoire simultanément." +"Renvoie un :term:`itérateur ` qui produit les mêmes valeurs que :" +"func:`glob`, sans toutes les charger en mémoire simultanément." #: library/glob.rst:98 msgid "" From f431bd458cc57f9a61698fb1e052a239cb047dab Mon Sep 17 00:00:00 2001 From: freallearn <62348515+freallearn@users.noreply.github.com> Date: Thu, 10 Feb 2022 10:14:26 +0100 Subject: [PATCH 2/7] Update library/glob.po Co-authored-by: Christophe Nanteuil <35002064+christopheNan@users.noreply.github.com> --- library/glob.po | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/glob.po b/library/glob.po index 60869383c..3e83e350a 100644 --- a/library/glob.po +++ b/library/glob.po @@ -80,7 +80,7 @@ msgstr "" "gif`), et contenir un caractère de remplacement de style shell. Les liens " "symboliques cassés sont aussi inclus dans les résultats (comme pour le " "shell). Le fait que les résultats soient triés ou non dépend du système de " -"fichier." +"fichiers." #: library/glob.rst:50 msgid "" From 8a6f8601f7ae83eaa7a0e09e6a1723de2cfa3830 Mon Sep 17 00:00:00 2001 From: freallearn <62348515+freallearn@users.noreply.github.com> Date: Thu, 10 Feb 2022 10:14:41 +0100 Subject: [PATCH 3/7] Update library/glob.po Co-authored-by: Christophe Nanteuil <35002064+christopheNan@users.noreply.github.com> --- library/glob.po | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/glob.po b/library/glob.po index 3e83e350a..9f3ae7ddd 100644 --- a/library/glob.po +++ b/library/glob.po @@ -89,7 +89,7 @@ msgid "" "func:`glob` as changing the current directory before calling it. If " "*pathname* is relative, the result will contain paths relative to *root_dir*." msgstr "" -"Si *root_dir* n'est pas ``None``, cela doit être :term:`objet simili-chemin " +"Si *root_dir* n'est pas ``None``, cela doit être un :term:`objet simili-chemin " "` spécifiant le dossier racine pour rechercher. Cela a le " "même effet sur :func:`glob` en changeant le dossier courant avant l'appel de " "la fonction. Si *pathname* est relative, le résultat contiendra les chemins " From 2ccb413fef28f3cfe0781623386b375546b5e026 Mon Sep 17 00:00:00 2001 From: freallearn <62348515+freallearn@users.noreply.github.com> Date: Thu, 10 Feb 2022 10:14:56 +0100 Subject: [PATCH 4/7] Update library/glob.po Co-authored-by: Christophe Nanteuil <35002064+christopheNan@users.noreply.github.com> --- library/glob.po | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/library/glob.po b/library/glob.po index 9f3ae7ddd..61eb28feb 100644 --- a/library/glob.po +++ b/library/glob.po @@ -90,9 +90,9 @@ msgid "" "*pathname* is relative, the result will contain paths relative to *root_dir*." msgstr "" "Si *root_dir* n'est pas ``None``, cela doit être un :term:`objet simili-chemin " -"` spécifiant le dossier racine pour rechercher. Cela a le " -"même effet sur :func:`glob` en changeant le dossier courant avant l'appel de " -"la fonction. Si *pathname* est relative, le résultat contiendra les chemins " +"` spécifiant le dossier racine de la recherche. Cela a le " +"même effet sur :func:`glob` que de changer le dossier courant avant l'appel de " +"la fonction. Si *pathname* est relatif, les chemins du résultat seront " "relatifs au *root_dir* ." #: library/glob.rst:56 From 6eadc70ade506d5123789b804819df8b14a8e0e1 Mon Sep 17 00:00:00 2001 From: freallearn <62348515+freallearn@users.noreply.github.com> Date: Thu, 10 Feb 2022 10:15:04 +0100 Subject: [PATCH 5/7] Update library/glob.po Co-authored-by: Christophe Nanteuil <35002064+christopheNan@users.noreply.github.com> --- library/glob.po | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/glob.po b/library/glob.po index 61eb28feb..072d3c356 100644 --- a/library/glob.po +++ b/library/glob.po @@ -112,8 +112,8 @@ msgid "" msgstr "" "Si *recursive* est vrai, le motif \"``**``\" reconnaît tous les fichiers, " "aucun ou plusieurs répertoires, sous-répertoires et liens symboliques aux " -"répertoires. Si le motif est suivi par un caractère de séparation :data:`os." -"sep` ou :data:`os.altsep` alors les fichiers ne seront pas reconnus." +"répertoires. Si le motif est suivi par :data:`os." +"sep` ou :data:`os.altsep` alors les fichiers ne sont pas inclus dans le résultat." #: library/glob.rst:86 msgid "" From 68490598aa4dd4229a19df4453eea8dcee88481a Mon Sep 17 00:00:00 2001 From: Arnaud Date: Fri, 11 Feb 2022 13:53:39 +0100 Subject: [PATCH 6/7] Correction library/glob.po --- library/glob.po | 152 +++++++++++++++++++++++------------------------- 1 file changed, 74 insertions(+), 78 deletions(-) diff --git a/library/glob.po b/library/glob.po index 072d3c356..e8316a3ec 100644 --- a/library/glob.po +++ b/library/glob.po @@ -6,7 +6,7 @@ msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2021-09-23 16:16+0200\n" -"PO-Revision-Date: 2022-02-09 15:22+0100\n" +"PO-Revision-Date: 2022-02-11 13:53+0100\n" "Last-Translator: Arnaud Fréalle \n" "Language-Team: FRENCH \n" "Language: fr\n" @@ -26,26 +26,26 @@ msgstr "**Code source :** :source:`Lib/glob.py`" #: library/glob.rst:21 msgid "" "The :mod:`glob` module finds all the pathnames matching a specified pattern " -"according to the rules used by the Unix shell, although results are returned " -"in arbitrary order. No tilde expansion is done, but ``*``, ``?``, and " -"character ranges expressed with ``[]`` will be correctly matched. This is " -"done by using the :func:`os.scandir` and :func:`fnmatch.fnmatch` functions " -"in concert, and not by actually invoking a subshell. Note that unlike :func:" -"`fnmatch.fnmatch`, :mod:`glob` treats filenames beginning with a dot (``.``) " -"as special cases. (For tilde and shell variable expansion, use :func:`os." -"path.expanduser` and :func:`os.path.expandvars`.)" +"according to the rules used by the Unix shell, although results are returned in " +"arbitrary order. No tilde expansion is done, but ``*``, ``?``, and character " +"ranges expressed with ``[]`` will be correctly matched. This is done by using " +"the :func:`os.scandir` and :func:`fnmatch.fnmatch` functions in concert, and not " +"by actually invoking a subshell. Note that unlike :func:`fnmatch.fnmatch`, :mod:" +"`glob` treats filenames beginning with a dot (``.``) as special cases. (For " +"tilde and shell variable expansion, use :func:`os.path.expanduser` and :func:`os." +"path.expandvars`.)" msgstr "" "Le module :mod:`glob` recherche tous les chemins correspondant à un motif " "particulier selon les règles utilisées par le shell Unix, les résultats sont " -"renvoyés dans un ordre arbitraire. Aucun remplacement du tilde n'est " -"réalisé, mais les caractères ``*``, ``?``, et les caractères ``[]`` " -"exprimant un intervalle sont correctement renvoyés. Cette opération est " -"réalisée en utilisant les fonctions :func:`os.scandir` et :func:`fnmatch." -"fnmatch` de concert, et sans invoquer une sous-commande. Notons qu'à la " -"différence de :func:`fnmatch.fnmatch`, :mod:`glob` traite les noms de " -"fichiers commençant par un point (``.``) comme des cas spéciaux. (Pour " -"remplacer le tilde et les variables shell, nous vous conseillons d'utiliser " -"les fonctions :func:`os.path.expanduser` et :func:`os.path.expandvars`.)" +"renvoyés dans un ordre arbitraire. Aucun remplacement du tilde n'est réalisé, " +"mais les caractères ``*``, ``?``, et les caractères ``[]`` exprimant un " +"intervalle sont correctement renvoyés. Cette opération est réalisée en utilisant " +"les fonctions :func:`os.scandir` et :func:`fnmatch.fnmatch` de concert, et sans " +"invoquer une sous-commande. Notons qu'à la différence de :func:`fnmatch." +"fnmatch`, :mod:`glob` traite les noms de fichiers commençant par un point (``." +"``) comme des cas spéciaux. (Pour remplacer le tilde et les variables shell, " +"nous vous conseillons d'utiliser les fonctions :func:`os.path.expanduser` et :" +"func:`os.path.expandvars`.)" #: library/glob.rst:31 msgid "" @@ -64,56 +64,55 @@ msgstr "" #: library/glob.rst:41 #, fuzzy msgid "" -"Return a possibly-empty list of path names that match *pathname*, which must " -"be a string containing a path specification. *pathname* can be either " -"absolute (like :file:`/usr/src/Python-1.5/Makefile`) or relative (like :file:" -"`../../Tools/\\*/\\*.gif`), and can contain shell-style wildcards. Broken " -"symlinks are included in the results (as in the shell). Whether or not the " -"results are sorted depends on the file system. If a file that satisfies " -"conditions is removed or added during the call of this function, whether a " -"path name for that file be included is unspecified." +"Return a possibly-empty list of path names that match *pathname*, which must be " +"a string containing a path specification. *pathname* can be either absolute " +"(like :file:`/usr/src/Python-1.5/Makefile`) or relative (like :file:`../../Tools/" +"\\*/\\*.gif`), and can contain shell-style wildcards. Broken symlinks are " +"included in the results (as in the shell). Whether or not the results are sorted " +"depends on the file system. If a file that satisfies conditions is removed or " +"added during the call of this function, whether a path name for that file be " +"included is unspecified." msgstr "" "Renvoie une liste, potentiellement vide, de chemins correspondant au motif " -"*pathname*, qui doit être une chaîne de caractères contenant la " -"spécification du chemin. *pathname* peut être soit absolu (comme :file:`/usr/" -"src/Python-1.5/Makefile`) soit relatif (comme :file:`../../Tools/\\*/\\*." -"gif`), et contenir un caractère de remplacement de style shell. Les liens " -"symboliques cassés sont aussi inclus dans les résultats (comme pour le " -"shell). Le fait que les résultats soient triés ou non dépend du système de " -"fichiers." +"*pathname*, qui doit être une chaîne de caractères contenant la spécification du " +"chemin. *pathname* peut être soit absolu (comme :file:`/usr/src/Python-1.5/" +"Makefile`) soit relatif (comme :file:`../../Tools/\\*/\\*.gif`), et contenir un " +"caractère de remplacement de style shell. Les liens symboliques cassés sont " +"aussi inclus dans les résultats (comme pour le shell). Le fait que les résultats " +"soient triés ou non dépend du système de fichiers." #: library/glob.rst:50 msgid "" "If *root_dir* is not ``None``, it should be a :term:`path-like object` " -"specifying the root directory for searching. It has the same effect on :" -"func:`glob` as changing the current directory before calling it. If " -"*pathname* is relative, the result will contain paths relative to *root_dir*." +"specifying the root directory for searching. It has the same effect on :func:" +"`glob` as changing the current directory before calling it. If *pathname* is " +"relative, the result will contain paths relative to *root_dir*." msgstr "" "Si *root_dir* n'est pas ``None``, cela doit être un :term:`objet simili-chemin " "` spécifiant le dossier racine de la recherche. Cela a le " "même effet sur :func:`glob` que de changer le dossier courant avant l'appel de " -"la fonction. Si *pathname* est relatif, les chemins du résultat seront " -"relatifs au *root_dir* ." +"la fonction. Si *pathname* est relatif, les chemins du résultat seront relatifs " +"au *root_dir* ." #: library/glob.rst:56 msgid "" "This function can support :ref:`paths relative to directory descriptors " "` with the *dir_fd* parameter." msgstr "" -"Cette fonction prend en charge les :ref:`chemins relatifs aux descripteurs " -"de dossier ` avec le paramètre *dir_fd*." +"Cette fonction prend en charge les :ref:`chemins relatifs aux descripteurs de " +"dossier ` avec le paramètre *dir_fd*." #: library/glob.rst:62 msgid "" -"If *recursive* is true, the pattern \"``**``\" will match any files and zero " -"or more directories, subdirectories and symbolic links to directories. If " -"the pattern is followed by an :data:`os.sep` or :data:`os.altsep` then files " -"will not match." +"If *recursive* is true, the pattern \"``**``\" will match any files and zero or " +"more directories, subdirectories and symbolic links to directories. If the " +"pattern is followed by an :data:`os.sep` or :data:`os.altsep` then files will " +"not match." msgstr "" -"Si *recursive* est vrai, le motif \"``**``\" reconnaît tous les fichiers, " -"aucun ou plusieurs répertoires, sous-répertoires et liens symboliques aux " -"répertoires. Si le motif est suivi par :data:`os." -"sep` ou :data:`os.altsep` alors les fichiers ne sont pas inclus dans le résultat." +"Si *recursive* est vrai, le motif \"``**``\" reconnaît tous les fichiers, aucun " +"ou plusieurs répertoires, sous-répertoires et liens symboliques aux répertoires. " +"Si le motif est suivi par :data:`os.sep` ou :data:`os.altsep` alors les fichiers " +"ne sont pas inclus dans le résultat." #: library/glob.rst:86 msgid "" @@ -128,20 +127,20 @@ msgid "" "Raises an :ref:`auditing event ` ``glob.glob/2`` with arguments " "``pathname``, ``recursive``, ``root_dir``, ``dir_fd``." msgstr "" -"Lève un :ref:`évènement d'audit ` ``glob.glob/2`` avec les " -"arguments ``pathname``, ``recursive``, ``root_dir``, ``dir_fd``." +"Lève un :ref:`évènement d'audit ` ``glob.glob/2`` avec les arguments " +"``pathname``, ``recursive``, ``root_dir``, ``dir_fd``." #: library/glob.rst:71 msgid "" -"Using the \"``**``\" pattern in large directory trees may consume an " -"inordinate amount of time." +"Using the \"``**``\" pattern in large directory trees may consume an inordinate " +"amount of time." msgstr "" "Utiliser le motif \"``**``\" dans de grandes arborescences de dossier peut " "consommer une quantité de temps démesurée." #: library/glob.rst:89 msgid "Support for recursive globs using \"``**``\"." -msgstr "Gestion des chemins récursifs utilisant le motif \"``**``\"." +msgstr "Prise en charge des chemins récursifs utilisant le motif \"``**``\"." #: library/glob.rst:92 msgid "Added the *root_dir* and *dir_fd* parameters." @@ -149,46 +148,44 @@ msgstr "Paramètres *root_dir* et *dir_fd* ajoutés." #: library/glob.rst:83 msgid "" -"Return an :term:`iterator` which yields the same values as :func:`glob` " -"without actually storing them all simultaneously." +"Return an :term:`iterator` which yields the same values as :func:`glob` without " +"actually storing them all simultaneously." msgstr "" -"Renvoie un :term:`itérateur ` qui produit les mêmes valeurs que :" -"func:`glob`, sans toutes les charger en mémoire simultanément." +"Renvoie un :term:`itérateur ` qui produit les mêmes valeurs que :func:" +"`glob`, sans toutes les charger en mémoire simultanément." #: library/glob.rst:98 msgid "" -"Escape all special characters (``'?'``, ``'*'`` and ``'['``). This is useful " -"if you want to match an arbitrary literal string that may have special " -"characters in it. Special characters in drive/UNC sharepoints are not " -"escaped, e.g. on Windows ``escape('//?/c:/Quo vadis?.txt')`` returns ``'//?/" -"c:/Quo vadis[?].txt'``." +"Escape all special characters (``'?'``, ``'*'`` and ``'['``). This is useful if " +"you want to match an arbitrary literal string that may have special characters " +"in it. Special characters in drive/UNC sharepoints are not escaped, e.g. on " +"Windows ``escape('//?/c:/Quo vadis?.txt')`` returns ``'//?/c:/Quo vadis[?]." +"txt'``." msgstr "" "Échappe tous les caractères spéciaux (``'?'``, ``'*'`` et ``'['``). Cela est " "utile pour reconnaître une chaîne de caractère littérale arbitraire qui " -"contiendrait ce type de caractères. Les caractères spéciaux dans les disques " -"et répertoires partagés (chemins UNC) ne sont pas échappés, e.g. sous " -"Windows ``escape('//?/c:/Quo vadis?.txt')`` renvoie ``'//?/c:/Quo vadis[?]." -"txt'``." +"contiendrait ce type de caractères. Les caractères spéciaux dans les disques et " +"répertoires partagés (chemins UNC) ne sont pas échappés, e.g. sous Windows " +"``escape('//?/c:/Quo vadis?.txt')`` renvoie ``'//?/c:/Quo vadis[?].txt'``." #: library/glob.rst:107 msgid "" "For example, consider a directory containing the following files: :file:`1." "gif`, :file:`2.txt`, :file:`card.gif` and a subdirectory :file:`sub` which " -"contains only the file :file:`3.txt`. :func:`glob` will produce the " -"following results. Notice how any leading components of the path are " -"preserved. ::" +"contains only the file :file:`3.txt`. :func:`glob` will produce the following " +"results. Notice how any leading components of the path are preserved. ::" msgstr "" -"Par exemple, considérons un répertoire contenant les fichiers suivants : :" -"file:`1.gif`, :file:`2.txt`, :file:`card.gif` et un sous-répertoire :file:" -"`sub` contenant seulement le fichier :file:`3.txt`. :func:`glob` produit " -"les résultats suivants. Notons que les composantes principales des chemins " -"sont préservées. ::" +"Par exemple, considérons un répertoire contenant les fichiers suivants : :file:" +"`1.gif`, :file:`2.txt`, :file:`card.gif` et un sous-répertoire :file:`sub` " +"contenant seulement le fichier :file:`3.txt`. :func:`glob` produit les " +"résultats suivants. Notons que les composantes principales des chemins sont " +"préservées. ::" #: library/glob.rst:125 msgid "" "If the directory contains files starting with ``.`` they won't be matched by " -"default. For example, consider a directory containing :file:`card.gif` and :" -"file:`.card.gif`::" +"default. For example, consider a directory containing :file:`card.gif` and :file:" +"`.card.gif`::" msgstr "" "Si le répertoire contient des fichiers commençant par ``.``, ils ne sont pas " "reconnus par défaut. Par exemple, considérons un répertoire contenant :file:" @@ -200,5 +197,4 @@ msgstr "Module :mod:`fnmatch`" #: library/glob.rst:138 msgid "Shell-style filename (not path) expansion" -msgstr "" -"Recherche de noms de fichiers de style shell (ne concerne pas les chemins)" +msgstr "Recherche de noms de fichiers de style shell (ne concerne pas les chemins)" From ce758ebe3a667ad85a6fe7f3726613e545c2026a Mon Sep 17 00:00:00 2001 From: Jean Abou Samra Date: Thu, 28 Apr 2022 00:29:52 +0200 Subject: [PATCH 7/7] powrap library/glob.po --- library/glob.po | 154 +++++++++++++++++++++++++----------------------- 1 file changed, 79 insertions(+), 75 deletions(-) diff --git a/library/glob.po b/library/glob.po index e8316a3ec..cf766a5d7 100644 --- a/library/glob.po +++ b/library/glob.po @@ -26,26 +26,26 @@ msgstr "**Code source :** :source:`Lib/glob.py`" #: library/glob.rst:21 msgid "" "The :mod:`glob` module finds all the pathnames matching a specified pattern " -"according to the rules used by the Unix shell, although results are returned in " -"arbitrary order. No tilde expansion is done, but ``*``, ``?``, and character " -"ranges expressed with ``[]`` will be correctly matched. This is done by using " -"the :func:`os.scandir` and :func:`fnmatch.fnmatch` functions in concert, and not " -"by actually invoking a subshell. Note that unlike :func:`fnmatch.fnmatch`, :mod:" -"`glob` treats filenames beginning with a dot (``.``) as special cases. (For " -"tilde and shell variable expansion, use :func:`os.path.expanduser` and :func:`os." -"path.expandvars`.)" +"according to the rules used by the Unix shell, although results are returned " +"in arbitrary order. No tilde expansion is done, but ``*``, ``?``, and " +"character ranges expressed with ``[]`` will be correctly matched. This is " +"done by using the :func:`os.scandir` and :func:`fnmatch.fnmatch` functions " +"in concert, and not by actually invoking a subshell. Note that unlike :func:" +"`fnmatch.fnmatch`, :mod:`glob` treats filenames beginning with a dot (``.``) " +"as special cases. (For tilde and shell variable expansion, use :func:`os." +"path.expanduser` and :func:`os.path.expandvars`.)" msgstr "" "Le module :mod:`glob` recherche tous les chemins correspondant à un motif " "particulier selon les règles utilisées par le shell Unix, les résultats sont " -"renvoyés dans un ordre arbitraire. Aucun remplacement du tilde n'est réalisé, " -"mais les caractères ``*``, ``?``, et les caractères ``[]`` exprimant un " -"intervalle sont correctement renvoyés. Cette opération est réalisée en utilisant " -"les fonctions :func:`os.scandir` et :func:`fnmatch.fnmatch` de concert, et sans " -"invoquer une sous-commande. Notons qu'à la différence de :func:`fnmatch." -"fnmatch`, :mod:`glob` traite les noms de fichiers commençant par un point (``." -"``) comme des cas spéciaux. (Pour remplacer le tilde et les variables shell, " -"nous vous conseillons d'utiliser les fonctions :func:`os.path.expanduser` et :" -"func:`os.path.expandvars`.)" +"renvoyés dans un ordre arbitraire. Aucun remplacement du tilde n'est " +"réalisé, mais les caractères ``*``, ``?``, et les caractères ``[]`` " +"exprimant un intervalle sont correctement renvoyés. Cette opération est " +"réalisée en utilisant les fonctions :func:`os.scandir` et :func:`fnmatch." +"fnmatch` de concert, et sans invoquer une sous-commande. Notons qu'à la " +"différence de :func:`fnmatch.fnmatch`, :mod:`glob` traite les noms de " +"fichiers commençant par un point (``.``) comme des cas spéciaux. (Pour " +"remplacer le tilde et les variables shell, nous vous conseillons d'utiliser " +"les fonctions :func:`os.path.expanduser` et :func:`os.path.expandvars`.)" #: library/glob.rst:31 msgid "" @@ -64,55 +64,56 @@ msgstr "" #: library/glob.rst:41 #, fuzzy msgid "" -"Return a possibly-empty list of path names that match *pathname*, which must be " -"a string containing a path specification. *pathname* can be either absolute " -"(like :file:`/usr/src/Python-1.5/Makefile`) or relative (like :file:`../../Tools/" -"\\*/\\*.gif`), and can contain shell-style wildcards. Broken symlinks are " -"included in the results (as in the shell). Whether or not the results are sorted " -"depends on the file system. If a file that satisfies conditions is removed or " -"added during the call of this function, whether a path name for that file be " -"included is unspecified." +"Return a possibly-empty list of path names that match *pathname*, which must " +"be a string containing a path specification. *pathname* can be either " +"absolute (like :file:`/usr/src/Python-1.5/Makefile`) or relative (like :file:" +"`../../Tools/\\*/\\*.gif`), and can contain shell-style wildcards. Broken " +"symlinks are included in the results (as in the shell). Whether or not the " +"results are sorted depends on the file system. If a file that satisfies " +"conditions is removed or added during the call of this function, whether a " +"path name for that file be included is unspecified." msgstr "" "Renvoie une liste, potentiellement vide, de chemins correspondant au motif " -"*pathname*, qui doit être une chaîne de caractères contenant la spécification du " -"chemin. *pathname* peut être soit absolu (comme :file:`/usr/src/Python-1.5/" -"Makefile`) soit relatif (comme :file:`../../Tools/\\*/\\*.gif`), et contenir un " -"caractère de remplacement de style shell. Les liens symboliques cassés sont " -"aussi inclus dans les résultats (comme pour le shell). Le fait que les résultats " -"soient triés ou non dépend du système de fichiers." +"*pathname*, qui doit être une chaîne de caractères contenant la " +"spécification du chemin. *pathname* peut être soit absolu (comme :file:`/usr/" +"src/Python-1.5/Makefile`) soit relatif (comme :file:`../../Tools/\\*/\\*." +"gif`), et contenir un caractère de remplacement de style shell. Les liens " +"symboliques cassés sont aussi inclus dans les résultats (comme pour le " +"shell). Le fait que les résultats soient triés ou non dépend du système de " +"fichiers." #: library/glob.rst:50 msgid "" "If *root_dir* is not ``None``, it should be a :term:`path-like object` " -"specifying the root directory for searching. It has the same effect on :func:" -"`glob` as changing the current directory before calling it. If *pathname* is " -"relative, the result will contain paths relative to *root_dir*." +"specifying the root directory for searching. It has the same effect on :" +"func:`glob` as changing the current directory before calling it. If " +"*pathname* is relative, the result will contain paths relative to *root_dir*." msgstr "" -"Si *root_dir* n'est pas ``None``, cela doit être un :term:`objet simili-chemin " -"` spécifiant le dossier racine de la recherche. Cela a le " -"même effet sur :func:`glob` que de changer le dossier courant avant l'appel de " -"la fonction. Si *pathname* est relatif, les chemins du résultat seront relatifs " -"au *root_dir* ." +"Si *root_dir* n'est pas ``None``, cela doit être un :term:`objet simili-" +"chemin ` spécifiant le dossier racine de la recherche. " +"Cela a le même effet sur :func:`glob` que de changer le dossier courant " +"avant l'appel de la fonction. Si *pathname* est relatif, les chemins du " +"résultat seront relatifs au *root_dir* ." #: library/glob.rst:56 msgid "" "This function can support :ref:`paths relative to directory descriptors " "` with the *dir_fd* parameter." msgstr "" -"Cette fonction prend en charge les :ref:`chemins relatifs aux descripteurs de " -"dossier ` avec le paramètre *dir_fd*." +"Cette fonction prend en charge les :ref:`chemins relatifs aux descripteurs " +"de dossier ` avec le paramètre *dir_fd*." #: library/glob.rst:62 msgid "" -"If *recursive* is true, the pattern \"``**``\" will match any files and zero or " -"more directories, subdirectories and symbolic links to directories. If the " -"pattern is followed by an :data:`os.sep` or :data:`os.altsep` then files will " -"not match." +"If *recursive* is true, the pattern \"``**``\" will match any files and zero " +"or more directories, subdirectories and symbolic links to directories. If " +"the pattern is followed by an :data:`os.sep` or :data:`os.altsep` then files " +"will not match." msgstr "" -"Si *recursive* est vrai, le motif \"``**``\" reconnaît tous les fichiers, aucun " -"ou plusieurs répertoires, sous-répertoires et liens symboliques aux répertoires. " -"Si le motif est suivi par :data:`os.sep` ou :data:`os.altsep` alors les fichiers " -"ne sont pas inclus dans le résultat." +"Si *recursive* est vrai, le motif \"``**``\" reconnaît tous les fichiers, " +"aucun ou plusieurs répertoires, sous-répertoires et liens symboliques aux " +"répertoires. Si le motif est suivi par :data:`os.sep` ou :data:`os.altsep` " +"alors les fichiers ne sont pas inclus dans le résultat." #: library/glob.rst:86 msgid "" @@ -127,13 +128,13 @@ msgid "" "Raises an :ref:`auditing event ` ``glob.glob/2`` with arguments " "``pathname``, ``recursive``, ``root_dir``, ``dir_fd``." msgstr "" -"Lève un :ref:`évènement d'audit ` ``glob.glob/2`` avec les arguments " -"``pathname``, ``recursive``, ``root_dir``, ``dir_fd``." +"Lève un :ref:`évènement d'audit ` ``glob.glob/2`` avec les " +"arguments ``pathname``, ``recursive``, ``root_dir``, ``dir_fd``." #: library/glob.rst:71 msgid "" -"Using the \"``**``\" pattern in large directory trees may consume an inordinate " -"amount of time." +"Using the \"``**``\" pattern in large directory trees may consume an " +"inordinate amount of time." msgstr "" "Utiliser le motif \"``**``\" dans de grandes arborescences de dossier peut " "consommer une quantité de temps démesurée." @@ -148,44 +149,46 @@ msgstr "Paramètres *root_dir* et *dir_fd* ajoutés." #: library/glob.rst:83 msgid "" -"Return an :term:`iterator` which yields the same values as :func:`glob` without " -"actually storing them all simultaneously." +"Return an :term:`iterator` which yields the same values as :func:`glob` " +"without actually storing them all simultaneously." msgstr "" -"Renvoie un :term:`itérateur ` qui produit les mêmes valeurs que :func:" -"`glob`, sans toutes les charger en mémoire simultanément." +"Renvoie un :term:`itérateur ` qui produit les mêmes valeurs que :" +"func:`glob`, sans toutes les charger en mémoire simultanément." #: library/glob.rst:98 msgid "" -"Escape all special characters (``'?'``, ``'*'`` and ``'['``). This is useful if " -"you want to match an arbitrary literal string that may have special characters " -"in it. Special characters in drive/UNC sharepoints are not escaped, e.g. on " -"Windows ``escape('//?/c:/Quo vadis?.txt')`` returns ``'//?/c:/Quo vadis[?]." -"txt'``." +"Escape all special characters (``'?'``, ``'*'`` and ``'['``). This is useful " +"if you want to match an arbitrary literal string that may have special " +"characters in it. Special characters in drive/UNC sharepoints are not " +"escaped, e.g. on Windows ``escape('//?/c:/Quo vadis?.txt')`` returns ``'//?/" +"c:/Quo vadis[?].txt'``." msgstr "" "Échappe tous les caractères spéciaux (``'?'``, ``'*'`` et ``'['``). Cela est " "utile pour reconnaître une chaîne de caractère littérale arbitraire qui " -"contiendrait ce type de caractères. Les caractères spéciaux dans les disques et " -"répertoires partagés (chemins UNC) ne sont pas échappés, e.g. sous Windows " -"``escape('//?/c:/Quo vadis?.txt')`` renvoie ``'//?/c:/Quo vadis[?].txt'``." +"contiendrait ce type de caractères. Les caractères spéciaux dans les disques " +"et répertoires partagés (chemins UNC) ne sont pas échappés, e.g. sous " +"Windows ``escape('//?/c:/Quo vadis?.txt')`` renvoie ``'//?/c:/Quo vadis[?]." +"txt'``." #: library/glob.rst:107 msgid "" "For example, consider a directory containing the following files: :file:`1." "gif`, :file:`2.txt`, :file:`card.gif` and a subdirectory :file:`sub` which " -"contains only the file :file:`3.txt`. :func:`glob` will produce the following " -"results. Notice how any leading components of the path are preserved. ::" +"contains only the file :file:`3.txt`. :func:`glob` will produce the " +"following results. Notice how any leading components of the path are " +"preserved. ::" msgstr "" -"Par exemple, considérons un répertoire contenant les fichiers suivants : :file:" -"`1.gif`, :file:`2.txt`, :file:`card.gif` et un sous-répertoire :file:`sub` " -"contenant seulement le fichier :file:`3.txt`. :func:`glob` produit les " -"résultats suivants. Notons que les composantes principales des chemins sont " -"préservées. ::" +"Par exemple, considérons un répertoire contenant les fichiers suivants : :" +"file:`1.gif`, :file:`2.txt`, :file:`card.gif` et un sous-répertoire :file:" +"`sub` contenant seulement le fichier :file:`3.txt`. :func:`glob` produit " +"les résultats suivants. Notons que les composantes principales des chemins " +"sont préservées. ::" #: library/glob.rst:125 msgid "" "If the directory contains files starting with ``.`` they won't be matched by " -"default. For example, consider a directory containing :file:`card.gif` and :file:" -"`.card.gif`::" +"default. For example, consider a directory containing :file:`card.gif` and :" +"file:`.card.gif`::" msgstr "" "Si le répertoire contient des fichiers commençant par ``.``, ils ne sont pas " "reconnus par défaut. Par exemple, considérons un répertoire contenant :file:" @@ -197,4 +200,5 @@ msgstr "Module :mod:`fnmatch`" #: library/glob.rst:138 msgid "Shell-style filename (not path) expansion" -msgstr "Recherche de noms de fichiers de style shell (ne concerne pas les chemins)" +msgstr "" +"Recherche de noms de fichiers de style shell (ne concerne pas les chemins)"