A plugin for
GlotPress that adds an option to extract original strings from a remote source repo directly in to a GlotPress project.
Features:
- WordPress, GitHub and custom sources.
- Private GitHub repos with HTTP basic authentication.
- GitHub tags and branches.
- Importing for an existing extract file.
To set it up, go to Settings->GP Auto Extract in WordPress. You'll see a list of your projects in GP, you can edit the settings for each one:
- Source Type
- Setting
- Branch/Tag (for GitHub repos only)
- Use HTTP Basic Authentication (for GitHub repos only)
- Import from existing file
Each source type has the following settings associated with it:
- None - Don't auto extract this project.
- WordPress.org - the slug for the WordPress.org SVN repo to extract from (for example "gp-auto-extract" for this plugin).
- GitHub - The user name and repo name on GitHub to extract from (for example "toolstack/gp-auto-extract").
- Custom - a complete url to a ZIP file containing the source code to extract from.
Once the setting has be entered, you can save them with the button to the right and then run an extract which will update the originals in the given project from the source selected.
Install from the WordPress plugin directory.