Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 941a73d

Browse files
committed
Have make verifs pass.
1 parent 319b063 commit 941a73d

30 files changed

+122
-98
lines changed

.scripts/check-headers.sh

+21-3
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,31 @@ do
1111
done
1212
grep -L '^"Project-Id-Version: Python 3\\n"$' $* | while read -r file
1313
do
14-
echo "Please update the 'Project-Id-Version' header in $file"
14+
cat <<EOF
15+
16+
Please update the 'Project-Id-Version' header in $file using:
17+
18+
sed -i 's/^"Project-Id-Version:.*"$/"Project-Id-Version: Python 3\\\\n"/' $file
19+
20+
EOF
21+
22+
1523
done
1624
grep -L '^"Language: fr\\n"$' $* | while read -r file
1725
do
18-
echo "Please update the 'Language' header in $file"
26+
cat <<EOF
27+
Please update the 'Language' header in $file using:
28+
29+
sed -i 's/^.Language-Team.*/\\0\\n"Language: fr\\\\n"/' $file
30+
31+
EOF
1932
done
2033
grep -L '^"Language-Team: FRENCH <[email protected]>\\n"' $* | while read -r file
2134
do
22-
echo "Please update the 'Language-Team' header in $file"
35+
cat <<EOF
36+
Please update the 'Language-Team' header in $file using:
37+
38+
sed -i 's/"Language-Team: LANGUAGE <[email protected]>\\\\n"/"Language-Team: FRENCH <[email protected]>\\\\n"/' $file
39+
40+
EOF
2341
done

.scripts/line-length.py

