- Notifications
You must be signed in to change notification settings - Fork266
771 cporting po#798
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Merged
Uh oh!
There was an error while loading.Please reload this page.
Merged
771 cporting po#798
Changes fromall commits
Commits
Show all changes
47 commits Select commitHold shift + click to select a range
b7c9aca
Merge pull request #1 from python/3.7
kw-andyf5dfa76
Merge pull request #2 from python/3.7
kw-andyc23dec6
Merge pull request #3 from python/3.7
kw-andy4516a74
translating the cporting.po
ifs-andykwok200dd7e
first draft of the translation in French of the cporting.po for the h…
kw-andy83e1f6d
Update howto/cporting.po
kw-andy101f548
Update howto/cporting.po
kw-andy715e557
Update howto/cporting.po
kw-andy098193b
Update howto/cporting.po
kw-andy9804603
Update howto/cporting.po
kw-andyd45c11b
Update howto/cporting.po
kw-andy0cf154e
Update howto/cporting.po
kw-andy403dad7
Update howto/cporting.po
kw-andy2a681d3
Update howto/cporting.po
kw-andy7602779
Update howto/cporting.po
kw-andy0c9bc73
amending the howto/cporting.po
kw-andy4c14098
amending the howto/cporting.po - v3
kw-andydf2a559
changing the last issue - 310519
ifs-andykwokd4531ef
changing the last issue v2 - 310519
ifs-andykwok975c16d
changing the last issue v3 - 310519
ifs-andykwokfd0fe92
Update howto/cporting.po
kw-andy34e9f77
Update howto/cporting.po
kw-andy4a895ee
Update howto/cporting.po
kw-andy86242ab
Update howto/cporting.po
kw-andy551105f
Update howto/cporting.po
kw-andyb6ec51c
Update howto/cporting.po
kw-andy77f3705
Update howto/cporting.po
kw-andy4c9cfc4
Update howto/cporting.po
kw-andya66d661
Update howto/cporting.po
kw-andy4de02e3
Update howto/cporting.po
kw-andyc95971e
Update howto/cporting.po
kw-andy2911bed
Update howto/cporting.po
kw-andya4525f3
Update howto/cporting.po
kw-andy61fe582
Update howto/cporting.po
kw-andy3cc70f7
change - v4
ifs-andykwok19972a1
Update howto/cporting.po
kw-andy30f6d12
Update howto/cporting.po
kw-andya690a91
Update howto/cporting.po
kw-andyb8734c3
Update howto/cporting.po
kw-andy89f1788
Update howto/cporting.po
kw-andy6977d9a
Update howto/cporting.po
kw-andye810ec4
Apply suggestions from code review
kw-andy7f80de4
howto/cporting.po
ifs-andykwok01d53d8
howto/cporting.po
ifs-andykwok373bafc
howto/cporting.po
ifs-andykwok5490bad
change 20/06/19
ifs-andykwok9c32e30
amendment on translation section de code
ifs-andykwokFile filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
100 changes: 88 additions & 12 deletionshowto/cporting.po
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,22 @@ | ||
# For licence information, see README file. | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Python 3.6\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2018-06-10 11:27+0200\n" | ||
"PO-Revision-Date: 2019-07-18 20:06+0200\n" | ||
"Language-Team: FRENCH <traductions@lists.afpy.org>\n" | ||
"Language: fr\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: 8bit\n" | ||
"Last-Translator: Andy Kwok <andy.kwok.work@gmail.com>\n" | ||
"X-Generator: Poedit 2.2.3\n" | ||
#: ../Doc/howto/cporting.rst:7 | ||
msgid "Porting Extension Modules to Python 3" | ||
msgstr "Portage des modules d'extension vers Python 3" | ||
#: ../Doc/howto/cporting.rst:0 | ||
msgid "author" | ||
@@ -38,6 +38,12 @@ msgid "" | ||
"obvious on the C level. This document endeavors to document " | ||
"incompatibilities and how they can be worked around." | ||
msgstr "" | ||
"Changer l'API C n'était pas l'un des objectifs de Python 3, cependant les " | ||
"nombreux changements de niveau Python ont rendu impossible de garder l'API " | ||
"de Python 2 comme elle était. Certains changements tels que l'unification " | ||
"de :func:`int` et :func:`long` sont plus apparents au niveau C. Ce document " | ||
"s'efforce de documenter les incompatibilités et la façon dont elles peuvent " | ||
"être contournées." | ||
#: ../Doc/howto/cporting.rst:23 | ||
msgid "Conditional compilation" | ||
@@ -48,26 +54,33 @@ msgid "" | ||
"The easiest way to compile only some code for Python 3 is to check if :c:" | ||
"macro:`PY_MAJOR_VERSION` is greater than or equal to 3. ::" | ||
msgstr "" | ||
"La façon la plus simple de compiler seulement une section de code pour " | ||
"Python 3 est de vérifier si :c:macro:`PY_MAJOR_VERSION` est supérieur ou " | ||
"égal à 3. ::" | ||
#: ../Doc/howto/cporting.rst:32 | ||
msgid "" | ||
"API functions that are not present can be aliased to their equivalents " | ||
"within conditional blocks." | ||
msgstr "" | ||
"Les fonctions manquantes dans l'API peuvent être remplacées par des alias à " | ||
"leurs équivalents dans des blocs conditionnels." | ||
#: ../Doc/howto/cporting.rst:37 | ||
msgid "Changes to Object APIs" | ||
msgstr "Modifications apportées aux API des objets" | ||
#: ../Doc/howto/cporting.rst:39 | ||
msgid "" | ||
"Python 3 merged together some types with similar functions while cleanly " | ||
"separating others." | ||
msgstr "" | ||
"Python 3 a fusionné certains types avec des fonctions identiques tout en " | ||
"séparant de façon propre, d'autres." | ||
#: ../Doc/howto/cporting.rst:44 | ||
msgid "str/unicode Unification" | ||
msgstr "Unification de *str* et *unicode*" | ||
#: ../Doc/howto/cporting.rst:46 | ||
msgid "" | ||
@@ -83,10 +96,23 @@ msgid "" | ||
"shows best practices with regards to :c:type:`PyUnicode`, :c:type:" | ||
"`PyString`, and :c:type:`PyBytes`. ::" | ||
msgstr "" | ||
"Le type :func:`str` de Python 3 est l'équivalent de :func:`unicode` sous " | ||
"Python 2 ; Les fonctions C sont appelées ``PyUnicode_*`` pour les deux " | ||
"versions. L'ancien type de chaîne de caractères de 8 bits est devenue :func:" | ||
"`bytes`, avec des fonctions C nommées ``PyBytes_*``. Python 2.6 et toutes " | ||
"les versions supérieures fournissent un en-tête de compatibilité, :file:" | ||
"`bytesobject.h`, faisant correspondre les noms ``PyBytes`` aux ``PyString``. " | ||
"Pour une meilleure compatibilité avec Python 3, :c:type:`PyUnicode` doit " | ||
"être utilisé seulement pour des données textuelles et :c:type:`PyBytes` pour " | ||
"des données binaires. Il est important de noter que :c:type:`PyBytes` et :c:" | ||
"type:`PyUnicode` en Python 3 ne sont pas remplaçables contrairement à :c:" | ||
"type:`PyString` et :c:type:`PyUnicode` dans Python 2. L'exemple suivant " | ||
"montre l'utilisation optimale de :c:type:`PyUnicode`, :c:type:`PyString`, " | ||
"et :c:type:`PyBytes`. ::" | ||
#: ../Doc/howto/cporting.rst:95 | ||
msgid "long/int Unification" | ||
msgstr "Unification de *long* et *int*" | ||
#: ../Doc/howto/cporting.rst:97 | ||
msgid "" | ||
@@ -95,10 +121,14 @@ msgid "" | ||
"Python 2 was removed. In the C-API, ``PyInt_*`` functions are replaced by " | ||
"their ``PyLong_*`` equivalents." | ||
msgstr "" | ||
"Python 3 n'a qu'un type d'entier, :func:`int`. Mais il correspond au type :" | ||
"func:`long` de Python 2 — le type :func:`int` utilisé dans Python 2 a été " | ||
"supprimé. Dans l'API C, les fonctions ``PyInt_*`` sont remplacées par leurs " | ||
"équivalents ``PyLong_*``." | ||
#: ../Doc/howto/cporting.rst:104 | ||
msgid "Module initialization and state" | ||
msgstr "Initialisation et état du module" | ||
#: ../Doc/howto/cporting.rst:106 | ||
msgid "" | ||
@@ -108,10 +138,16 @@ msgid "" | ||
"in both Python 2 and Python 3 is tricky. The following simple example " | ||
"demonstrates how. ::" | ||
msgstr "" | ||
"Python 3 a remanié son système d'initialisation des modules d'extension " | ||
"(Voir :pep:`3121`.). Au lieu de stocker les états de module dans les " | ||
"variables globales, les états doivent être stockés dans une structure " | ||
"spécifique à l'interpréteur. Créer des modules qui ont un fonctionnement " | ||
"correct en Python 2 et Python 3 est délicat. L'exemple suivant montre " | ||
"comment. ::" | ||
#: ../Doc/howto/cporting.rst:197 | ||
msgid "CObject replaced with Capsule" | ||
msgstr "CObject remplacé par Capsule" | ||
#: ../Doc/howto/cporting.rst:199 | ||
msgid "" | ||
@@ -122,6 +158,13 @@ msgid "" | ||
"APIs relied on undefined behavior in C. (For further reading on the " | ||
"rationale behind Capsules, please see :issue:`5630`.)" | ||
msgstr "" | ||
"L'objet :c:type:`Capsule` a été introduit dans Python 3.1 et 2.7 pour " | ||
"remplacer :c:type:`CObject`. Les objets C étaient utiles, mais l'API :c:type:" | ||
"`CObject` posait des soucis : elle ne permettait pas la distinction entre " | ||
"les objets C valides, ce qui permettait aux objets C assortis incorrectement " | ||
kw-andy marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
"de planter l'interpréteur, et certaines des API s'appuyaient sur un " | ||
"comportement indéfini en C. (Pour plus de détails sur la logique de " | ||
"Capsules, veuillez consulter :issue:`5630`)." | ||
#: ../Doc/howto/cporting.rst:206 | ||
msgid "" | ||
@@ -133,6 +176,14 @@ msgid "" | ||
"support both CObjects and Capsules. (Note that Python 3.0 is no longer " | ||
"supported, and it is not recommended for production use.)" | ||
msgstr "" | ||
"Si vous utilisez actuellement CObjects et que vous voulez migrer vers la " | ||
"version 3.1 ou plus récente, vous devrez passer à Capsules. :c:type:" | ||
"`CObject` est déprécié dans 3.1 et 2.7 et est supprimé dans Python 3.2. Si " | ||
"vous ne gérez que les versions 2.7, ou 3.1 et supérieures, vous pouvez " | ||
"simplement passer à :c:type:`Capsule`. Si vous avez besoin de gérer Python " | ||
"3.0, ou des versions de Python antérieures à 2.7, vous devez gérer CObjects " | ||
"et Capsules. (Notez que Python 3.0 n'est plus supporté, et qu'il n'est pas " | ||
"recommandé pour une utilisation en production)." | ||
#: ../Doc/howto/cporting.rst:216 | ||
msgid "" | ||
@@ -142,6 +193,11 @@ msgid "" | ||
"automatically use Capsules in versions of Python with Capsules, and switch " | ||
"to CObjects when Capsules are unavailable." | ||
msgstr "" | ||
"L'exemple suivant d'en-tête de fichier :file:`capsulethunk.h` peut résoudre " | ||
"le problème. Il suffit d'écrire votre code dans l'API :c:type:`Capsule` et " | ||
"d'inclure ce fichier d'en-tête après :file:`Python.h`. Votre code utilisera " | ||
"automatiquement Capsules dans les versions de Python avec Capsules, et " | ||
"passera à CObjects lorsque les Capsules ne sont pas disponibles." | ||
#: ../Doc/howto/cporting.rst:223 | ||
msgid "" | ||
@@ -150,21 +206,29 @@ msgid "" | ||
"the simulated :c:type:`Capsule` objects created by :file:`capsulethunk.h` " | ||
"behave slightly differently from real Capsules. Specifically:" | ||
msgstr "" | ||
":file:`capsulethunk.h` reproduit le fonctionnement de Capsules en utilisant " | ||
"CObjects. Cependant, :c:type:`CObject` ne permet pas de stocker le \"nom\" " | ||
"de la capsule. Les objets simulés :c:type:`Capsule` créés par :file:" | ||
"`capsulethunk.h` se comportent différemment, bien que légèrement, des " | ||
"véritables Capsules. Ainsi :" | ||
#: ../Doc/howto/cporting.rst:228 | ||
msgid "The name parameter passed in to :c:func:`PyCapsule_New` is ignored." | ||
msgstr "Le paramètre *name* passé à :c:func:`PyCapsule_New` est ignoré." | ||
#: ../Doc/howto/cporting.rst:230 | ||
msgid "" | ||
"The name parameter passed in to :c:func:`PyCapsule_IsValid` and :c:func:" | ||
"`PyCapsule_GetPointer` is ignored, and no error checking of the name is " | ||
"performed." | ||
msgstr "" | ||
"Le paramètre *name* passé à :c:func:`PyCapsule_IsValid` et :c:func:" | ||
"`PyCapsule_GetPointer` est ignoré et il n'y a pas de vérification d'erreur " | ||
"du nom." | ||
#: ../Doc/howto/cporting.rst:234 | ||
msgid ":c:func:`PyCapsule_GetName` always returns NULL." | ||
msgstr ":c:func:`PyCapsule_GetName` renvoie toujours un NULL." | ||
#: ../Doc/howto/cporting.rst:236 | ||
msgid "" | ||
@@ -173,21 +237,33 @@ msgid "" | ||
"`PyCapsule_SetName` was deemed preferable to silent failure here. If this " | ||
"is inconvenient, feel free to modify your local copy as you see fit.)" | ||
msgstr "" | ||
":c:func:`PyCapsule_SetName` lève toujours une exception et renvoie un échec. " | ||
"Note : Puisqu'il n'y a aucun moyen de stocker un nom dans un CObject, " | ||
"l'échec verbeux de :c:func:`PyCapsule_SetName` a été jugé préférable à un " | ||
"échec non-verbeux dans ce cas. Si cela ne vous convenait pas, vous pouvez " | ||
"modifier votre copie locale selon vos besoins." | ||
#: ../Doc/howto/cporting.rst:243 | ||
msgid "" | ||
"You can find :file:`capsulethunk.h` in the Python source distribution as :" | ||
"source:`Doc/includes/capsulethunk.h`. We also include it here for your " | ||
"convenience:" | ||
msgstr "" | ||
"Vous pouvez trouver :file:`capsulethunk.h` dans la distribution source de " | ||
"Python comme :source:`Doc/includes/capsulethunk.h`. Nous l'incluons ici pour " | ||
"votre confort :" | ||
#: ../Doc/howto/cporting.rst:252 | ||
msgid "Other options" | ||
msgstr "Autres options" | ||
#: ../Doc/howto/cporting.rst:254 | ||
msgid "" | ||
"If you are writing a new extension module, you might consider `Cython " | ||
"<http://cython.org/>`_. It translates a Python-like language to C. The " | ||
"extension modules it creates are compatible with Python 3 and Python 2." | ||
msgstr "" | ||
"Si vous écrivez un nouveau module d'extension, vous pouvez envisager " | ||
"d'utiliser `Cython <http://cython.org/>`_. Il traduit un langage de type " | ||
"Python en C. Les modules d'extension qu'il crée sont compatibles avec Python " | ||
"3 et Python 2." |
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.