'', 'nonce' => '', 'title' => __( 'Update Translations' ), 'skip_header_footer' => false ); $args = wp_parse_args( $args, $defaults ); if ( $args['skip_header_footer'] ) { $this->done_header = true; $this->done_footer = true; $this->display_footer_actions = false; } parent::__construct( $args ); } /** * @access public */ public function before() { $name = $this->upgrader->get_name_for_update( $this->language_update ); echo '
'; printf( '

' . __( 'Updating translations for %1$s (%2$s)…' ) . '

', $name, $this->language_update->language ); } /** * * @param string|WP_Error $error */ public function error( $error ) { echo '
'; parent::error( $error ); echo '
'; } /** * @access public */ public function after() { echo '
'; } /** * @access public */ public function bulk_footer() { $this->decrement_update_count( 'translation' ); $update_actions = array(); $update_actions['updates_page'] = '' . __( 'Return to WordPress Updates page' ) . ''; /** * Filters the list of action links available following a translations update. * * @since 3.7.0 * * @param array $update_actions Array of translations update links. */ $update_actions = apply_filters( 'update_translations_complete_actions', $update_actions ); if ( $update_actions && $this->display_footer_actions ) $this->feedback( implode( ' | ', $update_actions ) ); } }