Language_Pack_Upgrader_Skin::before() WordPress Method
This method is called before the Language_Pack_Upgrader::bulk_upgrade() method is called. It is used to check if the language pack needs to be upgraded and to display a confirmation message to the user.
Language_Pack_Upgrader_Skin::before() #
Source
File: wp-admin/includes/class-language-pack-upgrader-skin.php
public function before() { $name = $this->upgrader->get_name_for_update( $this->language_update ); echo '<div class="update-messages lp-show-latest">'; /* translators: 1: Project name (plugin, theme, or WordPress), 2: Language. */ printf( '<h2>' . __( 'Updating translations for %1$s (%2$s)…' ) . '</h2>', $name, $this->language_update->language ); }
Expand full source codeCollapse full source codeView on TracView on GitHub