From 084e774d1197e499301fb09c3ef73f4bc96d4bb4 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 21 Apr 2026 08:39:33 +0000 Subject: [PATCH 1/4] Initial plan From 276e7dd4f30b5c07de66e718c0c1d7bdd9b85457 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 21 Apr 2026 08:43:21 +0000 Subject: [PATCH 2/4] Fix glob pattern examples to use quotes to prevent shell expansion Agent-Logs-Url: https://github.com/wp-cli/i18n-command/sessions/7804f419-f086-4ce0-b24d-7a1dc23a7737 Co-authored-by: swissspidy <841956+swissspidy@users.noreply.github.com> --- README.md | 6 +++--- src/AuditCommand.php | 2 +- src/MakePotCommand.php | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index f0afba4..420b8a6 100644 --- a/README.md +++ b/README.md @@ -59,7 +59,7 @@ Scans PHP, Blade-PHP and JavaScript files for translatable strings to find possi [--exclude=] Comma-separated list of files and paths that should be ignored for string extraction. For example, `--exclude=.github,myfile.php` would ignore any strings found within `myfile.php` or the `.github` - folder. Simple glob patterns can be used, i.e. `--exclude=foo-*.php` excludes any PHP file with the `foo-` + folder. Simple glob patterns can be used, i.e. `--exclude="foo-*.php"` excludes any PHP file with the `foo-` prefix. Leading and trailing slashes are ignored, i.e. `/my/directory/` is the same as `my/directory`. The following files and folders are always excluded: node_modules, .git, .svn, .CVS, .hg, vendor, *.min.js, test, tests. @@ -149,13 +149,13 @@ if the source directory is detected as either a plugin or theme. Comma-separated list of files and paths that should be used for string extraction. If provided, only these files and folders will be taken into account for string extraction. For example, `--include="src,my-file.php` will ignore anything besides `my-file.php` and files in the `src` - directory. Simple glob patterns can be used, i.e. `--include=foo-*.php` includes any PHP file with the `foo-` + directory. Simple glob patterns can be used, i.e. `--include="foo-*.php"` includes any PHP file with the `foo-` prefix. Leading and trailing slashes are ignored, i.e. `/my/directory/` is the same as `my/directory`. [--exclude=] Comma-separated list of files and paths that should be skipped for string extraction. For example, `--exclude=.github,myfile.php` would ignore any strings found within `myfile.php` or the `.github` - folder. Simple glob patterns can be used, i.e. `--exclude=foo-*.php` excludes any PHP file with the `foo-` + folder. Simple glob patterns can be used, i.e. `--exclude="foo-*.php"` excludes any PHP file with the `foo-` prefix. Leading and trailing slashes are ignored, i.e. `/my/directory/` is the same as `my/directory`. The following files and folders are always excluded: node_modules, .git, .svn, .CVS, .hg, vendor, *.min.js. diff --git a/src/AuditCommand.php b/src/AuditCommand.php index 43910b6..dcdf1c3 100644 --- a/src/AuditCommand.php +++ b/src/AuditCommand.php @@ -50,7 +50,7 @@ class AuditCommand extends MakePotCommand { * [--exclude=] * : Comma-separated list of files and paths that should be ignored for string extraction. * For example, `--exclude=.github,myfile.php` would ignore any strings found within `myfile.php` or the `.github` - * folder. Simple glob patterns can be used, i.e. `--exclude=foo-*.php` excludes any PHP file with the `foo-` + * folder. Simple glob patterns can be used, i.e. `--exclude="foo-*.php"` excludes any PHP file with the `foo-` * prefix. Leading and trailing slashes are ignored, i.e. `/my/directory/` is the same as `my/directory`. The * following files and folders are always excluded: node_modules, .git, .svn, .CVS, .hg, vendor, *.min.js, test, tests. * diff --git a/src/MakePotCommand.php b/src/MakePotCommand.php index 74d9066..30ccab0 100644 --- a/src/MakePotCommand.php +++ b/src/MakePotCommand.php @@ -215,13 +215,13 @@ class MakePotCommand extends WP_CLI_Command { * : Comma-separated list of files and paths that should be used for string extraction. * If provided, only these files and folders will be taken into account for string extraction. * For example, `--include="src,my-file.php` will ignore anything besides `my-file.php` and files in the `src` - * directory. Simple glob patterns can be used, i.e. `--include=foo-*.php` includes any PHP file with the `foo-` + * directory. Simple glob patterns can be used, i.e. `--include="foo-*.php"` includes any PHP file with the `foo-` * prefix. Leading and trailing slashes are ignored, i.e. `/my/directory/` is the same as `my/directory`. * * [--exclude=] * : Comma-separated list of files and paths that should be skipped for string extraction. * For example, `--exclude=.github,myfile.php` would ignore any strings found within `myfile.php` or the `.github` - * folder. Simple glob patterns can be used, i.e. `--exclude=foo-*.php` excludes any PHP file with the `foo-` + * folder. Simple glob patterns can be used, i.e. `--exclude="foo-*.php"` excludes any PHP file with the `foo-` * prefix. Leading and trailing slashes are ignored, i.e. `/my/directory/` is the same as `my/directory`. The * following files and folders are always excluded: node_modules, .git, .svn, .CVS, .hg, vendor, *.min.js. * From 89999736e223f09e4678e4f6e1d0f444144c8e7a Mon Sep 17 00:00:00 2001 From: Pascal Birchler Date: Tue, 21 Apr 2026 11:12:06 +0200 Subject: [PATCH 3/4] Update README.md Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 420b8a6..bdd096d 100644 --- a/README.md +++ b/README.md @@ -148,7 +148,7 @@ if the source directory is detected as either a plugin or theme. [--include=] Comma-separated list of files and paths that should be used for string extraction. If provided, only these files and folders will be taken into account for string extraction. - For example, `--include="src,my-file.php` will ignore anything besides `my-file.php` and files in the `src` + For example, `--include="src,my-file.php"` will ignore anything besides `my-file.php` and files in the `src` directory. Simple glob patterns can be used, i.e. `--include="foo-*.php"` includes any PHP file with the `foo-` prefix. Leading and trailing slashes are ignored, i.e. `/my/directory/` is the same as `my/directory`. From ed9d24441fa14a7a98e5ff341b33fc6721eb04d6 Mon Sep 17 00:00:00 2001 From: Pascal Birchler Date: Tue, 21 Apr 2026 11:12:14 +0200 Subject: [PATCH 4/4] Update src/MakePotCommand.php Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- src/MakePotCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MakePotCommand.php b/src/MakePotCommand.php index 30ccab0..87c3817 100644 --- a/src/MakePotCommand.php +++ b/src/MakePotCommand.php @@ -214,7 +214,7 @@ class MakePotCommand extends WP_CLI_Command { * [--include=] * : Comma-separated list of files and paths that should be used for string extraction. * If provided, only these files and folders will be taken into account for string extraction. - * For example, `--include="src,my-file.php` will ignore anything besides `my-file.php` and files in the `src` + * For example, `--include="src,my-file.php"` will ignore anything besides `my-file.php` and files in the `src` * directory. Simple glob patterns can be used, i.e. `--include="foo-*.php"` includes any PHP file with the `foo-` * prefix. Leading and trailing slashes are ignored, i.e. `/my/directory/` is the same as `my/directory`. *