Skip to content

Create PHP file containing all i18n strings from a given source directory

License

Notifications You must be signed in to change notification settings

ibericode/wp-i18n-export

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wp-i18n-export

Parses a directory of PHP files and then prints a generated PHP file containing a collection of all calls to __(), _e(), esc_html__, esc_html_e, esc_attr__ and esc_attr_e() to stdout.

Usage

wp-i18n-export <plugin-slug> <source-directory>

Example:

wp-i18n-export koko-analytics wp-content/plugins/koko-analytics/src > strings.php

About

Create PHP file containing all i18n strings from a given source directory

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages