1
0
mirror of https://github.com/php/doc-fr.git synced 2026-03-24 23:22:18 +01:00

26 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
David CARLIER
1a4c3b5727 array section pure sync (#419) 2023-03-25 14:57:06 +00:00
George Peter Banyard
990ddcbfa8 Add missing EOL before end of file 2021-09-24 04:13:47 +01:00
George Peter Banyard
201ab2125e Apply SVN revision 351129 onto French docs using diff generated from this command:
git diff --no-prefix 9e0f03ac354d797d1d16c0fcc1663e5e170f2727^ 9e0f03ac354d797d1d16c0fcc1663e5e170f2727 > somefile.diff
and applying it using
patch -p0 < somefile.diff

Did another passes when applying it failed and updated EN Revision numbers manually

Drive by fix for the previous application for int|float union in pow() function

git-svn-id: https://svn.php.net/repository/phpdoc/fr/trunk@351166 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-03 05:31:18 +00:00
Yannick Torres
669e940114 sync with EN
git-svn-id: https://svn.php.net/repository/phpdoc/fr/trunk@331786 c90b9560-bf6c-de11-be94-00142212c4b1
2013-10-12 20:30: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
1664cd4a5e sync with EN
git-svn-id: https://svn.php.net/repository/phpdoc/fr/trunk@323083 c90b9560-bf6c-de11-be94-00142212c4b1
2012-02-06 08:55:43 +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
Torben Wilson
db63e0b065 Resynched with en (bumped EN-Revision and updated sgml-default-dtd-file).
git-svn-id: https://svn.php.net/repository/phpdoc/fr/trunk@288878 c90b9560-bf6c-de11-be94-00142212c4b1
2009-09-28 04:50:00 +00:00
Nilgün Belma Bugüner
c1429940da changed EN-Revision tag as cvs2svn;
fixed svn properties

git-svn-id: https://svn.php.net/repository/phpdoc/fr/trunk@283966 c90b9560-bf6c-de11-be94-00142212c4b1
2009-07-12 19:03:26 +00:00
Damien Seguy
bed2049fdf bump en version
git-svn-id: https://svn.php.net/repository/phpdoc/fr/trunk@281074 c90b9560-bf6c-de11-be94-00142212c4b1
2009-05-25 08:50:59 +00:00
Damien Seguy
fbd2863ffa synch with en
git-svn-id: https://svn.php.net/repository/phpdoc/fr/trunk@280958 c90b9560-bf6c-de11-be94-00142212c4b1
2009-05-22 14:51:36 +00:00
Yannick Torres
3a41815c67 sync with EN
git-svn-id: https://svn.php.net/repository/phpdoc/fr/trunk@271928 c90b9560-bf6c-de11-be94-00142212c4b1
2008-12-26 16:59:11 +00:00
Yannick Torres
422b00c910 sync with EN
git-svn-id: https://svn.php.net/repository/phpdoc/fr/trunk@254492 c90b9560-bf6c-de11-be94-00142212c4b1
2008-03-07 14:32:42 +00:00
Damien Seguy
56f8e94b2f various spelling mistakes
git-svn-id: https://svn.php.net/repository/phpdoc/fr/trunk@243512 c90b9560-bf6c-de11-be94-00142212c4b1
2007-10-04 15:52:06 +00:00
Yannick Torres
4ebb38c27e sync with EN (docBook update)
git-svn-id: https://svn.php.net/repository/phpdoc/fr/trunk@240058 c90b9560-bf6c-de11-be94-00142212c4b1
2007-07-21 06:10:22 +00:00
Hannes Magnusson
069f6629d8 - Bunch of build fixes
- Upgrade to DocBook5:
  - All id attributes are now xml:id
  - Add docbook namespace to all root elements
  - Replace <ulink /> with <link xlink:href />
  - Minor markup fixes here and there


git-svn-id: https://svn.php.net/repository/phpdoc/fr/trunk@238217 c90b9560-bf6c-de11-be94-00142212c4b1
2007-06-21 17:05:05 +00:00
David Manusset
23cd840b12 typo
git-svn-id: https://svn.php.net/repository/phpdoc/fr/trunk@223533 c90b9560-bf6c-de11-be94-00142212c4b1
2006-11-17 16:06:57 +00:00
Jean-Sébastien Goupil
dcbd76b0cc sync with EN
git-svn-id: https://svn.php.net/repository/phpdoc/fr/trunk@222717 c90b9560-bf6c-de11-be94-00142212c4b1
2006-11-03 12:03:58 +00:00
Yannick Torres
2e83a9ead5 add reviewed tag
git-svn-id: https://svn.php.net/repository/phpdoc/fr/trunk@218951 c90b9560-bf6c-de11-be94-00142212c4b1
2006-08-27 20:25:35 +00:00
Yannick Torres
3c0f5fefbb use more entities
git-svn-id: https://svn.php.net/repository/phpdoc/fr/trunk@171861 c90b9560-bf6c-de11-be94-00142212c4b1
2004-11-01 17:48:59 +00:00
Yannick Torres
b3c2d744cd sync with EN version
git-svn-id: https://svn.php.net/repository/phpdoc/fr/trunk@166836 c90b9560-bf6c-de11-be94-00142212c4b1
2004-08-19 15:18:28 +00:00
Yannick Torres
98f00e2c6a fix synopsis
git-svn-id: https://svn.php.net/repository/phpdoc/fr/trunk@166285 c90b9560-bf6c-de11-be94-00142212c4b1
2004-08-13 14:16:20 +00:00
Damien Seguy
b4851874de proto cosmetics
git-svn-id: https://svn.php.net/repository/phpdoc/fr/trunk@165138 c90b9560-bf6c-de11-be94-00142212c4b1
2004-08-03 18:08:08 +00:00
Yannick Torres
d7badfd4ec sync with EN Revision
git-svn-id: https://svn.php.net/repository/phpdoc/fr/trunk@164441 c90b9560-bf6c-de11-be94-00142212c4b1
2004-07-27 13:07:22 +00:00
Yannick Torres
d9a10cb857 initial translation
git-svn-id: https://svn.php.net/repository/phpdoc/fr/trunk@164390 c90b9560-bf6c-de11-be94-00142212c4b1
2004-07-26 22:41:58 +00:00