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

52 Commits

Author SHA1 Message Date
Louis-Arnaud
a270861242 Fix/ref datetime traductions (#2582) 2026-03-02 15:21:23 +01:00
Louis-Arnaud
b044c3b492 Corrections de traduction reference d-f (#2554) 2026-02-28 22:54:29 +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
5755a1bd8c Style impersonnel dans reference/ (a-d) (#2539)
* style: remplacer vous/votre/vos par style impersonnel dans reference/[a-d]*
2026-02-25 11:54:29 +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
2b6f75adaa Fix typos, grammar errors, and wrong content across entire documentation (#2490) 2026-02-24 16:01:36 +01:00
Louis-Arnaud
e0759083e3 Translation review 2026-02-19 20:01:29 +01:00
Louis-Arnaud
02e6c05eea Fix doc fr review 2026-02-19 16:08:49 +01:00
Louis-Arnaud
33a1cfa96d Doc review 4 (#2473) 2026-02-17 17:26:20 +01:00
Louis-Arnaud
8815f7f536 fix: synchronisation de 37 fichiers doc-fr avec doc-en (#2466)
Corrections apportées :
- Traduction de textes restés en anglais (dbase, dir, com, yac, pdo_sqlsrv)
- Correction de noms de fonctions/constantes (stream_set_chunk_size, SQLT_BFILEE/CFILEE)
- Remplacement des types traduits par leurs noms PHP (ressource->resource, chaîne->string, appelable->callable)
- Mise à jour des constantes SNMP_VERSION_* vers SNMP::VERSION_* (9 fichiers)
- Correction des noms de paramètres obsolètes (ngettext, snmp::get)
- Suppression de texte dupliqué EN/FR (com.xml, com-event-sink.xml, rewinddir.xml)
- Correction de balises XML (literal dans liens RFC zlib, literal autour de 0 dans gmagick)
- Ajout de contenu manquant (apache virtual entity, install/intro serveurs iPlanet)
- Corrections mineures (espaces manquants, virgules, ligne dupliquée, formatage)
- Correction du nom binaire CGI sapi/cgi/php -> sapi/cgi/php-cgi
- Suppression des guillemets autour des valeurs numériques dans apcu/ini.xml
2026-02-12 14:52:04 +01:00
Louis-Arnaud
c44843ee2d Fix/reference datetime datetimeinterface gettimestamp sync en (#2437) 2026-02-06 18:56:56 +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
d52b66a2f2 Sync datetime with EN 2025-10-13 13:58:14 +02:00
Pierre Ambroise
4b758ef3b6 Datetime sync with EN 2025-10-06 14:24:07 +02:00
Pierre Ambroise
67496f7d3b Translate datetimeinferface serialize and unserialize methods 2025-05-04 10:19:06 +02:00
Aurelie-feyzin
2a87d7fbbf Update datetimeinterface (#1908)
Change translation to 'o' format
2024-12-07 20:13:59 +00:00
David CARLIER
4ae9898af5 Datetime sync with EN (#1510) 2024-09-26 21:18:00 +01:00
David CARLIER
4f44db6bf0 datetimeinterface sync with EN (#1461) 2024-09-15 22:28:19 +01:00
David CARLIER
2315ef3217 datetime sync with EN (#1415) 2024-09-02 20:49:53 +01: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
Gina Peter Banyard
38da86a924 Sync datetime section with EN 2023-11-21 22:36:23 +00:00
Pierrick Charron
e63335f8c4 Update forgotten revcheck 2023-08-25 18:29:46 -04:00
Pierrick Charron
1014e87ee0 Sync reference/datetime/datetimeinterface/diff.xml 2023-08-25 15:34:51 -04: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
Victor
b79d51e7b9 Sync DateTime section (#288)
Sync DateTime section
2022-10-08 18:52:03 +01: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
Sergey Panteleev
1e5370029f Sync various sections (#257)
Co-authored-by: George Peter Banyard <girgias@php.net>
2022-07-08 11:10:02 +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
George Peter Banyard
d346de054c Sync datetime docs with EN 2022-01-10 19:49:48 +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
lugus
8c0a867de5 docs(datetime): fix typo 2021-05-27 15:44:13 +01:00
George Peter Banyard
f386a4b648 Remove PHP 5 mentions in datetime ext 2021-05-20 14:37:24 +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
2fca102498 Apply commit c2120bd346716d6b7fc7cf777a2b0717f7b45f5f
Update some methodsynopses
2021-01-20 12:00:14 +00:00
George Peter Banyard
ab8dbc97a9 Sync with EN
Drive by typo fixes
2021-01-08 02:45:55 +00:00
George Peter Banyard
c7617c3665 Sync FR with EN
git-svn-id: https://svn.php.net/repository/phpdoc/fr/trunk@352246 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-28 16:50:37 +00:00
George Peter Banyard
53b24d9ef9 Sync FR with EN
git-svn-id: https://svn.php.net/repository/phpdoc/fr/trunk@352159 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-21 21:47:59 +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
Jean-Baptiste Nahan
13a5eab576 Sync with EN
git-svn-id: https://svn.php.net/repository/phpdoc/fr/trunk@345028 c90b9560-bf6c-de11-be94-00142212c4b1
2018-05-16 21:16:23 +00:00