Download the PHP package afragen/translations-updater without Composer
On this page you can find all versions of the php package afragen/translations-updater. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download afragen/translations-updater
More information about afragen/translations-updater
Files in afragen/translations-updater
Package translations-updater
Short Description This framework provides automatic decoupled languate pack updates from a public repository for your WordPress plugin or theme.
License MIT
Informations about the package translations-updater
Translations Updater
- Contributors: Andy Fragen
- Tags: plugins, themes, edd software licensing, language pack, updater
- Requires at least: 4.6
- Requires PHP: 5.4
- Donate link: http://thefragens.com/translations-updater-donate
- License: MIT
- License URI: http://www.opensource.org/licenses/MIT
Description
This framework allows for decoupled language pack updates for your WordPress plugins or themes that are hosted on public repositories in GitHub, Bitbucket, GitLab, or Gitea.
The URI should point to a repository that contains the translations files. Refer to Git Updater Translations as an example. It is created using the Language Pack Maker. The repo must be a public repo.
Usage
Install via Composer: composer require afragen/translations-updater:^1
Prior to release use the following command
composer require afragen/translations-updater:dev-<branch>
currently dev-master
Add require_once __DIR__ . '/vendor/autoload.php';
to the main plugin file or theme's functions.php file.
A configuration array with the following format is needed. All array elements are required.
If you wish to delete the data stored in the options table associated with this framework you will need to issue the following command.
EDD Software Licensing Usage
If using this framework with EDD Software Licensing you will need to update to the latest versions of the updaters in the EDD Software Licensing sample code to ensure the appropriate action hooks are present.
You will need to add two key/value pairs to your setup array similar to the following,
You will need to include the following command to your bootstrap file to activate the updater.
Plugins
You must add two additional key/value pairs to the setup array in your EDD_SL_Plugin_Updater
setup. The array will be similar to the following from the edd-sample-plugin.php
file.
Themes
You must add two additional key/value pairs to the setup array in your EDD_Theme_Updater_Admin
setup. The array will be similar to the following from the edd-sample-theme/updater/theme-updater.php
file.