1
0
mirror of https://github.com/php/doc-fr.git synced 2026-04-28 01:03:22 +02:00

11 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 2a1f1280b9 Use standard type element instead of entity 2021-06-03 01:59:22 +01:00
George Peter Banyard 16bec09572 Update EN-Revision as these used the entity instead of the non-canonical <type>
git-svn-id: https://svn.php.net/repository/phpdoc/fr/trunk@351199 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-03 20:29:32 +00:00
Jean-Baptiste Nahan 4c31b22717 Sync with EN SQLite part
git-svn-id: https://svn.php.net/repository/phpdoc/fr/trunk@345012 c90b9560-bf6c-de11-be94-00142212c4b1
2018-05-15 21:00:11 +00:00
Patrick Allaert c9b7ee696e Fixed: using existing entities for better translation
git-svn-id: https://svn.php.net/repository/phpdoc/fr/trunk@331047 c90b9560-bf6c-de11-be94-00142212c4b1
2013-08-02 10:56:16 +00:00
Yannick Torres 9d5862e6df sync with EN
git-svn-id: https://svn.php.net/repository/phpdoc/fr/trunk@324183 c90b9560-bf6c-de11-be94-00142212c4b1
2012-03-13 10:42:24 +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 25f991db09 sync with EN
git-svn-id: https://svn.php.net/repository/phpdoc/fr/trunk@289197 c90b9560-bf6c-de11-be94-00142212c4b1
2009-10-04 17:31:32 +00:00
Nilgün Belma Bugüner bda4edee98 changed EN-Revision tag as cvs2svn;
fixed svn properties

git-svn-id: https://svn.php.net/repository/phpdoc/fr/trunk@283985 c90b9560-bf6c-de11-be94-00142212c4b1
2009-07-12 20:59:32 +00:00
Yannick Torres dcdc4cfab6 initial translation
git-svn-id: https://svn.php.net/repository/phpdoc/fr/trunk@273246 c90b9560-bf6c-de11-be94-00142212c4b1
2009-01-10 14:27:33 +00:00