Skip to content
Translations for the GitHub Updater plugin
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

GitHub Updater Translations

Official Language Pack Repository for GitHub Updater plugin

Translators, please make PRs here. You only need to submit PRs for the .po files, .mo files will be generated automatically. Please add the .po files to the originals folder. Thanks.

Uses Language_Pack_Maker installed via composer to create a directory of zip archives of translation .mo/.po files and a language-pack.json file containing data to pass to GitHub Updater.

The format of the generated JSON file is as follows.

    "translations": [
        "type": "(plugin|theme) from GitHub Updater",
        "slug": "{$slug}",
        "language": "en_US",
        "version": "from GitHub Updater",
        "updated": "PO-Revision-Date from .po file header",
        "package": "/packages/",
        "autoupdate": "1"

The update transient expects the $transient->translations in the following format.

$transient->translations( array(
	0 => array(
		'type'       => 'plugin',
		'slug'       => 'akismet',
		'language'   => 'de_CH',
		'version'    => '3.1.11',
		'updated'    => '2016-05-12 18:04:38',
		'package'    => '',
		'autoupdate' => 1,

) );

GitHub Updater merges the correlative plugin or theme data with the data retrieved from the language-pack.json to add data to the update transient.

To utilize the Language Pack Creator, you will need to open and run http://localhost/<my-translation-repo>/vendor/autoload.php in localhost, or composer update in the repository root. This will create the necessary .po, .mo, and zipfiles and language-pack.json.

You can’t perform that action at this time.