1059 Commits

Author SHA1 Message Date
Louis-Arnaud
25287dfd9f Add --lang and file listing to sync XML tools (#275)
* Add --lang= parameter and simple file listing to sync XML tools

Allow all qaxml-*.php scripts to accept --lang=XX to specify the
target language directly, without requiring temp/lang from
configure.php. Also accept file paths as positional arguments
for checking specific files instead of the full translation tree.

Existing behavior without parameters is preserved. Relates to #199.

* Rename $files to $filterFiles and warn on missing source files

Address review feedback: rename parameter for clarity and add
STDERR warning when a command-line file is not found in sourceDir.
2026-02-12 17:22:52 -03:00
Yoshinari Takaoka
845f7c4c93 Deprecated backtick operator with shell_exec() for PHP 8.5 (for revcheck.php)
related to #267
2025-12-28 22:22:42 +09:00
Luffy
7a561bef14 Update XML class reference and improve type hinting in function signatures (#252) 2025-09-27 12:18:42 +01:00
Jakub Vrána
048256b6c9 Remove $Revision$ (#240)
We don't use SVN anymore.
2025-05-01 02:12:28 +01:00
André L F S Bacci
67c9c84461 Better hint for .xmlfragmentdir directory marker 2025-04-23 10:15:51 -03:00
alfsb
342c72dd63 Post check individual XML files for know issues (#241)
* Post check individual XML files for know issues
* Autofix option for simple encoding issues
* Remove debug output
* Hint the complete script path
* Hint the effect of failed XInclude
2025-04-22 10:55:45 -03:00
André L F S Bacci
362cd05c3b Revert variable partial rename 2025-03-13 16:56:53 -03:00
alfsb
8f811a3700 Fix unstable add/del ignores (#238) 2025-03-13 16:19:24 -03:00
alfsb
f91fb1549a Faster file listing (#236)
* Faster file listing
* Review.

Co-authored-by: Kamil Tekiela <tekiela246@gmail.com>
2025-03-13 16:03:17 -03:00
alfsb
281ee98460 Deprecate old qaxml tools (#228) 2025-03-13 15:47:01 -03:00
alfsb
a26c5c9fe8 Command line tools for XML sync testing between languages (#222)
* Command line tool for XML sync testing between languages: tags, revtag, PI, ws
* Modernize array() usage.
* Review
2025-03-07 08:36:21 -03:00
alfsb
80d13140e0 Argument parsing refactor and urgent mode (#221)
* Coordinate command line on ArgvParser class
* Urgent option to focus on avoiding or fixing translations manual builds
* Command line option to ignore entity by name

Co-authored-by: André L F S Bacci <ae@php.net>
Co-authored-by: Kamil Tekiela <tekiela246@gmail.com>
2025-02-14 11:19:49 -03:00
alfsb
c63809f4b6 Command line tool for XML sync testing between languages: entities (#219) 2025-02-10 09:29:26 -03:00
alfsb
181ecbe9a6 Make broken detection strict, more descriptive messages (#220) 2025-02-10 09:28:55 -03:00
alfsb
0ae92dd198 Create separated files for directory file-entities (#218) 2025-02-07 09:23:34 -03:00
alfsb
1768961358 Command line tool for XML sync testing between languages: attributes (#215) 2025-02-06 10:08:45 -03:00
alfsb
a4884fb7b7 Remove backports, alert for insensitive file systems, and bundled file entity for directories (#213)
* Remove backport.
* Detect build breakage on case insensitive file systems
* Do not generate individual entity files for directories
* Setting documentURI cause fails on Windows
2025-02-03 09:02:39 -03:00
alfsb
b12b9bbc73 Fix Windows build (foward slashes everywhere) (#214)
Co-authored-by: André L F S Bacci <ae@php.net>
2025-01-27 10:24:53 -03:00
alfsb
e62034723f Windows related changes, ahead/behind only current branch (#207)
Co-authored-by: André L F S Bacci <ae@php.net>
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>
2025-01-20 12:01:12 -03:00
alfsb
c6be704344 New tool for detecting broken XML files (#211) 2025-01-20 11:50:24 -03:00
Leonardo Lara Rodrigues
643f7dd807 Avoid warnings in PHP 8.4 (#212) 2024-12-22 01:01:21 +01:00
alfsb
7edcafd7a1 Show non default branch in git status (#205)
Co-authored-by: André L F S Bacci <ae@php.net>
2024-12-13 06:57:09 -03:00
alfsb
df18cd280c Idempotent build: file-entities.php (#201) 2024-12-10 16:49:38 -03:00
Niels Dossche
b31cc91792 Skip enum definitions in checkSectionErrors() (#195)
They don't follow the normal rules.
2024-12-02 20:21:22 +01:00
alfsb
d53ce70544 Remove unused variables, fix disabled QA sync tools (#190)
Co-authored-by: André L F S Bacci <ae@php.net>
2024-11-26 08:31:46 -03:00
alfsb
df44b2df8a Rewrite and document git log parsing (#180) 2024-11-25 10:44:29 -03:00
Gina Peter Banyard
b76bf49e01 Ignore section order script for PDO::connect() as XInclude is used 2024-11-20 23:25:24 +00:00
alfsb
eba80257e2 Avoid marking files as outdated on multiple [skip-revcheck] (#178)
Changes revcheck to consider many hashes, instead of up to two. Fixes bumping files as Outdated on [skip-revcheck] runs.
2024-11-18 07:19:19 -03:00
alfsb
b457f42b9a Remove backported revcheck compatibility (#176)
includes `chmonly` and some `reserved.xml`  as tracked files for translation. Changes counting on translators table.
2024-11-14 07:32:43 -03:00
alfsb
bee795d4d5 Single source revcheck code/data (#174)
Rewrite of `doc-base`'s `revcheck.php`, removing code duplication.

* DTO for revcheck data.
* Preparation for revcheck data exporting.
* Backport loose and fixed [skip-revcheck] modes
* Additional revcheck data.
* Revcheck deduplication: clean up, header.
* Revcheck deduplication: translators, file summary.
* Revcheck deduplication: old/wip files.
* Move backport code and docs to a separate file.
* Revcheck deduplication: backport couting behaviour.
* Revcheck deduplication: more backport couting woes.
* Revcheck deduplication: notinen, revtag, unstranslated.
* Revcheck deduplication: ignore, regex, xml.
* Revcheck deduplication: adds/dels, clean up.
* Revcheck deduplicatoin: genrevdb.php.
* Revcheck deduplicatoin: genrevdb.php.
* More backport and small fixes.
* Review changes/fixes.
* Better log messages.
* Remove unrelated filter.
---------
Co-authored-by: André L F S Bacci <ae@php.net>
2024-11-11 09:02:11 -03:00
André L F S Bacci
7c6af3816c qaxml.t.php: tests for spurious ws in some tags. 2024-11-07 12:25:56 -03:00
André L F S Bacci
a2f73fbd9d Ignorable bookinfo.xml, qaxml.t 2024-11-06 17:28:00 -03:00
Gina Peter Banyard
6e94db8e12 Remove developer book from DocGen (#172) 2024-10-27 17:15:30 +00:00
André L F S Bacci
84532c32eb Some translation.xml omit the vcs attribute. 2024-10-24 19:05:18 -03:00
Jim Winstead
f9c436ab83 It's https://doc.php.net now, not just http: (#171) 2024-10-24 14:34:50 -07:00
Gina Peter Banyard
12257c5108 Update templates for documentation pages (#166) 2024-10-24 22:31:40 +01:00
André L F S Bacci
17463fe026 Output buffer 'matter', alternate printing. 2024-10-22 14:47:38 -03:00
André L F S Bacci
9a070eedcd Output buffer 'matter' simplification. 2024-10-22 13:16:52 -03:00
André L F S Bacci
bdd9ffb519 Footer support. 2024-10-22 08:20:19 -03:00
André L F S Bacci
9dbbceeb4e Footer support, clean up. 2024-10-22 08:20:19 -03:00
Jim Winstead
d085a579fe Consolidate documentation about documentation into docs directory (#159) 2024-10-21 17:53:32 -07:00
haszi
7622734d48 Add file modification history update script (#121)
* Add file modification history update script

* Make documentation and history file paths command line arguments

---------

Co-authored-by: haszi <haszika80@gmail.com>
2024-10-21 15:17:58 +01:00
Jim Winstead
c0495be415 Use http: instead of https: for downloading CHMs (#163) 2024-10-16 17:52:57 -07:00
André L F S Bacci
5b983c46e1 Improve documentation. 2024-10-16 18:31:07 -03:00
Jim Winstead
279452f9c6 Handle extensions state (GH-145)
* Pull state for extensions, too.

* Detect bogus state, too
2024-08-07 21:32:36 +02:00
haszi
5fce534e01 Fix entity sorting (#134)
Remove trailing semicolon from function entities and add them after sorting. Previously, sorting entities with trailing semicolons would result in functions not being in a natural order (e.g. curl_setopt_array would come before curl_setopt because curl_setopt; comes before curl_setopt_array;).

Co-authored-by: haszi <haszika80@gmail.com>
2024-07-26 02:44:15 +01:00
Maciej Sobaczewski
d5ecfd2d42 Make scripts/qa/section-order.php support new class reference syntax
This fixes the CI failure.
2024-06-15 01:08:19 +02:00
Maciej Sobaczewski
a046d19e2d Fix invalid iterator read in scripts/translation/qarvt.php 2024-06-15 00:39:17 +02:00
Maciej Sobaczewski
a7831a9c4b Remove write to the unused and undeclared property
This solves the deprecation warning about using dynamic properties.
Turns out the code wasn't written in legacy way but the property
was just never meant to be written as it's unused.
2024-06-15 00:35:30 +02:00
alfsb
6c3a00b68c Revcheck library and QA tools for translation synchronization  (#111)
Add QA tooling for translations to ensure they do not get out of sync.

---------

Co-authored-by: André L F S Bacci <ae@php.net>
2024-06-14 17:12:24 +01:00