https://github.com/salvadorsru/simple-pot-generator-cli
POT File Generator is a Go-based tool that .pot file for internationalization. It supports customizable input/output paths and automatically adds essential POT requeriments.
https://github.com/salvadorsru/simple-pot-generator-cli
cli go pot wordpress
Last synced: about 2 months ago
JSON representation
POT File Generator is a Go-based tool that .pot file for internationalization. It supports customizable input/output paths and automatically adds essential POT requeriments.
- Host: GitHub
- URL: https://github.com/salvadorsru/simple-pot-generator-cli
- Owner: salvadorsru
- License: mit
- Created: 2024-08-25T21:52:20.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-26T08:35:59.000Z (almost 2 years ago)
- Last Synced: 2025-07-25T18:02:22.578Z (11 months ago)
- Topics: cli, go, pot, wordpress
- Language: Go
- Homepage:
- Size: 13.7 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Simple Pot Generator CLI
==================
This Go script scans a specified directory for files with specific extensions and generates a POT file with the strings found in those files.
Compilation
-----------
### On Linux and macOS
go build -o
### On Windows
go build -o .exe
Usage
-----
Once compiled, you can run the script using the following syntax:
./ -i /example/path -o output-file.pot -p extensions
Where:
* `-i`: Path to the directory to scan. If not specified, the current directory will be used.
* `-o`: Name of the output POT file. The default is `to-translate.pot`.
* `-p`: File extensions to search for, separated by slashes. The default value is `php/js`.
* `-h`: Displays the script help.
### Example Usage
To scan a directory named `src` and generate a POT file with strings from files with `php` and `js` extensions:
./ -i /project-path -o translation.pot
Contributions
-------------
Contributions are welcome. Please fork the repository and submit a pull request with your changes.
License
-------
This project is licensed under the MIT License.