WPDev.one
Core Class

Language_Pack_Upgrader

class Language_Pack_Upgrader // Constructor: function Object() { [native code] }

Core class used for updating/installing language packs (translations)

Methods 7 methods

Method / Return Description
async_upgrade()
void

Asynchronously upgrades language packs after other upgrades have been made.

Parameters: $upgrader: mixed
upgrade_strings()
void

Initializes the upgrade strings.

upgrade()
(array

Upgrades a language pack.

Parameters: $update: mixed, $args: mixed
bulk_upgrade()
(array

Upgrades several language packs at once.

Parameters: $language_updates: mixed, $args: mixed
check_package()
(string

Checks that the package source contains .mo and .po files.

Parameters: $source: mixed, $remote_source: mixed
get_name_for_update()
string

Gets the name of an item being updated.

Parameters: $update: mixed
clear_destination()
(bool

Clears existing translations where this item is going to be installed into.

Parameters: $remote_destination: mixed

Properties

Property / Type Description
$result
mixed
public
No description available.
$bulk
mixed
public
No description available.

Class Information

Since Version
3.7.0
Source File
wp-admin/includes/class-language-pack-upgrader.php
Advertisement