1
0
mirror of https://github.com/php/doc-fr.git synced 2026-04-28 17:23:20 +02:00

13 Commits

Author SHA1 Message Date
Louis-Arnaud 2d314f78aa CI: check-style + nettoyage TRADUCTIONS.txt (#2545)
* CI: add French style checker based on TRADUCTIONS.txt

Checks changed XML files in PRs for:
- Direct address forms (vous/votre/vos) → warnings
- French grammar errors (etc..., comme par exemple, si il) → errors
- Incorrect terminology (librairie, chiffrage, encryption) → warnings

Inspired by doc-ja's textlint+prh approach but simpler:
runs directly on XML sources, no PhD render needed.

Only errors (grammar/spelling) fail the CI.
Style warnings appear as PR annotations without blocking.

* test: introduce style errors to validate CI check

* Revert "test: introduce style errors to validate CI check"

This reverts commit 7c1d523c6bbef116f54fc6dad7b61a45ee4f7ddd.

* Corriger toutes les violations de style TRADUCTIONS.txt

- 174x "Notez que" → "Il est à noter que"
- 50x "depuis PHP X" → "à partir de PHP X"
- 50x "votre" → le/la/du
- 15x "si il" → "s'il"
- 14x "Vous pouvez" → "Il est possible de"
- 14x "encryption" (faux positifs entity refs exclus)
- 12x "assurez-vous" → "il faut s'assurer"
- 12x "Vous devez" → "Il faut"
- 11x "vos" → les/des
- 9x "comme par exemple" → "par exemple"
- 6x "Vous devriez" → "Il est recommandé de"
- 2x "optionel" → "optionnel"
- 2x "reportez-vous" → "se reporter"

Toutes les règles passent désormais en erreur dans la CI.

* Harmoniser les noms de workflows GitHub Actions

- integrate.yaml → build.yml (extension + nom cohérent)
- check-style-fr.yml → check-style.yml ("-fr" redondant)
- Aligner les noms de workflow et job

* Lire les règles dynamiquement depuis TRADUCTIONS.txt

Le script parse TRADUCTIONS.txt au démarrage et génère les règles
de vérification automatiquement. Plus aucune règle en dur.

* Règles dynamiques depuis TRADUCTIONS.txt

Le script CI lit les lignes INTERDIT de TRADUCTIONS.txt pour générer
les règles de vérification. Plus aucune règle en dur dans le script.
Corrige les 27 violations restantes (Depuis PHP → À partir de PHP).

* Corriger les trailing whitespace
2026-02-25 13:13:51 +01:00
George Peter Banyard 601101f5fa Apply commit 770c6facae667218f69c8ea2715ea20f6fab32f3 2022-12-24 14:00:33 +00:00
Pierrick Charron 47063ee2fd Apply php/doc-en@08e0e7dd68 (#86) 2022-05-26 13:29:32 -04:00
George Peter Banyard 990ddcbfa8 Add missing EOL before end of file 2021-09-24 04:13:47 +01:00
George Peter Banyard 8daa4fd322 Fix type 'noeud' into 'nœud' 2021-06-08 16:49:14 +01:00
George Peter Banyard 506695425a Minor sync in reference/ with EN 2021-05-25 18:58:36 +01:00
George Peter Banyard d4bc5aac20 Apply commit 5916fd8f742127259912e6510904451849928020
Update ext/simplexml methodsynopses based on stubs
2021-05-24 02:23:12 +01:00
George Peter Banyard 09685304ef Sync EN revision tags
These were skipped on my personal revcheck as I hadn't made a tool to generate a batch diff for files with no changes
2021-05-19 19:16:05 +01:00
Yannick Torres 0dbeee8f31 sync with EN
git-svn-id: https://svn.php.net/repository/phpdoc/fr/trunk@311797 c90b9560-bf6c-de11-be94-00142212c4b1
2011-06-04 06:29:29 +00:00
JulienPauli 0269ff5c01 Sync doc with En
git-svn-id: https://svn.php.net/repository/phpdoc/fr/trunk@305787 c90b9560-bf6c-de11-be94-00142212c4b1
2010-11-27 18:24:45 +00:00
Yannick Torres a100a2127d Convert to UTF-8
git-svn-id: https://svn.php.net/repository/phpdoc/fr/trunk@297717 c90b9560-bf6c-de11-be94-00142212c4b1
2010-04-08 20:34:35 +00:00
Daniel Egeberg 11891a1649 Updating EN-Revision on up-to-date files after phpdoc/en UTF-8 conversion.
git-svn-id: https://svn.php.net/repository/phpdoc/fr/trunk@297032 c90b9560-bf6c-de11-be94-00142212c4b1
2010-03-29 00:47:47 +00:00
Yannick Torres f0f11b89f0 sync with EN
git-svn-id: https://svn.php.net/repository/phpdoc/fr/trunk@291803 c90b9560-bf6c-de11-be94-00142212c4b1
2009-12-07 06:50:39 +00:00