From 5df229eee68560527f6277903f3b7c608a7e7e7d Mon Sep 17 00:00:00 2001 From: Julien Palard Date: Tue, 7 Feb 2023 22:52:58 +0000 Subject: [PATCH] Fix headers, and enforce them. (#29) Reviewed-on: https://git.afpy.org/AFPy/python-docs-fr/pulls/29 Co-authored-by: Julien Palard Co-committed-by: Julien Palard --- Makefile | 21 ++++++++++++++++++++- c-api/frame.po | 9 +++------ howto/cporting.po | 1 + howto/enum.po | 8 +++----- howto/isolating-extensions.po | 13 +++++-------- library/asyncio-extending.po | 8 +++----- library/asyncio-runner.po | 8 +++----- library/importlib.resources.abc.po | 8 +++----- library/importlib.resources.po | 8 +++----- library/stdtypes.po | 6 +++--- library/sys_path_init.po | 9 +++------ library/tomllib.po | 9 +++------ tutorial/appendix.po | 3 ++- tutorial/interactive.po | 5 +++-- whatsnew/3.11.po | 8 +++----- 15 files changed, 61 insertions(+), 63 deletions(-) diff --git a/Makefile b/Makefile index 1b1f238b..c6a31e06 100644 --- a/Makefile +++ b/Makefile @@ -157,8 +157,27 @@ $(POSPELL_TMP_DIR)/%.po.out: %.po dict fuzzy: ensure_prerequisites potodo -f --exclude venv .venv $(EXCLUDED) +.PHONY: check-headers +check-headers: + @grep -L '^# Copyright (C) [0-9-]*, Python Software Foundation' *.po */*.po | while read -r file;\ + do \ + echo "Please update the po comment in $$file"; \ + done + @grep -L '^"Project-Id-Version: Python 3\\n"$$' *.po */*.po | while read -r file;\ + do \ + echo "Please update the 'Project-Id-Version' header in $$file"; \ + done + @grep -L '^"Language: fr\\n"$$' *.po */*.po | while read -r file;\ + do \ + echo "Please update the 'Language' header in $$file"; \ + done + @grep -L '^"Language-Team: FRENCH \\n"' *.po */*.po | while read -r file;\ + do \ + echo "Please update the 'Language-Team' header in $$file"; \ + done + .PHONY: verifs -verifs: spell line-length sphinx-lint +verifs: spell line-length sphinx-lint check-headers .PHONY: clean clean: diff --git a/c-api/frame.po b/c-api/frame.po index 65ef3e6d..dbac4b4a 100644 --- a/c-api/frame.po +++ b/c-api/frame.po @@ -1,12 +1,9 @@ -# SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation -# This file is distributed under the same license as the Python package. -# FIRST AUTHOR , YEAR. +# Copyright (C) 2001-2018, Python Software Foundation +# For licence information, see README file. # -#, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.11\n" +"Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2023-01-15 22:33+0100\n" "PO-Revision-Date: 2022-05-23 00:48+0200\n" diff --git a/howto/cporting.po b/howto/cporting.po index 071aec71..d8ee0c83 100644 --- a/howto/cporting.po +++ b/howto/cporting.po @@ -1,3 +1,4 @@ +# Copyright (C) 2001-2018, Python Software Foundation # For licence information, see README file. # msgid "" diff --git a/howto/enum.po b/howto/enum.po index 127b628b..cd10a797 100644 --- a/howto/enum.po +++ b/howto/enum.po @@ -1,11 +1,9 @@ -# SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation -# This file is distributed under the same license as the Python package. -# FIRST AUTHOR , YEAR. +# Copyright (C) 2001-2018, Python Software Foundation +# For licence information, see README file. # msgid "" msgstr "" -"Project-Id-Version: Python 3.11\n" +"Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2023-01-15 22:33+0100\n" "PO-Revision-Date: 2023-01-07 22:56+0100\n" diff --git a/howto/isolating-extensions.po b/howto/isolating-extensions.po index 79a53736..71a43c3b 100644 --- a/howto/isolating-extensions.po +++ b/howto/isolating-extensions.po @@ -1,18 +1,15 @@ -# SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2023, Python Software Foundation -# This file is distributed under the same license as the Python package. -# FIRST AUTHOR , YEAR. +# Copyright (C) 2001-2018, Python Software Foundation +# For licence information, see README file. # -#, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.11\n" +"Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2023-01-23 09:57+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" -"Language-Team: LANGUAGE \n" -"Language: \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" diff --git a/library/asyncio-extending.po b/library/asyncio-extending.po index 8d354042..01dd8bc2 100644 --- a/library/asyncio-extending.po +++ b/library/asyncio-extending.po @@ -1,11 +1,9 @@ -# SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation -# This file is distributed under the same license as the Python package. -# FIRST AUTHOR , YEAR. +# Copyright (C) 2001-2018, Python Software Foundation +# For licence information, see README file. # msgid "" msgstr "" -"Project-Id-Version: Python 3.11\n" +"Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2023-01-15 22:33+0100\n" "PO-Revision-Date: 2022-05-23 00:51+0200\n" diff --git a/library/asyncio-runner.po b/library/asyncio-runner.po index 6e3ab260..a64be98c 100644 --- a/library/asyncio-runner.po +++ b/library/asyncio-runner.po @@ -1,11 +1,9 @@ -# SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation -# This file is distributed under the same license as the Python package. -# FIRST AUTHOR , YEAR. +# Copyright (C) 2001-2018, Python Software Foundation +# For licence information, see README file. # msgid "" msgstr "" -"Project-Id-Version: Python 3.11\n" +"Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2023-01-15 22:33+0100\n" "PO-Revision-Date: 2022-05-23 00:51+0200\n" diff --git a/library/importlib.resources.abc.po b/library/importlib.resources.abc.po index 38db2b59..0ac372d1 100644 --- a/library/importlib.resources.abc.po +++ b/library/importlib.resources.abc.po @@ -1,11 +1,9 @@ -# SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation -# This file is distributed under the same license as the Python package. -# FIRST AUTHOR , YEAR. +# Copyright (C) 2001-2018, Python Software Foundation +# For licence information, see README file. # msgid "" msgstr "" -"Project-Id-Version: Python 3.11\n" +"Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2023-01-15 22:33+0100\n" "PO-Revision-Date: 2022-11-15 16:56+0100\n" diff --git a/library/importlib.resources.po b/library/importlib.resources.po index fcb198c2..a7f8dffe 100644 --- a/library/importlib.resources.po +++ b/library/importlib.resources.po @@ -1,11 +1,9 @@ -# SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation -# This file is distributed under the same license as the Python package. -# FIRST AUTHOR , YEAR. +# Copyright (C) 2001-2018, Python Software Foundation +# For licence information, see README file. # msgid "" msgstr "" -"Project-Id-Version: Python 3.11\n" +"Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2023-01-15 22:33+0100\n" "PO-Revision-Date: 2022-05-23 00:50+0200\n" diff --git a/library/stdtypes.po b/library/stdtypes.po index 9ac7a4bf..02b1cc76 100644 --- a/library/stdtypes.po +++ b/library/stdtypes.po @@ -4,11 +4,11 @@ msgid "" msgstr "" "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" -"PO-Revision-Date: 2022-11-20 22:25+0100\n" +"PO-Revision-Date: 2023-02-07 15:39+0100\n" "Last-Translator: Loc Cosnier \n" -"Language-Team: French \n" +"Language-Team: FRENCH \n" "Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" diff --git a/library/sys_path_init.po b/library/sys_path_init.po index 11cbf378..a0ae43fc 100644 --- a/library/sys_path_init.po +++ b/library/sys_path_init.po @@ -1,12 +1,9 @@ -# SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation -# This file is distributed under the same license as the Python package. -# FIRST AUTHOR , YEAR. +# Copyright (C) 2001-2018, Python Software Foundation +# For licence information, see README file. # -#, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.11\n" +"Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2022-05-22 23:13+0200\n" "PO-Revision-Date: 2022-05-23 00:50+0200\n" diff --git a/library/tomllib.po b/library/tomllib.po index 7bcb4a8d..b1bd93cf 100644 --- a/library/tomllib.po +++ b/library/tomllib.po @@ -1,12 +1,9 @@ -# SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation -# This file is distributed under the same license as the Python package. -# FIRST AUTHOR , YEAR. +# Copyright (C) 2001-2018, Python Software Foundation +# For licence information, see README file. # -#, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.11\n" +"Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2022-05-22 23:13+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" diff --git a/tutorial/appendix.po b/tutorial/appendix.po index d21fa5b1..fd2f3bd6 100644 --- a/tutorial/appendix.po +++ b/tutorial/appendix.po @@ -6,8 +6,9 @@ msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2020-08-24 09:01+0200\n" -"PO-Revision-Date: 2019-03-19 23:11+0100\n" +"PO-Revision-Date: 2023-02-07 15:40+0100\n" "Last-Translator: Christophe Nanteuil \n" +"Language-Team: FRENCH \n" "Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" diff --git a/tutorial/interactive.po b/tutorial/interactive.po index 6bcec788..d627ead9 100644 --- a/tutorial/interactive.po +++ b/tutorial/interactive.po @@ -4,10 +4,11 @@ msgid "" msgstr "" "Project-Id-Version: Python 3\n" -"Report-Msgid-Bugs-To: \n" +"Report-Msgid-Bugs-To:\n" "POT-Creation-Date: 2020-08-24 09:01+0200\n" -"PO-Revision-Date: 2018-03-01 22:10+0100\n" +"PO-Revision-Date: 2023-02-07 15:40+0100\n" "Language: fr\n" +"Language-Team: FRENCH \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff --git a/whatsnew/3.11.po b/whatsnew/3.11.po index ce9c4cd1..6541931d 100644 --- a/whatsnew/3.11.po +++ b/whatsnew/3.11.po @@ -1,11 +1,9 @@ -# SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation -# This file is distributed under the same license as the Python package. -# FIRST AUTHOR , YEAR. +# Copyright (C) 2001-2018, Python Software Foundation +# For licence information, see README file. # msgid "" msgstr "" -"Project-Id-Version: Python 3.11\n" +"Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2023-01-15 22:33+0100\n" "PO-Revision-Date: 2022-11-14 15:35+0100\n"