Skip to content

Commit

Permalink
Merge pull request #275 from wp-cli/regenerate-readme
Browse files Browse the repository at this point in the history
Regenerate README file
  • Loading branch information
schlessera authored Jul 20, 2021
2 parents 49fb6d9 + 45e1905 commit 26e171c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ wp i18n
Create a POT file for a WordPress project.

~~~
wp i18n make-pot <source> [<destination>] [--slug=<slug>] [--domain=<domain>] [--ignore-domain] [--merge[=<paths>]] [--subtract=<paths>] [--include=<paths>] [--exclude=<paths>] [--headers=<headers>] [--location] [--skip-js] [--skip-php] [--skip-block-json] [--skip-audit] [--file-comment=<file-comment>] [--package-name=<name>]
wp i18n make-pot <source> [<destination>] [--slug=<slug>] [--domain=<domain>] [--ignore-domain] [--merge[=<paths>]] [--subtract=<paths>] [--subtract-and-merge] [--include=<paths>] [--exclude=<paths>] [--headers=<headers>] [--location] [--skip-js] [--skip-php] [--skip-block-json] [--skip-theme-json] [--skip-audit] [--file-comment=<file-comment>] [--package-name=<name>]
~~~

Scans PHP and JavaScript files for translatable strings, as well as theme stylesheets and plugin files
Expand Down Expand Up @@ -66,6 +66,10 @@ if the source directory is detected as either a plugin or theme.
This can be useful when you want to create multiple POT files from the same source directory with slightly
different content and no duplicate strings between them.

[--subtract-and-merge]
Whether source code references and comments from the generated POT file should be instead added to the POT file
used for subtraction. Warning: this modifies the files passed to `--subtract`!

[--include=<paths>]
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.
Expand Down Expand Up @@ -97,6 +101,9 @@ if the source directory is detected as either a plugin or theme.
[--skip-block-json]
Skips string extraction from block.json files.

[--skip-theme-json]
Skips string extraction from theme.json files.

[--skip-audit]
Skips string audit where it tries to find possible mistakes in translatable strings. Useful when running in an
automated environment.
Expand Down

0 comments on commit 26e171c

Please sign in to comment.