+2
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ def clean(line):
2626
for line in fileinput.input(encoding="utf-8"):
2727
line = clean(line)
2828
limit = SOFT_LIMIT if line.count(" ") > 1 else HARD_LIMIT
29+
if len(set(line)) <= 6:
30+
continue # msgcat does not wraps the long line of dots in howto/perf_profiling.rst
2931
if len(line) > limit:
3032
print(
3133
f"{fileinput.filename()}:{fileinput.filelineno()} line too long "

Makefile

+1
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ check-headers:
184184

185185
.PHONY: syntax
186186
syntax:
187+
@echo Checking po sytax...
187188
@msgcat *.po */*.po > /dev/null
188189

189190
.PHONY: verifs

c-api/hash.po

+5-5
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
# This file is distributed under the same license as the Python package.
44
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
55
#
6-
#, fuzzy
76
msgid ""
87
msgstr ""
9-
"Project-Id-Version: Python 3.12\n"
10-
"Report-Msgid-Bugs-To: \n"
8+
"Project-Id-Version: Python 3\n"
9+
"Report-Msgid-Bugs-To:\n"
1110
"POT-Creation-Date: 2024-10-29 21:40+0100\n"
12-
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
11+
"PO-Revision-Date: 2024-10-29 22:25+0100\n"
1312
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14-
"Language-Team: LANGUAGE <[email protected]>\n"
13+
"Language-Team: FRENCH <[email protected]>\n"
14+
"Language: fr\n"
1515
"MIME-Version: 1.0\n"
1616
"Content-Type: text/plain; charset=UTF-8\n"
1717
"Content-Transfer-Encoding: 8bit\n"

c-api/perfmaps.po

+4-4
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
# This file is distributed under the same license as the Python package.
44
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
55
#
6-
#, fuzzy
76
msgid ""
87
msgstr ""
9-
"Project-Id-Version: Python 3.12\n"
8+
"Project-Id-Version: Python 3\n"
109
"Report-Msgid-Bugs-To: \n"
1110
"POT-Creation-Date: 2024-10-29 21:40+0100\n"
12-
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
11+
"PO-Revision-Date: 2024-10-29 22:25+0100\n"
1312
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14-
"Language-Team: LANGUAGE <[email protected]>\n"
13+
"Language-Team: FRENCH <[email protected]>\n"
14+
"Language: fr\n"
1515
"MIME-Version: 1.0\n"
1616
"Content-Type: text/plain; charset=UTF-8\n"
1717
"Content-Transfer-Encoding: 8bit\n"

deprecations/c-api-pending-removal-in-3.14.po

+3-2
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@
66
#, fuzzy
77
msgid ""
88
msgstr ""
9-
"Project-Id-Version: Python 3.12\n"
9+
"Project-Id-Version: Python 3\n"
1010
"Report-Msgid-Bugs-To: \n"
1111
"POT-Creation-Date: 2024-10-29 21:40+0100\n"
1212
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1313
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14-
"Language-Team: LANGUAGE <[email protected]>\n"
14+
"Language-Team: FRENCH <[email protected]>\n"
15+
"Language: fr\n"
1516
"MIME-Version: 1.0\n"
1617
"Content-Type: text/plain; charset=UTF-8\n"
1718
"Content-Transfer-Encoding: 8bit\n"

deprecations/c-api-pending-removal-in-3.15.po

+3-2
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@
66
#, fuzzy
77
msgid ""
88
msgstr ""
9-
"Project-Id-Version: Python 3.12\n"
9+
"Project-Id-Version: Python 3\n"
1010
"Report-Msgid-Bugs-To: \n"
1111
"POT-Creation-Date: 2024-10-29 21:40+0100\n"
1212
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1313
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14-
"Language-Team: LANGUAGE <[email protected]>\n"
14+
"Language-Team: FRENCH <[email protected]>\n"
15+
"Language: fr\n"
1516
"MIME-Version: 1.0\n"
1617
"Content-Type: text/plain; charset=UTF-8\n"
1718
"Content-Transfer-Encoding: 8bit\n"

deprecations/c-api-pending-removal-in-future.po

+3-2
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@
66
#, fuzzy
77
msgid ""
88
msgstr ""
9-
"Project-Id-Version: Python 3.12\n"
9+
"Project-Id-Version: Python 3\n"
1010
"Report-Msgid-Bugs-To: \n"
1111
"POT-Creation-Date: 2024-10-29 21:40+0100\n"
1212
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1313
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14-
"Language-Team: LANGUAGE <[email protected]>\n"
14+
"Language-Team: FRENCH <[email protected]>\n"
15+
"Language: fr\n"
1516
"MIME-Version: 1.0\n"
1617
"Content-Type: text/plain; charset=UTF-8\n"
1718
"Content-Transfer-Encoding: 8bit\n"

deprecations/index.po

+3-2
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@
66
#, fuzzy
77
msgid ""
88
msgstr ""
9-
"Project-Id-Version: Python 3.12\n"
9+
"Project-Id-Version: Python 3\n"
1010
"Report-Msgid-Bugs-To: \n"
1111
"POT-Creation-Date: 2024-10-29 21:40+0100\n"
1212
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1313
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14-
"Language-Team: LANGUAGE <[email protected]>\n"
14+
"Language-Team: FRENCH <[email protected]>\n"
15+
"Language: fr\n"
1516
"MIME-Version: 1.0\n"
1617
"Content-Type: text/plain; charset=UTF-8\n"
1718
"Content-Transfer-Encoding: 8bit\n"

deprecations/pending-removal-in-3.13.po

+3-2
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@
66
#, fuzzy
77
msgid ""
88
msgstr ""
9-
"Project-Id-Version: Python 3.12\n"
9+
"Project-Id-Version: Python 3\n"
1010
"Report-Msgid-Bugs-To: \n"
1111
"POT-Creation-Date: 2024-10-29 21:40+0100\n"
1212
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1313
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14-
"Language-Team: LANGUAGE <[email protected]>\n"
14+
"Language-Team: FRENCH <[email protected]>\n"
15+
"Language: fr\n"
1516
"MIME-Version: 1.0\n"
1617
"Content-Type: text/plain; charset=UTF-8\n"
1718
"Content-Transfer-Encoding: 8bit\n"

deprecations/pending-removal-in-3.14.po

+3-2
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@
66
#, fuzzy
77
msgid ""
88
msgstr ""
9-
"Project-Id-Version: Python 3.12\n"
9+
"Project-Id-Version: Python 3\n"
1010
"Report-Msgid-Bugs-To: \n"
1111
"POT-Creation-Date: 2024-10-29 21:40+0100\n"
1212
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1313
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14-
"Language-Team: LANGUAGE <[email protected]>\n"
14+
"Language-Team: FRENCH <[email protected]>\n"
15+
"Language: fr\n"
1516
"MIME-Version: 1.0\n"
1617
"Content-Type: text/plain; charset=UTF-8\n"
1718
"Content-Transfer-Encoding: 8bit\n"

deprecations/pending-removal-in-3.15.po

+3-2
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@
66
#, fuzzy
77
msgid ""
88
msgstr ""
9-
"Project-Id-Version: Python 3.12\n"
9+
"Project-Id-Version: Python 3\n"
1010
"Report-Msgid-Bugs-To: \n"
1111
"POT-Creation-Date: 2024-10-29 21:40+0100\n"
1212
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1313
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14-
"Language-Team: LANGUAGE <[email protected]>\n"
14+
"Language-Team: FRENCH <[email protected]>\n"
15+
"Language: fr\n"
1516
"MIME-Version: 1.0\n"
1617
"Content-Type: text/plain; charset=UTF-8\n"
1718
"Content-Transfer-Encoding: 8bit\n"

deprecations/pending-removal-in-3.16.po

+3-2
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@
66
#, fuzzy
77
msgid ""
88
msgstr ""
9-
"Project-Id-Version: Python 3.12\n"
9+
"Project-Id-Version: Python 3\n"
1010
"Report-Msgid-Bugs-To: \n"
1111
"POT-Creation-Date: 2024-10-29 21:40+0100\n"
1212
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1313
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14-
"Language-Team: LANGUAGE <[email protected]>\n"
14+
"Language-Team: FRENCH <[email protected]>\n"
15+
"Language: fr\n"
1516
"MIME-Version: 1.0\n"
1617
"Content-Type: text/plain; charset=UTF-8\n"
1718
"Content-Transfer-Encoding: 8bit\n"

deprecations/pending-removal-in-future.po

+3-2
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@
66
#, fuzzy
77
msgid ""
88
msgstr ""
9-
"Project-Id-Version: Python 3.12\n"
9+
"Project-Id-Version: Python 3\n"
1010
"Report-Msgid-Bugs-To: \n"
1111
"POT-Creation-Date: 2024-10-29 21:40+0100\n"
1212
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1313
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14-
"Language-Team: LANGUAGE <[email protected]>\n"
14+
"Language-Team: FRENCH <[email protected]>\n"
15+
"Language: fr\n"
1516
"MIME-Version: 1.0\n"
1617
"Content-Type: text/plain; charset=UTF-8\n"
1718
"Content-Transfer-Encoding: 8bit\n"

extending/newtypes.po

+3-5
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ msgstr ""
66
"Project-Id-Version: Python 3\n"
77
"Report-Msgid-Bugs-To: \n"
88
"POT-Creation-Date: 2024-10-29 21:40+0100\n"
9-
"PO-Revision-Date: 2023-11-27 21:48+0100\n"
9+
"PO-Revision-Date: 2024-10-29 22:00+0100\n"
1010
"Last-Translator: Christophe Nanteuil <[email protected]>\n"
1111
"Language-Team: FRENCH <[email protected]>\n"
1212
"Language: fr\n"
@@ -1245,14 +1245,12 @@ msgid "finalization, of objects"
12451245
msgstr "finalisation, d'objets"
12461246

12471247
#: extending/newtypes.rst:91
1248-
#, fuzzy
12491248
msgid "PyErr_Fetch (C function)"
1250-
msgstr "PyErr_Fetch()"
1249+
msgstr "PyErr_Fetch (C function)"
12511250

12521251
#: extending/newtypes.rst:91
1253-
#, fuzzy
12541252
msgid "PyErr_Restore (C function)"
1255-
msgstr "PyErr_Restore()"
1253+
msgstr "PyErr_Restore (C function)"
12561254

12571255
#: extending/newtypes.rst:150
12581256
msgid "string"

howto/argparse-optparse.po

+3-2
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@
66
#, fuzzy
77
msgid ""
88
msgstr ""
9-
"Project-Id-Version: Python 3.12\n"
9+
"Project-Id-Version: Python 3\n"
1010
"Report-Msgid-Bugs-To: \n"
1111
"POT-Creation-Date: 2024-10-29 21:40+0100\n"
1212
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1313
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14-
"Language-Team: LANGUAGE <[email protected]>\n"
14+
"Language-Team: FRENCH <[email protected]>\n"
15+
"Language: fr\n"
1516
"MIME-Version: 1.0\n"
1617
"Content-Type: text/plain; charset=UTF-8\n"
1718
"Content-Transfer-Encoding: 8bit\n"

howto/gdb_helpers.po

+3-2
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@
66
#, fuzzy
77
msgid ""
88
msgstr ""
9-
"Project-Id-Version: Python 3.12\n"
9+
"Project-Id-Version: Python 3\n"
1010
"Report-Msgid-Bugs-To: \n"
1111
"POT-Creation-Date: 2024-10-29 21:40+0100\n"
1212
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1313
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14-
"Language-Team: LANGUAGE <[email protected]>\n"
14+
"Language-Team: FRENCH <[email protected]>\n"
15+
"Language: fr\n"
1516
"MIME-Version: 1.0\n"
1617
"Content-Type: text/plain; charset=UTF-8\n"
1718
"Content-Transfer-Encoding: 8bit\n"

howto/mro.po

+3-2
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@
66
#, fuzzy
77
msgid ""
88
msgstr ""
9-
"Project-Id-Version: Python 3.12\n"
9+
"Project-Id-Version: Python 3\n"
1010
"Report-Msgid-Bugs-To: \n"
1111
"POT-Creation-Date: 2024-10-29 21:40+0100\n"
1212
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1313
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14-
"Language-Team: LANGUAGE <[email protected]>\n"
14+
"Language-Team: FRENCH <[email protected]>\n"
15+
"Language: fr\n"
1516
"MIME-Version: 1.0\n"
1617
"Content-Type: text/plain; charset=UTF-8\n"
1718
"Content-Transfer-Encoding: 8bit\n"

howto/perf_profiling.po

+3-2
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@
66
#, fuzzy
77
msgid ""
88
msgstr ""
9-
"Project-Id-Version: Python 3.12\n"
9+
"Project-Id-Version: Python 3\n"
1010
"Report-Msgid-Bugs-To: \n"
1111
"POT-Creation-Date: 2024-10-29 21:40+0100\n"
1212
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1313
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14-
"Language-Team: LANGUAGE <[email protected]>\n"
14+
"Language-Team: FRENCH <[email protected]>\n"
15+
"Language: fr\n"
1516
"MIME-Version: 1.0\n"
1617
"Content-Type: text/plain; charset=UTF-8\n"
1718
"Content-Transfer-Encoding: 8bit\n"

library/cmdline.po

+3-2
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@
66
#, fuzzy
77
msgid ""
88
msgstr ""
9-
"Project-Id-Version: Python 3.12\n"
9+
"Project-Id-Version: Python 3\n"
1010
"Report-Msgid-Bugs-To: \n"
1111
"POT-Creation-Date: 2024-10-29 21:40+0100\n"
1212
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1313
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14-
"Language-Team: LANGUAGE <[email protected]>\n"
14+
"Language-Team: FRENCH <[email protected]>\n"
15+
"Language: fr\n"
1516
"MIME-Version: 1.0\n"
1617
"Content-Type: text/plain; charset=UTF-8\n"
1718
"Content-Transfer-Encoding: 8bit\n"

library/email.contentmanager.po

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ msgstr ""
66
"Project-Id-Version: Python 3\n"
77
"Report-Msgid-Bugs-To: \n"
88
"POT-Creation-Date: 2024-10-29 21:40+0100\n"
9-
"PO-Revision-Date: 2023-11-21 23:04+0100\n"
9+
"PO-Revision-Date: 2024-10-29 22:15+0100\n"
1010
"Last-Translator: Christophe Nanteuil <[email protected]>\n"
1111
"Language-Team: FRENCH <[email protected]>\n"
1212
"Language: fr\n"
@@ -315,7 +315,7 @@ msgid ""
315315
"For all other values of *subtype*, use ``7bit``."
316316
msgstr ""
317317
"Pour :class:`~email.message.EmailMessage`, selon la :rfc:`2046`, pour le "
318-
"*subtype* ``rfc822`, lève une erreur pour un *cte* valant ``quoted-"
318+
"*subtype* ``rfc822``, lève une erreur pour un *cte* valant ``quoted-"
319319
"printable`` ou ``base64``. Pour le *subtype* ``external-body``, lève une "
320320
"erreur pour tout *cte* autre que ``7bit``. Pour ``message/rfc822``, la "
321321
"valeur par défaut de *cte* est ``8bit``. Pour toutes les autres valeurs de "

0 commit comments

Comments
 (0)