1
0
mirror of https://github.com/php/doc-fr.git synced 2026-03-24 15:12:13 +01:00

10 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
Louis-Arnaud
8da8c3fe7a sync EN-Revision hashes and apply pending EN changes (#2465)
* sync EN-Revision hashes and apply pending EN changes
2026-02-12 11:04:51 +01:00
Benjamin Morel
9eff6e0810 Fix typos (#2184) 2025-05-01 22:08:13 +01:00
Gina Peter Banyard
24f1f05b10 Apply commit from doc-en PR 3422 2024-06-14 17:01:42 +01:00
Sergey Panteleev
f5bbb6f76a Apply php/doc-en@9eb4a46 (#561) 2023-07-29 11:04:22 +01:00
Sergey Panteleev
b6694bbf84 Apply php/doc-en@96a8379 (#540)
And sync Reflector page changes which predate that commit 

Co-authored-by: George Peter Banyard <girgias@php.net>
2023-07-05 17:37:22 +01:00
George Peter Banyard
fecaa5f60f Apply commit 601f6f4ce5827d441a7e110184708f0abe9fd447 2022-12-11 22:13:02 +00:00
Sergey Panteleev
1a90b6f805 Updated to en-revision 2021-07-31 12:47:16 +02:00
George Peter Banyard
ace0e5f93e Sync various French translations with its English counterpart
git-svn-id: https://svn.php.net/repository/phpdoc/fr/trunk@350785 c90b9560-bf6c-de11-be94-00142212c4b1
2020-10-06 05:43:29 +00:00
Jean-Baptiste Nahan
e197b2c1bc Sync with EN
git-svn-id: https://svn.php.net/repository/phpdoc/fr/trunk@346447 c90b9560-bf6c-de11-be94-00142212c4b1
2018-12-28 13:58:33 +00:00