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
a270861242 Fix/ref datetime traductions (#2582) 2026-03-02 15:21:23 +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
5a8f14f860 reference/datetime: fix grammar, spelling, and code examples (#2504)
- Fix plural agreements (fuseaux, secondes, contenues)
- Fix missing negation, verb, accents on capitals
- Fix code syntax error in mktime example
- Fix "levé" → "lever" du soleil
- Fix conjugations (réfèrent, fonctionneraient, peuvent)
2026-02-25 07:00:20 +01:00
Louis-Arnaud
02e6c05eea Fix doc fr review 2026-02-19 16:08:49 +01:00
Louis-Arnaud
3c7a53b821 Fix/reference datetime format sync en (#2420)
* fix(datetime/format): use interfacename for DateTimeInterface instead of classname DateTime
2026-02-06 14:43:27 +01:00
Pierre Ambroise
c034ea5a18 Sync datetime with EN (#2279) 2025-10-31 17:04:44 +01:00
Pierre Ambroise
4b758ef3b6 Datetime sync with EN 2025-10-06 14:24:07 +02:00
Aurelie-feyzin
2a87d7fbbf Update datetimeinterface (#1908)
Change translation to 'o' format
2024-12-07 20:13:59 +00:00
David CARLIER
c804571bf2 datetime sync with EN (#1412) 2024-09-01 09:08:52 +01:00
David CARLIER
1d7568c1c7 datetime sync rev id (#714) 2023-12-16 17:28:55 +00:00
Victor
3a99072ea2 sync: reference/datetime (#509)
Co-authored-by: George Peter Banyard <girgias@php.net>
Co-authored-by: Pierrick Charron <pierrick@php.net>
2023-06-27 01:05:29 +01:00
Victor
21c41e7854 Sync various Date related files (#320) 2022-12-26 02:03:46 +00:00
Sergey Panteleev
c5dc2fde87 Sync various sections (#270)
Co-authored-by: Pierrick Charron <pierrick@php.net>
Co-authored-by: George Peter Banyard <girgias@php.net>
2022-08-18 13:11:34 +01:00
George Peter Banyard
2bb1a5e734 sync part of DateTime docs with EN 2022-06-04 16:43:30 +01:00
Sergey Panteleev
8b6d995207 Sync various sections (#230) 2022-05-19 08:40:14 +01:00
Sergey Panteleev
452adc91c8 Sync with English and fix the build (#181)
Co-authored-by: George Peter Banyard <girgias@php.net>
2022-03-14 12:40:56 +00:00
Sergey Panteleev
6aa0462c4d Sync with English docs (#123) 2021-11-17 13:09:15 +00:00
George Peter Banyard
4875ecb2ae Sync DateTime docs with En 2021-09-05 15:13:01 +01:00
George Peter Banyard
576d1b1494 Remove some PHP 5 mentions
To sync with EN
Also normalize some type tags
2021-04-28 14:49:35 +01:00
Julien Falque
c3d386a475 Fix typo 2021-04-27 15:42:06 +01:00
George Peter Banyard
cb2dca10c2 Apply commit 511dd1075401d892a314b475f0985378582da799
The format char  is only available as of PHP 8.0.0.
2021-01-26 18:17:34 +00:00
George Peter Banyard
acfef32008 Apply SVN revision 352143
git-svn-id: https://svn.php.net/repository/phpdoc/fr/trunk@352154 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-21 15:59:37 +00:00
George Peter Banyard
e68f55b40e Sync French translation with English
git-svn-id: https://svn.php.net/repository/phpdoc/fr/trunk@351630 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-25 02:56:47 +00:00
George Peter Banyard
61b9bbf4bd Apply SVN revision 351135 onto French docs using diff generated from this command:
git diff --no-prefix b95d28e6ec86e4a71e012737d36ebdc1cf009180^ b95d28e6ec86e4a71e012737d36ebdc1cf009180 > somefile.diff
and applying it using
patch -p0 < somefile.diff

Updated EN Revision numbers manually

git-svn-id: https://svn.php.net/repository/phpdoc/fr/trunk@351201 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-03 22:11:37 +00:00
George Peter Banyard
f4e027dd8b Update DateTime prototypes/sync with EN revision.
git-svn-id: https://svn.php.net/repository/phpdoc/fr/trunk@350223 c90b9560-bf6c-de11-be94-00142212c4b1
2020-07-28 01:14:34 +00:00
Yannick Torres
22cca237c5 New translation
git-svn-id: https://svn.php.net/repository/phpdoc/fr/trunk@330372 c90b9560-bf6c-de11-be94-00142212c4b1
2013-05-27 14:49:00 +00:00