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

33 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
Sergey Panteleev
3950b95bf8 Sync array section (#249) 2022-06-28 15:35:45 +01: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
cf8f7d946d Convert to UTF-8
git-svn-id: https://svn.php.net/repository/phpdoc/fr/trunk@297124 c90b9560-bf6c-de11-be94-00142212c4b1
2010-03-30 05:22:20 +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
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
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
Yannick Torres
3a7bc99a9b sync with EN
git-svn-id: https://svn.php.net/repository/phpdoc/fr/trunk@228521 c90b9560-bf6c-de11-be94-00142212c4b1
2007-01-30 19:15:47 +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
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
Mehdi Achour
ab9333825e mise a jour du nick et du status pour array/functions
# sync fait par dams


git-svn-id: https://svn.php.net/repository/phpdoc/fr/trunk@160449 c90b9560-bf6c-de11-be94-00142212c4b1
2004-06-03 07:29:52 +00:00
Damien Seguy
3173829d50 minors cosmetics
git-svn-id: https://svn.php.net/repository/phpdoc/fr/trunk@157908 c90b9560-bf6c-de11-be94-00142212c4b1
2004-05-04 14:08:25 +00:00
Mehdi Achour
1ac31c7411 Adding the EN-Revision comment
git-svn-id: https://svn.php.net/repository/phpdoc/fr/trunk@152276 c90b9560-bf6c-de11-be94-00142212c4b1
2004-02-24 18:15:13 +00:00
Mehdi Achour
c1a709fa5c Missing revision tag
git-svn-id: https://svn.php.net/repository/phpdoc/fr/trunk@152273 c90b9560-bf6c-de11-be94-00142212c4b1
2004-02-24 17:42:21 +00:00
Mehdi Achour
14e74d6942 1 - on indente correctement
2 - on ne met pas d'accents bizarres
 3 - on respecte les syntaxe pour les exemples, la voici :
<para>
 <example>
  <title />
  <programlisting>

  </programlisting>
  <para>
   Ca va afficher :
  </para>
  <screen>

  </screen>
  <para>
   Et si on veut un petit mot ici
  </para>
 </example>
</para>


git-svn-id: https://svn.php.net/repository/phpdoc/fr/trunk@149404 c90b9560-bf6c-de11-be94-00142212c4b1
2004-01-21 13:29:25 +00:00
Damien Seguy
01163fa3db removing tabs, plus a few enhancements
git-svn-id: https://svn.php.net/repository/phpdoc/fr/trunk@149294 c90b9560-bf6c-de11-be94-00142212c4b1
2004-01-20 12:08:00 +00:00
Damien Seguy
ea42f58b58 turning entites into chars
git-svn-id: https://svn.php.net/repository/phpdoc/fr/trunk@147452 c90b9560-bf6c-de11-be94-00142212c4b1
2003-12-29 17:04:50 +00:00
Damien Seguy
3ddb85898f typos and missing tags
git-svn-id: https://svn.php.net/repository/phpdoc/fr/trunk@146971 c90b9560-bf6c-de11-be94-00142212c4b1
2003-12-19 23:40:55 +00:00
Damien Seguy
5090d2852c latest typo
git-svn-id: https://svn.php.net/repository/phpdoc/fr/trunk@138809 c90b9560-bf6c-de11-be94-00142212c4b1
2003-08-26 12:56:16 +00:00
Damien Seguy
3619bc0168 typos in batch
git-svn-id: https://svn.php.net/repository/phpdoc/fr/trunk@132278 c90b9560-bf6c-de11-be94-00142212c4b1
2003-06-18 02:38:44 +00:00
Damien Seguy
9c92b20ccb spring commit
git-svn-id: https://svn.php.net/repository/phpdoc/fr/trunk@118985 c90b9560-bf6c-de11-be94-00142212c4b1
2003-03-05 00:08:12 +00:00
Damien Seguy
dabd551680 spring cleaning
git-svn-id: https://svn.php.net/repository/phpdoc/fr/trunk@114911 c90b9560-bf6c-de11-be94-00142212c4b1
2003-02-06 03:55:39 +00:00
Damien Seguy
88c52a26f0 early spring cleaning
git-svn-id: https://svn.php.net/repository/phpdoc/fr/trunk@114768 c90b9560-bf6c-de11-be94-00142212c4b1
2003-02-04 17:47:00 +00:00
Damien Seguy
17b2a8a92c programlisting => cdata
git-svn-id: https://svn.php.net/repository/phpdoc/fr/trunk@95171 c90b9560-bf6c-de11-be94-00142212c4b1
2002-09-08 21:42:07 +00:00
Hartmut Holzgraefe
b8daeaab85 banana-split
git-svn-id: https://svn.php.net/repository/phpdoc/fr/trunk@78204 c90b9560-bf6c-de11-be94-00142212c4b1
2002-04-15 00:40:38 +00:00