equal
deleted
inserted
replaced
45 public function before() { |
45 public function before() { |
46 $name = $this->upgrader->get_name_for_update( $this->language_update ); |
46 $name = $this->upgrader->get_name_for_update( $this->language_update ); |
47 |
47 |
48 echo '<div class="update-messages lp-show-latest">'; |
48 echo '<div class="update-messages lp-show-latest">'; |
49 |
49 |
50 /* translators: 1: name of project, 2: language */ |
50 /* translators: 1: Project name (plugin, theme, or WordPress), 2: Language. */ |
51 printf( '<h2>' . __( 'Updating translations for %1$s (%2$s)…' ) . '</h2>', $name, $this->language_update->language ); |
51 printf( '<h2>' . __( 'Updating translations for %1$s (%2$s)…' ) . '</h2>', $name, $this->language_update->language ); |
52 } |
52 } |
53 |
53 |
54 /** |
54 /** |
55 * @param string|WP_Error $error |
55 * @param string|WP_Error $error |
68 |
68 |
69 /** |
69 /** |
70 */ |
70 */ |
71 public function bulk_footer() { |
71 public function bulk_footer() { |
72 $this->decrement_update_count( 'translation' ); |
72 $this->decrement_update_count( 'translation' ); |
73 $update_actions = array(); |
73 |
74 $update_actions['updates_page'] = '<a href="' . self_admin_url( 'update-core.php' ) . '" target="_parent">' . __( 'Return to WordPress Updates page' ) . '</a>'; |
74 $update_actions = array( |
|
75 'updates_page' => sprintf( |
|
76 '<a href="%s" target="_parent">%s</a>', |
|
77 self_admin_url( 'update-core.php' ), |
|
78 __( 'Return to WordPress Updates page' ) |
|
79 ), |
|
80 ); |
75 |
81 |
76 /** |
82 /** |
77 * Filters the list of action links available following a translations update. |
83 * Filters the list of action links available following a translations update. |
78 * |
84 * |
79 * @since 3.7.0 |
85 * @since 3.7.0 |