-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 51c5423
Showing
8 changed files
with
662 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/vendor/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
Modern Translation File Generator for WordPress | ||
=============================================== | ||
|
||
Previously WordPress developers needed to use `makepot.php` to generate .po files | ||
necessary for translation. | ||
|
||
This updated WP CLI command allows you to generate files | ||
|
||
|
||
[--type=<string>] | ||
: The output file type. | ||
--- | ||
default: po | ||
options: | ||
- csv | ||
- csvdict | ||
- json | ||
- jsondict | ||
- mo | ||
- php | ||
- po | ||
- jed | ||
- xliff | ||
- yaml | ||
- yamldict | ||
--- | ||
|
||
[--locale=<string>] | ||
: The language the original strings are in. | ||
--- | ||
default: en_US | ||
--- | ||
* | ||
[--locales=<array>] | ||
: A list of comma separated locale codes to generate translation ready files for. | ||
Alternatively can be a text file containing locales on separate lines. | ||
--- | ||
default: en_US | ||
--- | ||
* | ||
[--domain=<string>] | ||
: The text domain to extract strings for. | ||
--- | ||
default: 'default' | ||
--- | ||
* | ||
[--extract-from=<string>] | ||
: The path to extract from, defaults to the entire wp-content directory. | ||
Defaults to WP_CONTENT_DIR | ||
* | ||
[--extract-to=<string>] | ||
: The full or relative path to a directory to save files to. | ||
Defaults to a directory in languages folder named after the textdomain. | ||
eg. WP_CONTENT_DIR . '/languages/default/' | ||
* | ||
[--verbose] | ||
: Verbose logging output. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"name": "roborourke/wp-l10n-gen", | ||
"description": "Modern translation file generator for WordPress", | ||
"type": "project", | ||
"require": { | ||
"gettext/gettext": "^4.4" | ||
}, | ||
"license": "GPL-3.0", | ||
"authors": [ | ||
{ | ||
"name": "Robert O'Rourke", | ||
"email": "[email protected]" | ||
} | ||
] | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.