if ( $upgrader &&
$upgrader->skin instanceof Automatic_Upgrader_Skin
) { $skin =
$upgrader->skin;
} else { $skin =
new Language_Pack_Upgrader_Skin( array
( 'skip_header_footer' => true,
) );
} $lp_upgrader =
new Language_Pack_Upgrader( $skin );
$lp_upgrader->
bulk_upgrade( $language_updates );
} /**
* Initializes the upgrade strings.
*
* @since 3.7.0
*/
public function upgrade_strings() { $this->strings
['starting_upgrade'
] =
__( 'Some of your translations need updating. Sit tight for a few more seconds while they are updated as well.'
);
$this->strings
['up_to_date'
] =
__( 'Your translations are all up to date.'
);
$this->strings
['no_package'
] =
__( 'Update package not available.'
);