Language packs for AspireUpdate plugin.
Find a file
2025-06-10 11:48:01 -07:00
languages release new language packs 2025-06-10 11:48:01 -07:00
packages release new language packs 2025-06-10 11:48:01 -07:00
.gitattributes Initial commit 2024-11-12 12:25:13 -08:00
.gitignore Initial commit 2024-11-12 12:25:13 -08:00
composer.json add composer command for git add/push 2025-02-02 13:30:24 -04:00
composer.lock Initial commit 2024-11-12 12:25:13 -08:00
CONTRIBUTING.md Initial commit 2024-11-12 12:25:13 -08:00
language-pack.json release new language packs 2025-06-10 11:48:01 -07:00
README.md Update README.md 2024-11-19 09:13:38 -08:00

AspireUpdate Translations

Translators, everything here is automated to a large degree. You only need to translate on the GlotPress site. .po files will be extracted from there. .mo, .json, and .l10n.php files will be generated automatically.

AspireUpdate Translations uses Language_Pack_Maker installed via composer to create a directory of zip archives of the translation files (.mo/.po/.json/.l10n.php) and a language-pack.json file containing data to pass to Git Updater or afragen/translations-updater.

The format of the generated JSON file is as follows.

[
  {
    "translations": [
      {
        "type": "(plugin|theme) from Git Updater",
        "slug": "{$slug}",
        "language": "en_US",
        "version": "from Git Updater",
        "updated": "PO-Revision-Date from .po file header",
        "package": "/packages/git-updater-en_US.zip",
        "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'    => 'https://downloads.wordpress.org/translation/plugin/akismet/3.1.11/de_CH.zip',
		'autoupdate' => 1,

	),
) );