forked from AFPy/python-docs-fr
Compare commits
2 Commits
0798ce74be
...
4b1228c08d
Author | SHA1 | Date |
---|---|---|
Julien Palard | 4b1228c08d | |
Julien Palard | b3367a2bd5 |
|
@ -0,0 +1,23 @@
|
|||
#!/bin/sh
|
||||
|
||||
if [ -z "$*" ]
|
||||
then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
grep -L '^# Copyright (C) [0-9-]*, Python Software Foundation' $* | while read -r file
|
||||
do
|
||||
echo "Please update the po comment in $file"
|
||||
done
|
||||
grep -L '^"Project-Id-Version: Python 3\\n"$' $* | while read -r file
|
||||
do
|
||||
echo "Please update the 'Project-Id-Version' header in $file"
|
||||
done
|
||||
grep -L '^"Language: fr\\n"$' $* | while read -r file
|
||||
do
|
||||
echo "Please update the 'Language' header in $file"
|
||||
done
|
||||
grep -L '^"Language-Team: FRENCH <traductions@lists.afpy.org>\\n"' $* | while read -r file
|
||||
do
|
||||
echo "Please update the 'Language-Team' header in $file"
|
||||
done
|
|
@ -9,5 +9,5 @@ pipeline:
|
|||
- python3 -m pip install -r requirements.txt
|
||||
- BRANCH="$(grep ^BRANCH Makefile | awk '{print $3}')"
|
||||
- git fetch origin --no-tags +refs/heads/$BRANCH
|
||||
- git branch $BRANCH origin/$BRANCH ||:
|
||||
- 'git branch $BRANCH origin/$BRANCH ||:'
|
||||
- make verifs
|
||||
|
|
|
@ -518,8 +518,8 @@ Balises
|
|||
Ne traduisez pas le contenu des balises comme ``:ref:...`` ou ``:class:...``.
|
||||
Vous devez cependant traduire les balises ``:term:...``, qui font référence à
|
||||
une primitive ou un concept défini dans le `glossaire Python <https://docs.python.org/fr/3/glossary.html>`_.
|
||||
La syntaxe est ``:term:nom_français<nom_anglais>``. Par exemple, traduisez
|
||||
`` :term:`dictionary` `` en `` :term:`dictionnaire <dictionary>` ``.
|
||||
La syntaxe est ``:term:`nom_français <nom_anglais>```. Par exemple, traduisez
|
||||
``:term:`dictionary``` en ``:term:`dictionnaire <dictionary>```.
|
||||
|
||||
Comme le glossaire est déjà traduit, il y a forcément une correspondance à chaque
|
||||
terme que vous pouvez rencontrer.
|
||||
|
|
21
Makefile
21
Makefile
|
@ -150,12 +150,12 @@ spell: ensure_test_prerequisites $(DESTS)
|
|||
.PHONY: line-length
|
||||
line-length:
|
||||
@echo Checking line length...
|
||||
@python .scripts/line-length.py $(SRCS)
|
||||
@if [ -n "$(SRCS)" ]; then python .scripts/line-length.py $(SRCS); fi
|
||||
|
||||
.PHONY: sphinx-lint
|
||||
sphinx-lint: ensure_test_prerequisites
|
||||
@echo Checking reStructuredText syntax...
|
||||
@sphinx-lint --enable all --disable line-too-long $(SRCS)
|
||||
@if [ -n "$(SRCS)" ]; then sphinx-lint --enable all --disable line-too-long $(SRCS); fi
|
||||
|
||||
$(POSPELL_TMP_DIR)/%.po.out: %.po dict
|
||||
@echo "Pospell checking $<..."
|
||||
|
@ -169,22 +169,7 @@ fuzzy: ensure_test_prerequisites
|
|||
.PHONY: check-headers
|
||||
check-headers:
|
||||
@echo Checking po headers...
|
||||
@grep -L '^# Copyright (C) [0-9-]*, Python Software Foundation' $(SRCS) | while read -r file;\
|
||||
do \
|
||||
echo "Please update the po comment in $$file"; \
|
||||
done
|
||||
@grep -L '^"Project-Id-Version: Python 3\\n"$$' $(SRCS) | while read -r file;\
|
||||
do \
|
||||
echo "Please update the 'Project-Id-Version' header in $$file"; \
|
||||
done
|
||||
@grep -L '^"Language: fr\\n"$$' $(SRCS) | while read -r file;\
|
||||
do \
|
||||
echo "Please update the 'Language' header in $$file"; \
|
||||
done
|
||||
@grep -L '^"Language-Team: FRENCH <traductions@lists.afpy.org>\\n"' $(SRCS) | while read -r file;\
|
||||
do \
|
||||
echo "Please update the 'Language-Team' header in $$file"; \
|
||||
done
|
||||
@sh .scripts/check-headers.sh $(SRCS)
|
||||
|
||||
.PHONY: check-colons
|
||||
check-colons:
|
||||
|
|
Loading…
Reference in New Issue