An open API service indexing awesome lists of open source software.

https://github.com/toolstack/gp-auto-extract

A plugin for GlotPress that automatically extracts strings from remote source repo.
https://github.com/toolstack/gp-auto-extract

glotpress glotpress-plugin wordpress wordpress-plugin

Last synced: 19 days ago
JSON representation

A plugin for GlotPress that automatically extracts strings from remote source repo.

Awesome Lists containing this project

README

        

# GP Auto Extract #
**Contributors:** [gregross](https://profiles.wordpress.org/gregross/), [brazabr](https://profiles.wordpress.org/brazabr/)
**Donate link:** http://toolstack.com/donate
**Plugin URI:** http://glot-o-matic.com/gp-auto-extract
**Author URI:** http://toolstack.com
**Tags:** translation, glotpress
**Requires at least:** 4.4
**Tested up to:** 6.6
**Stable tag:** 1.1
**License:** GPLv2
**License URI:** http://www.gnu.org/licenses/gpl-2.0.html

A plugin for GlotPress that adds an option to extract original strings from a remote source repo directly in to a GlotPress project.

## Description ##

A plugin for [GlotPress](https://wordpress.org/plugins/glotpress) that adds an option to extract original strings from a remote source repo directly in to a GlotPress project.

Features:

1. WordPress, GitHub and custom sources.
2. Private GitHub repos with HTTP basic authentication.
3. GitHub tags and branches.
4. 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:

1. Source Type
2. Setting
3. Branch/Tag (for GitHub repos only)
4. Use HTTP Basic Authentication (for GitHub repos only)
4. Import from existing file

Each source type has the following settings associated with it:

1. None - Don't auto extract this project.
2. WordPress.org - the slug for the WordPress.org SVN repo to extract from (for example "gp-auto-extract" for this plugin).
3. GitHub - The user name and repo name on GitHub to extract from (for example "toolstack/gp-auto-extract").
4. 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.

## Installation ##

Install from the WordPress plugin directory.

## Frequently Asked Questions ##

### Does the plugin support webhooks for remote repos? ###

Not at this time.

### I want to include my readme headers in the extract, is that possible? ###

No, but you can work around the issue.

You might want to do this if the plugin your translating only exists on GitHub or some other location, the plugin description header line is used in the WordPress plugin page to translate the description into the display language.

To work around this issue, create a "fake" source file, something like "extra-strings.php", and simply add the strings you want to a translation line, the file would look something like:

```