Compare commits

...

10 Commits

Author SHA1 Message Date
Julien Palard 8ffe02262d
Fix: The paragraph in programming.po fail with a proper :: with:
programming.rst:1885:<translated>:3:Literal block expected; none found.
2023-05-25 11:16:05 +02:00
Melcore 84018bb842 Travail sur library/statistics.po (#147)
Co-authored-by: Jean Lapostolle <jean.lapostolle.ext@orange.com>
Reviewed-on: AFPy/python-docs-fr#147
Reviewed-by: Julien Palard <julien@palard.fr>
Co-authored-by: Melcore <lapostolle.jean@gmail.com>
Co-committed-by: Melcore <lapostolle.jean@gmail.com>
2023-05-24 14:49:29 +00:00
pilou 02c46bca4b update using/unix (#148)
Within using/unix:
* Remove an obsolete fuzzy entry already updated by 26c991fc20
* translate [63e127f33d4088e28a470a1db98623d46e59a46a](https://github.com/python/cpython/pull/94076): fix broken link
* translate [3ddf3972173bfee557af01680647dca9701bde54](https://github.com/python/cpython/pull/102727): envvar->option: {exec_,}prefix

Co-authored-by: Pierre-Louis Bonicoli <pierre-louis.bonicoli@ir5.eu>
Reviewed-on: AFPy/python-docs-fr#148
Reviewed-by: Julien Palard <julien@palard.fr>
Co-authored-by: pilou <pierre-louis.bonicoli@libregerbil.fr>
Co-committed-by: pilou <pierre-louis.bonicoli@libregerbil.fr>
2023-05-24 07:55:38 +00:00
Christophe Nanteuil 89c55fc592 Simple tool to ease resolving fuzzies (#140)
Display diff of commits introducing fuzzies (commit messages must contain 'merge') using git difftool program, after having filtered the po files [à la mode textconv](https://git.afpy.org/AFPy/python-docs-fr/src/branch/3.11/CONTRIBUTING.rst#configuration-de-git-rendre-plus-lisible-laffichage-des-modifications).

Co-authored-by: Christophe Nanteuil <christophe.nanteuil@gmail.com>
Reviewed-on: AFPy/python-docs-fr#140
Reviewed-by: Julien Palard <julien@palard.fr>
Co-authored-by: Christophe Nanteuil <christophenan@noreply.localhost>
Co-committed-by: Christophe Nanteuil <christophenan@noreply.localhost>
2023-05-23 19:53:36 +00:00
douuvid 8713216576 Fixer la fuzz faq/gui.po (#146)
Co-authored-by: Douuvid <silasiharis@gmail.com>
Reviewed-on: AFPy/python-docs-fr#146
Reviewed-by: Julien Palard <julien@palard.fr>
Co-authored-by: douuvid <silasiharis@gmail.com>
Co-committed-by: douuvid <silasiharis@gmail.com>
2023-05-23 19:49:27 +00:00
pilou 58cd92ed64 Check that hunspell is installed (#144)
The check doesn't verify the hunspell dictionary kind.

Co-authored-by: Pierre-Louis Bonicoli <pierre-louis.bonicoli@ir5.eu>
Reviewed-on: AFPy/python-docs-fr#144
Co-authored-by: pilou <pierre-louis.bonicoli@libregerbil.fr>
Co-committed-by: pilou <pierre-louis.bonicoli@libregerbil.fr>
2023-05-23 18:47:00 +00:00
Julien Palard f770a90e58
Bump poutils. 2023-05-23 19:54:34 +02:00
Christophe Nanteuil d8ce7c55bf Revue et poursuite de la traduction de library/decimal.po (#143)
Co-authored-by: Christophe Nanteuil <christophe.nanteuil@gmail.com>
Reviewed-on: AFPy/python-docs-fr#143
Reviewed-by: Julien Palard <julien@palard.fr>
Co-authored-by: Christophe Nanteuil <christophenan@noreply.localhost>
Co-committed-by: Christophe Nanteuil <christophenan@noreply.localhost>
2023-05-23 08:47:51 +00:00
Benjamin_Loison c47af9c54a Correct a typo in `library/json.po` (#141)
Co-authored-by: Benjamin Loison <benjamin.loison@orange.fr>
Reviewed-on: AFPy/python-docs-fr#141
Reviewed-by: Christophe Nanteuil <christophenan@noreply.localhost>
Co-authored-by: Benjamin_Loison <benjamin.loison@orange.fr>
Co-committed-by: Benjamin_Loison <benjamin.loison@orange.fr>
2023-05-17 09:48:51 +00:00
deronnax ea2647a58e tutorial/modules.po: 1 fuzzy (#139)
le commit provoquant la fuzziness est une simple correction, qu'on avait déjà corrigé downstream, évidemment

```
commit a166cb4131587bbab05bde491fc95eb65523b2c9
Author: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Date:   Tue Mar 14 17:11:56 2023 -0700

    gh-102703: Fix typo in modules tutorial documentation (GH-102707)

    **Before**
    This prevents directories with a common name, such as ``string``, unintentionally hiding ...
    **After**
    This prevents directories with a common name, such as ``string``, from unintentionally hiding ..
.
    (cherry picked from commit 0a539b5db312d126ff45dd4aa6a53d40a292c512)

    Co-authored-by: Robert Prater (B. Eng) <robcprater@gmail.com>

diff --git a/Doc/tutorial/modules.rst b/Doc/tutorial/modules.rst
index ad70d92994..4daafa49a3 100644
--- a/Doc/tutorial/modules.rst
+++ b/Doc/tutorial/modules.rst
@@ -438,7 +438,7 @@ When importing the package, Python searches through the directories on

 The :file:`__init__.py` files are required to make Python treat directories
 containing the file as packages.  This prevents directories with a common name,
-such as ``string``, unintentionally hiding valid modules that occur later
+such as ``string``, from unintentionally hiding valid modules that occur later
 on the module search path. In the simplest case, :file:`__init__.py` can just be
 an empty file, but it can also execute initialization code for the package or
 set the ``__all__`` variable, described later.
```

Co-authored-by: Mathieu Dupuy <deronnax@gmail.com>
Reviewed-on: AFPy/python-docs-fr#139
Reviewed-by: Christophe Nanteuil <christophenan@noreply.localhost>
Co-authored-by: deronnax <deronnax@noreply.localhost>
Co-committed-by: deronnax <deronnax@noreply.localhost>
2023-05-14 07:18:56 +00:00
10 changed files with 485 additions and 190 deletions

66
.scripts/fuzzy_diff Executable file
View File

@ -0,0 +1,66 @@
#!/bin/sh
_usage() {
echo "Usage: $0 [-n] PO_FILE"
echo "Ease the correction of fuzzies inserted by merge commits"
echo
echo "-n, --no-edit do not launch po editor"
exit
}
LAUNCH_EDIT=1
if [ $# -eq 2 ]; then
if [ "$1" -eq "-n" ] || [ "$1" -eq "--no-edit" ]; then
LAUNCH_EDIT=0
else
_usage
fi
shift
fi
if [ $# -ne 1 ]; then
_usage
fi
if [ ! -f "$1" ]; then
echo "$1: file not found"
_usage
fi
# Temp directory to filter files before display
TMP_DIR=$(mktemp -d /tmp/fuzzy_diff.XXXXXX || exit 1)
trap 'rm --force --recursive "${TMP_DIR}"' EXIT
PO_EDITOR=poedit
DIFFTOOL=$(which $(git config diff.tool))
if [ ! -x "$DIFFTOOL" ]; then
echo "git diff.tool seems not configured"
_usage
fi
PO_FILE=$1
# search for revs where fuzzy was added or suppressed
# and filter where commit message contains 'merge'
FUZZY_REVS=$(git log --oneline -S '#, fuzzy' ${PO_FILE} | \
grep -i 'merge' | \
awk '{ print $1 }')
if [ ${LAUNCH_EDIT} -eq 1 ]; then
${PO_EDITOR} "${PO_FILE}" 2>/dev/null &
fi
for sha in ${FUZZY_REVS} ; do
# filter files à la mode textconv
git show ${sha}:${PO_FILE} | grep -v -e '^#:' -e '^"PO' > ${TMP_DIR}/right.po
git show ${sha}^:${PO_FILE} | grep -v -e '^#:' -e '^"PO' > ${TMP_DIR}/left.po
"${DIFFTOOL}" ${TMP_DIR}/left.po ${TMP_DIR}/right.po
done
# clean up temp directory
rm --force --recursive "${TMP_DIR}"
trap - EXIT

View File

@ -110,6 +110,12 @@ venv/cpython/.git/HEAD:
.PHONY: ensure_test_prerequisites .PHONY: ensure_test_prerequisites
ensure_test_prerequisites: ensure_test_prerequisites:
@if ! (hunspell -v >/dev/null 2>&1); then \
echo "You're missing dependencies please install: hunspell and the fr-toutesvariantes dictionary."; \
echo "The dictionary is available here http://grammalecte.net:8080/dir?ci=tip&name=gc_lang/fr/oxt/Dictionnaires/dictionaries"; \
echo "and also included in the hunspell-fr-comprehensive Debian package."; \
exit 1; \
fi
@if ! (pospell --help >/dev/null 2>&1 && potodo --help >/dev/null 2>&1); then \ @if ! (pospell --help >/dev/null 2>&1 && potodo --help >/dev/null 2>&1); then \
echo "You're missing dependencies please install:"; \ echo "You're missing dependencies please install:"; \
echo ""; \ echo ""; \
@ -171,13 +177,13 @@ check-headers:
@echo Checking po headers... @echo Checking po headers...
@sh .scripts/check-headers.sh $(SRCS) @sh .scripts/check-headers.sh $(SRCS)
.PHONY: check-colons # .PHONY: check-colons
check-colons: # check-colons:
@echo Checking colons... # @echo Checking colons...
@python .scripts/check-colon.py --check $(SRCS) # @python .scripts/check-colon.py --check $(SRCS)
.PHONY: verifs .PHONY: verifs
verifs: spell line-length check-headers check-colons sphinx-lint verifs: spell line-length check-headers sphinx-lint
.PHONY: clean .PHONY: clean
clean: clean:

View File

@ -6,14 +6,14 @@ msgstr ""
"Project-Id-Version: Python 3\n" "Project-Id-Version: Python 3\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-01-15 22:33+0100\n" "POT-Creation-Date: 2023-01-15 22:33+0100\n"
"PO-Revision-Date: 2021-12-16 02:34+0100\n" "PO-Revision-Date: 2023-05-23 21:32+0200\n"
"Last-Translator: Jean Abou Samra <jean@abou-samra.fr>\n" "Last-Translator: Jean Abou Samra <jean@abou-samra.fr>\n"
"Language-Team: FRENCH <traductions@lists.afpy.org>\n" "Language-Team: FRENCH <traductions@lists.afpy.org>\n"
"Language: fr\n" "Language: fr\n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n" "Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 3.0\n" "X-Generator: Poedit 3.3.1\n"
#: faq/gui.rst:5 #: faq/gui.rst:5
msgid "Graphic User Interface FAQ" msgid "Graphic User Interface FAQ"
@ -93,7 +93,6 @@ msgstr ""
"d'environnement :envvar:`TCL_LIBRARY` et :envvar:`TK_LIBRARY`." "d'environnement :envvar:`TCL_LIBRARY` et :envvar:`TK_LIBRARY`."
#: faq/gui.rst:49 #: faq/gui.rst:49
#, fuzzy
msgid "" msgid ""
"To get truly stand-alone applications, the Tcl scripts that form the library " "To get truly stand-alone applications, the Tcl scripts that form the library "
"have to be integrated into the application as well. One tool supporting that " "have to be integrated into the application as well. One tool supporting that "
@ -103,7 +102,7 @@ msgstr ""
"Pour obtenir des applications vraiment autonomes, les scripts *Tcl* qui " "Pour obtenir des applications vraiment autonomes, les scripts *Tcl* qui "
"forment la bibliothèque doivent également être intégrés dans l'application. " "forment la bibliothèque doivent également être intégrés dans l'application. "
"Un outil supportant cela est *SAM* (modules autonomes), qui fait partie de " "Un outil supportant cela est *SAM* (modules autonomes), qui fait partie de "
"la distribution *Tix* (http://tix.sourceforge.net/)." "la distribution *Tix* (https://tix.sourceforge.net/)."
#: faq/gui.rst:54 #: faq/gui.rst:54
msgid "" msgid ""

View File

@ -6,7 +6,7 @@ msgstr ""
"Project-Id-Version: Python 3\n" "Project-Id-Version: Python 3\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-04-14 13:19+0200\n" "POT-Creation-Date: 2023-04-14 13:19+0200\n"
"PO-Revision-Date: 2022-11-20 22:12+0100\n" "PO-Revision-Date: 2023-05-25 11:09+0200\n"
"Last-Translator: Jean Abou Samra <jean@abou-samra.fr>\n" "Last-Translator: Jean Abou Samra <jean@abou-samra.fr>\n"
"Language-Team: FRENCH <traductions@lists.afpy.org>\n" "Language-Team: FRENCH <traductions@lists.afpy.org>\n"
"Language: fr\n" "Language: fr\n"
@ -2868,7 +2868,7 @@ msgstr ""
"peu de subtilité lorsque ``None`` est une valeur acceptable pour le " "peu de subtilité lorsque ``None`` est une valeur acceptable pour le "
"paramètre. Dans ces cas, il faut créer un objet singleton dit " "paramètre. Dans ces cas, il faut créer un objet singleton dit "
 sentinelle », distinct de toute valeur acceptable. Voici par exemple "  sentinelle », distinct de toute valeur acceptable. Voici par exemple "
"comment écrire une méthode qui émule :meth:`dict.pop` ::" "comment écrire une méthode qui émule :meth:`dict.pop` :"
#: faq/programming.rst:1901 #: faq/programming.rst:1901
msgid "" msgid ""

File diff suppressed because it is too large Load Diff

View File

@ -375,7 +375,7 @@ msgid ""
"strings: ``'-Infinity'``, ``'Infinity'``, ``'NaN'``. This can be used to " "strings: ``'-Infinity'``, ``'Infinity'``, ``'NaN'``. This can be used to "
"raise an exception if invalid JSON numbers are encountered." "raise an exception if invalid JSON numbers are encountered."
msgstr "" msgstr ""
"Si *parse_constant* est définie, elle est quand l'une des chaînes de " "Si *parse_constant* est définie, elle est appelée quand l'une des chaînes de "
"caractères suivantes est rencontrée : ``'-Infinity'``, ``'Infinity'`` ou " "caractères suivantes est rencontrée : ``'-Infinity'``, ``'Infinity'`` ou "
"``'NaN'``. Cela peut servir à lever une exception si des nombres JSON " "``'NaN'``. Cela peut servir à lever une exception si des nombres JSON "
"invalides sont rencontrés." "invalides sont rencontrés."

View File

@ -168,7 +168,6 @@ msgid ":func:`multimode`"
msgstr ":func:`multimode`" msgstr ":func:`multimode`"
#: library/statistics.rst:83 #: library/statistics.rst:83
#, fuzzy
msgid "List of modes (most common values) of discrete or nominal data." msgid "List of modes (most common values) of discrete or nominal data."
msgstr "" msgstr ""
"Liste des modes (les valeurs les plus représentées) de données discrètes ou " "Liste des modes (les valeurs les plus représentées) de données discrètes ou "
@ -236,23 +235,20 @@ msgid ""
msgstr "" msgstr ""
#: library/statistics.rst:106 #: library/statistics.rst:106
#, fuzzy
msgid ":func:`covariance`" msgid ":func:`covariance`"
msgstr ":func:`variance`" msgstr ":func:`covariance`"
#: library/statistics.rst:106 #: library/statistics.rst:106
#, fuzzy
msgid "Sample covariance for two variables." msgid "Sample covariance for two variables."
msgstr "Variance d'un échantillon." msgstr "Covariance d'un échantillon pour deux variables."
#: library/statistics.rst:107 #: library/statistics.rst:107
#, fuzzy
msgid ":func:`correlation`" msgid ":func:`correlation`"
msgstr ":func:`mean`" msgstr ":func:`correlation`"
#: library/statistics.rst:107 #: library/statistics.rst:107
msgid "Pearson's correlation coefficient for two variables." msgid "Pearson's correlation coefficient for two variables."
msgstr "" msgstr "Coefficient de corrélation de Bravais-Pearson pour deux variables."
#: library/statistics.rst:108 #: library/statistics.rst:108
msgid ":func:`linear_regression`" msgid ":func:`linear_regression`"
@ -305,18 +301,18 @@ msgid "Some examples of use:"
msgstr "Exemples d'utilisation :" msgstr "Exemples d'utilisation :"
#: library/statistics.rst:148 #: library/statistics.rst:148
#, fuzzy
msgid "" msgid ""
"The mean is strongly affected by `outliers <https://en.wikipedia.org/wiki/" "The mean is strongly affected by `outliers <https://en.wikipedia.org/wiki/"
"Outlier>`_ and is not necessarily a typical example of the data points. For " "Outlier>`_ and is not necessarily a typical example of the data points. For "
"a more robust, although less efficient, measure of `central tendency " "a more robust, although less efficient, measure of `central tendency "
"<https://en.wikipedia.org/wiki/Central_tendency>`_, see :func:`median`." "<https://en.wikipedia.org/wiki/Central_tendency>`_, see :func:`median`."
msgstr "" msgstr ""
"La moyenne arithmétique est fortement impactée par la présence de valeurs " "La moyenne arithmétique est fortement impactée par la présence de `valeurs "
"aberrantes et n'est pas un estimateur robuste de la tendance centrale : la " "aberrantes <https://fr.wikipedia.org/wiki/Donn%C3%A9e_aberrante>`_ et n'est "
"moyenne n'est pas nécessairement un exemple représentatif de l'échantillon. " "pas un estimateur robuste de la tendance centrale : la moyenne n'est pas "
"Voir :func:`median` et :func:`mode` pour des mesures plus robustes de la " "nécessairement un exemple représentatif de l'échantillon. Voir "
"tendance centrale." ":func:`median` pour des mesures plus robustes de la `tendance centrale "
"<https://fr.wikipedia.org/wiki/Indicateur_de_tendance_centrale>`_."
#: library/statistics.rst:154 #: library/statistics.rst:154
msgid "" msgid ""

View File

@ -1 +1 @@
poutils==0.15.1 poutils>=0.15.2

View File

@ -586,7 +586,6 @@ msgstr ""
"path`` un sous-dossier du nom du paquet." "path`` un sous-dossier du nom du paquet."
#: tutorial/modules.rst:439 #: tutorial/modules.rst:439
#, fuzzy
msgid "" msgid ""
"The :file:`__init__.py` files are required to make Python treat directories " "The :file:`__init__.py` files are required to make Python treat directories "
"containing the file as packages. This prevents directories with a common " "containing the file as packages. This prevents directories with a common "

View File

@ -6,7 +6,7 @@ msgstr ""
"Project-Id-Version: Python 3\n" "Project-Id-Version: Python 3\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-04-14 13:19+0200\n" "POT-Creation-Date: 2023-04-14 13:19+0200\n"
"PO-Revision-Date: 2021-10-22 01:46+0200\n" "PO-Revision-Date: 2023-05-25 11:00+0200\n"
"Last-Translator: Jean Abou Samra <jean@abou-samra.fr>\n" "Last-Translator: Jean Abou Samra <jean@abou-samra.fr>\n"
"Language-Team: FRENCH <traductions@lists.afpy.org>\n" "Language-Team: FRENCH <traductions@lists.afpy.org>\n"
"Language: fr\n" "Language: fr\n"
@ -123,7 +123,6 @@ msgid "Building Python"
msgstr "Compiler Python" msgstr "Compiler Python"
#: using/unix.rst:69 #: using/unix.rst:69
#, fuzzy
msgid "" msgid ""
"If you want to compile CPython yourself, first thing you should do is get " "If you want to compile CPython yourself, first thing you should do is get "
"the `source <https://www.python.org/downloads/source/>`_. You can download " "the `source <https://www.python.org/downloads/source/>`_. You can download "
@ -134,8 +133,8 @@ msgstr ""
"Si vous voulez compiler CPython vous-même, la première chose à faire est de " "Si vous voulez compiler CPython vous-même, la première chose à faire est de "
"récupérer le `code source <https://www.python.org/downloads/source/>`_. Vous " "récupérer le `code source <https://www.python.org/downloads/source/>`_. Vous "
"pouvez télécharger la dernière version ou faire un `clone <https://devguide." "pouvez télécharger la dernière version ou faire un `clone <https://devguide."
"python.org/setup/#getting-the-source-code>`_. (Si vous voulez contribuer à " "python.org/setup/#get-the-source-code>`_. (Si vous voulez contribuer à des "
"des correctifs, il vous faut un clone.)" "correctifs, il vous faut un clone.)"
#: using/unix.rst:75 #: using/unix.rst:75
msgid "The build process consists of the usual commands::" msgid "The build process consists of the usual commands::"
@ -166,7 +165,6 @@ msgid "Python-related paths and files"
msgstr "Fichiers et chemins liés à Python" msgstr "Fichiers et chemins liés à Python"
#: using/unix.rst:95 #: using/unix.rst:95
#, fuzzy
msgid "" msgid ""
"These are subject to difference depending on local installation " "These are subject to difference depending on local installation "
"conventions; :option:`prefix <--prefix>` and :option:`exec_prefix <--exec-" "conventions; :option:`prefix <--prefix>` and :option:`exec_prefix <--exec-"
@ -174,9 +172,9 @@ msgid ""
"software; they may be the same." "software; they may be the same."
msgstr "" msgstr ""
"Ceux-ci sont sujets à des différences en fonction des conventions locales " "Ceux-ci sont sujets à des différences en fonction des conventions locales "
"d'installation ; :envvar:`prefix` (``${prefix}``) et :envvar:`exec_prefix` " "d'installation ; :option:`prefix <--prefix>` et :option:`exec_prefix <--exec-"
"(``${exec_prefix}``) sont dépendants de linstallation et doivent être " "prefix>` sont dépendants de linstallation et doivent être interprétés comme "
"interprétés comme pour des logiciels GNU ; ils peuvent être égaux." "pour des logiciels GNU ; ils peuvent être égaux."
#: using/unix.rst:100 #: using/unix.rst:100
msgid "" msgid ""
@ -298,7 +296,6 @@ msgstr ""
"``install`` réécrirait le fichier ``openssl.cnf``." "``install`` réécrirait le fichier ``openssl.cnf``."
#: using/unix.rst:172 #: using/unix.rst:172
#, fuzzy
msgid "" msgid ""
"Build Python with custom OpenSSL (see the configure ``--with-openssl`` and " "Build Python with custom OpenSSL (see the configure ``--with-openssl`` and "
"``--with-openssl-rpath`` options)" "``--with-openssl-rpath`` options)"