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

21 Commits

Author SHA1 Message Date
Louis-Arnaud
2d60547241 Fix grammar and spelling in session/ and outcontrol/ documentation (#2651) 2026-03-11 20:57:57 +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
Louis-Arnaud
33a1cfa96d Doc review 4 (#2473) 2026-02-17 17:26:20 +01:00
Louis-Arnaud
4330fb0bdd Fix/reference sync en full (#2467)
- Traduction des entrées de changelog non traduites (is now nullable, is no longer supported, etc.)
- Suppression des lignes anglaises dupliquées (français + anglais sur des lignes consécutives)
- Traduction des descriptions de retour et paramètres non traduits
- Suppression des avertissements &warn.undocumented.func; pour les fonctions documentées
- Correction de fautes de frappe (is→si, c'est→ces)
- Traduction de "and" → "et" dans le texte français (8 fichiers)
- Traduction des entrées de changelog restées en anglais (nullable, etc.) (9 fichiers)
- Suppression du texte anglais non traduit (cubrid constants, yaconf, datetimeimmutable)
- Correction d'une faute de frappe "an" → "en" (bcmath/divmod)
- Traduction d'une description restée en anglais (intl/compose-locale)
2026-02-12 15:44:55 +01:00
George Peter Banyard
fecaa5f60f Apply commit 601f6f4ce5827d441a7e110184708f0abe9fd447 2022-12-11 22:13:02 +00:00
George Peter Banyard
72db803b98 Apply commit 35b57d9df064ca7e1496fb73c4b9c1e30a7cd611
Remove some unnecessary abstract modifier from methodsynopses
2021-09-14 14:12:11 +01:00
Sergey Panteleev
3eea870a26 Updated to en-revision (#64)
php/doc-en@49d4fb5 - fixed English typos, and added space to "... example"
php/doc-en@0d5b019 - removed ; in English version
php/doc-en@e83ad8e - linux to Linux. French version already has the right variant
php/doc-en@42d9fe8 - fixed English typos
php/doc-en@eedb233 - fixed English typos
2021-07-30 11:10:10 +02:00
George Peter Banyard
730c5fa56e Sync with EN 2021-06-05 13:46:34 +01:00
George Peter Banyard
506695425a Minor sync in reference/ with EN 2021-05-25 18:58:36 +01:00
George Peter Banyard
8352d7257a Apply SVN revision 351750
git-svn-id: https://svn.php.net/repository/phpdoc/fr/trunk@351765 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-30 02:08:48 +00:00
George Peter Banyard
6ae23c6341 Reviewed some Frenc documentation files
git-svn-id: https://svn.php.net/repository/phpdoc/fr/trunk@346558 c90b9560-bf6c-de11-be94-00142212c4b1
2019-01-06 20:48:57 +00:00
Jean-Baptiste Nahan
154fcb0e81 Correction de fautes
git-svn-id: https://svn.php.net/repository/phpdoc/fr/trunk@344856 c90b9560-bf6c-de11-be94-00142212c4b1
2018-04-27 11:55:43 +00:00
Jean-Baptiste Nahan
a5713e4fed Sync with EN
git-svn-id: https://svn.php.net/repository/phpdoc/fr/trunk@344448 c90b9560-bf6c-de11-be94-00142212c4b1
2018-03-05 08:20:27 +00:00
Yannick Torres
e81cb40a7a sync with EN
git-svn-id: https://svn.php.net/repository/phpdoc/fr/trunk@337957 c90b9560-bf6c-de11-be94-00142212c4b1
2015-10-05 19:35:55 +00:00
Yannick Torres
e15b4e8482 sync with EN
git-svn-id: https://svn.php.net/repository/phpdoc/fr/trunk@327675 c90b9560-bf6c-de11-be94-00142212c4b1
2012-09-17 10:05:04 +00:00
Yannick Torres
b555688a1c sync with EN
git-svn-id: https://svn.php.net/repository/phpdoc/fr/trunk@325744 c90b9560-bf6c-de11-be94-00142212c4b1
2012-05-18 08:35:32 +00:00
JulienPauli
e12c4f3683 Sync doc with En
git-svn-id: https://svn.php.net/repository/phpdoc/fr/trunk@324001 c90b9560-bf6c-de11-be94-00142212c4b1
2012-03-07 15:01:36 +00:00
Yannick Torres
369e1888d6 sync with EN
git-svn-id: https://svn.php.net/repository/phpdoc/fr/trunk@323584 c90b9560-bf6c-de11-be94-00142212c4b1
2012-02-27 13:54:16 +00:00
JulienPauli
35d041bb33 Sync doc with En
git-svn-id: https://svn.php.net/repository/phpdoc/fr/trunk@323474 c90b9560-bf6c-de11-be94-00142212c4b1
2012-02-24 12:55:40 +00:00
Yannick Torres
1c71f5bf4b sync with EN
git-svn-id: https://svn.php.net/repository/phpdoc/fr/trunk@323277 c90b9560-bf6c-de11-be94-00142212c4b1
2012-02-17 07:55:11 +00:00
JulienPauli
9d83cefe68 Sync doc with En - Added more translated files
git-svn-id: https://svn.php.net/repository/phpdoc/fr/trunk@322968 c90b9560-bf6c-de11-be94-00142212c4b1
2012-01-31 11:51:57 +00:00