--- a/wp/wp-admin/includes/class-language-pack-upgrader-skin.php Tue Oct 22 16:11:46 2019 +0200
+++ b/wp/wp-admin/includes/class-language-pack-upgrader-skin.php Tue Dec 15 13:49:49 2020 +0100
@@ -47,7 +47,7 @@
echo '<div class="update-messages lp-show-latest">';
- /* translators: 1: name of project, 2: language */
+ /* 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 );
}
@@ -70,8 +70,14 @@
*/
public function bulk_footer() {
$this->decrement_update_count( 'translation' );
- $update_actions = array();
- $update_actions['updates_page'] = '<a href="' . self_admin_url( 'update-core.php' ) . '" target="_parent">' . __( 'Return to WordPress Updates page' ) . '</a>';
+
+ $update_actions = array(
+ 'updates_page' => sprintf(
+ '<a href="%s" target="_parent">%s</a>',
+ self_admin_url( 'update-core.php' ),
+ __( 'Return to WordPress Updates page' )
+ ),
+ );
/**
* Filters the list of action links available following a translations update.