1
0
mirror of https://github.com/php/doc-fr.git synced 2026-03-24 07:02:06 +01:00

12 Commits

Author SHA1 Message Date
Louis-Arnaud
afd4302b76 Corrections de traduction reference n-s (#2557) 2026-02-28 23:16:05 +01:00
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
38b66ce4f5 Apply commit ec2fe9a592f794978114ef5021db9f1d00c2e05d
Don't update RevCheck for a couple of files that were previously outdated
2022-12-11 23:38:40 +00:00
George Peter Banyard
48c6afeb13 Apply commit 98df2cf9a939729d73adee1484ec05929c74c98b
Generate reflection methodsynopses based on stubs
2021-01-02 17:09:57 +01:00
George Peter Banyard
b65e8265fd Update EN revision tag after patch
git-svn-id: https://svn.php.net/repository/phpdoc/fr/trunk@352100 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-15 17:59:31 +00:00
George Peter Banyard
9442b664b3 Update some examples in FR
Provided by villfa

git-svn-id: https://svn.php.net/repository/phpdoc/fr/trunk@352098 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-15 17:51:30 +00:00
George Peter Banyard
8b7ce1e201 Reviewed part of French Reflection doc
git-svn-id: https://svn.php.net/repository/phpdoc/fr/trunk@346559 c90b9560-bf6c-de11-be94-00142212c4b1
2019-01-06 21:39:34 +00:00
Jean-Baptiste Nahan
93491d2015 Sync with EN
git-svn-id: https://svn.php.net/repository/phpdoc/fr/trunk@344453 c90b9560-bf6c-de11-be94-00142212c4b1
2018-03-06 07:27:24 +00:00
Yannick Torres
58ba63f981 sync with EN
git-svn-id: https://svn.php.net/repository/phpdoc/fr/trunk@330362 c90b9560-bf6c-de11-be94-00142212c4b1
2013-05-26 15:48:45 +00:00
Yannick Torres
1e369b5e7a sync with EN
git-svn-id: https://svn.php.net/repository/phpdoc/fr/trunk@330176 c90b9560-bf6c-de11-be94-00142212c4b1
2013-05-05 18:15:26 +00:00
Yannick Torres
7a1f7170db sync with EN
git-svn-id: https://svn.php.net/repository/phpdoc/fr/trunk@325958 c90b9560-bf6c-de11-be94-00142212c4b1
2012-06-04 08:17:34 +00:00
Yannick Torres
7122e5cd8f New translation
git-svn-id: https://svn.php.net/repository/phpdoc/fr/trunk@293923 c90b9560-bf6c-de11-be94-00142212c4b1
2010-01-24 18:31:41 +00:00