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)&#8230;' ) . '</h2>', $name, $this->language_update->language );
	}

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.