Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wp-pot/wp-pot-cli
Run wp-pot script via cli
https://github.com/wp-pot/wp-pot-cli
cli hacktoberfest pot translator wordpress wp-pot
Last synced: 3 months ago
JSON representation
Run wp-pot script via cli
- Host: GitHub
- URL: https://github.com/wp-pot/wp-pot-cli
- Owner: wp-pot
- License: mit
- Created: 2016-12-13T17:17:44.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2024-04-25T08:36:38.000Z (9 months ago)
- Last Synced: 2024-04-25T09:41:22.069Z (9 months ago)
- Topics: cli, hacktoberfest, pot, translator, wordpress, wp-pot
- Language: JavaScript
- Homepage:
- Size: 1.09 MB
- Stars: 37
- Watchers: 3
- Forks: 5
- Open Issues: 10
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
README
[![GitHub Workflow Status](https://img.shields.io/github/workflow/status/wp-pot/wp-pot-cli/Node%20CI/master)](https://github.com/wp-pot/wp-pot-cli/actions)
> Generate pot file for WordPress plugins and themes
## Like my work and want to say thanks?
Do it here:## Install
```
$ npm install --global wp-pot-cli
```## Usage
```
$ wp-pot --helpGenerate pot-files for WordPress localization
Usage
$ wp-potOptions
--bug-report, -b Header with URL for reporting translation bugs
--comment-keyword, -c Comment keyword
--dest-file, -o Destination file
--domain, -d Domain to retrieve the translated text
--last-translator, -l Name and email address of the last translator (ex: John Doe )
--no-file-paths, Don't write file paths to pot file
--relative-to, -r Path to folder that file comments should be relative to
--src, -s Source files, multiple sources is allowed
--team, -t Name and email address of the translation team (ex: Team )
--package, -p Package name
--write-file, -w Write fileExamples
$ wp-pot --src 'src/*.php' --src 'extras/*.php'
```## Related
- [gulp-wp-pot](https://github.com/wp-pot/gulp-wp-pot) - Run wp-pot with gulp
- [wp-pot](https://github.com/wp-pot/wp-pot) - API for this module## License
MIT © [Rasmus Bengtsson](https://github.com/rasmusbe)