Skip to content

Commit ff88ce4

Browse files
authored
Make wrap to actually wrap, not just check. (#1765)
1 parent 51120f1 commit ff88ce4

File tree

2 files changed

+15
-23
lines changed

2 files changed

+15
-23
lines changed

CONTRIBUTING.rst

Lines changed: 10 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -141,30 +141,21 @@ Ou lancez simplement Poedit puis « Fichier » → « Ouvrir ».
141141
Traduction
142142
~~~~~~~~~~
143143

144-
Vous pouvez dès à présent commencer à traduire le fichier en respectant les `conventions`_ du projet.
145-
Pour vous aider à ne pas faire de fautes d'orthographe, vous pouvez vérifier que tous les mots utilisés sont
146-
bien dans le dictionnaire (ça ne vérifie pas la grammaire, pour cela utilisez `padpo (beta)`_). En cas
147-
de doute, un `glossaire`_ répertorie déjà les traductions retenues pour certains termes techniques ou faux amis
148-
en anglais.
149-
150-
.. code-block:: bash
151-
152-
make spell
153-
154-
155-
Vous pouvez aussi réindenter les fichiers avec :
156-
157-
.. code-block:: bash
158-
159-
make wrap
160-
161-
162-
Et pour faire les deux à la fois, lancez :
144+
Vous pouvez dès à présent commencer à traduire le fichier en
145+
respectant les `conventions`_ du projet. Pour vous y aider, la commande :
163146

164147
.. code-block:: bash
165148
166149
make verifs
167150
151+
vérifie la longueur des lignes et l'orthographe (mais pas la
152+
grammaire, pour cela utilisez `padpo (beta)`_). En cas de doute, un
153+
`glossaire`_ répertorie déjà les traductions retenues pour certains
154+
termes techniques ou faux amis en anglais.
155+
156+
Si ``make verifs`` trouve des problèmes de longueurs de ligne,
157+
vérifiez votre configuration ``poedit`` (Édition → Préférences →
158+
Avancé → Passer à la ligne à 79) ou utilisez ``make wrap``.
168159

169160
Une fois la traduction finie, il faut compiler la documentation, c'est-à-dire générer les fichiers HTML
170161
affichés par le site, pour les relire. Si la commande précédente s'est exécutée sans erreur, la

Makefile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# - make # Automatically build an HTML local version
66
# - make todo # To list remaining tasks and show current progression
77
# - make verifs # To check for correctness: wrapping, spelling
8-
# - make wrap # To check for wrapping
8+
# - make wrap # To rewrap modified files
99
# - make spell # To check for spelling
1010
# - make clean # To remove build artifacts
1111
# - make fuzzy # To find fuzzy strings
@@ -106,8 +106,8 @@ todo: ensure_prerequisites
106106

107107
.PHONY: wrap
108108
wrap: ensure_prerequisites
109-
@echo "Verify wrapping"
110-
powrap --check --quiet *.po **/*.po
109+
@echo "Re wrapping modified files"
110+
powrap -m
111111

112112
SRCS = $(shell git diff --name-only $(BRANCH) | grep '.po$$')
113113
# foo/bar.po => $(POSPELL_TMP_DIR)/foo/bar.po.out
@@ -126,7 +126,8 @@ fuzzy: ensure_prerequisites
126126
potodo -f --exclude venv .venv $(EXCLUDED)
127127

128128
.PHONY: verifs
129-
verifs: wrap spell
129+
verifs: spell
130+
powrap --check --quiet *.po */*.po
130131

131132
.PHONY: clean
132133
clean:

0 commit comments

Comments
 (0)