rebase on oct-10-2023
This commit is contained in:
@@ -105,7 +105,7 @@ class Language_Pack_Upgrader extends WP_Upgrader {
|
||||
}
|
||||
|
||||
/**
|
||||
* Initialize the upgrade strings.
|
||||
* Initializes the upgrade strings.
|
||||
*
|
||||
* @since 3.7.0
|
||||
*/
|
||||
@@ -114,7 +114,7 @@ class Language_Pack_Upgrader extends WP_Upgrader {
|
||||
$this->strings['up_to_date'] = __( 'Your translations are all up to date.' );
|
||||
$this->strings['no_package'] = __( 'Update package not available.' );
|
||||
/* translators: %s: Package URL. */
|
||||
$this->strings['downloading_package'] = sprintf( __( 'Downloading translation from %s…' ), '<span class="code">%s</span>' );
|
||||
$this->strings['downloading_package'] = sprintf( __( 'Downloading translation from %s…' ), '<span class="code pre">%s</span>' );
|
||||
$this->strings['unpack_package'] = __( 'Unpacking the update…' );
|
||||
$this->strings['process_failed'] = __( 'Translation update failed.' );
|
||||
$this->strings['process_success'] = __( 'Translation updated successfully.' );
|
||||
@@ -123,7 +123,7 @@ class Language_Pack_Upgrader extends WP_Upgrader {
|
||||
}
|
||||
|
||||
/**
|
||||
* Upgrade a language pack.
|
||||
* Upgrades a language pack.
|
||||
*
|
||||
* @since 3.7.0
|
||||
*
|
||||
@@ -147,7 +147,7 @@ class Language_Pack_Upgrader extends WP_Upgrader {
|
||||
}
|
||||
|
||||
/**
|
||||
* Bulk upgrade language packs.
|
||||
* Upgrades several language packs at once.
|
||||
*
|
||||
* @since 3.7.0
|
||||
*
|
||||
@@ -336,9 +336,9 @@ class Language_Pack_Upgrader extends WP_Upgrader {
|
||||
$po = false;
|
||||
$mo = false;
|
||||
foreach ( (array) $files as $file => $filedata ) {
|
||||
if ( '.po' === substr( $file, -3 ) ) {
|
||||
if ( str_ends_with( $file, '.po' ) ) {
|
||||
$po = true;
|
||||
} elseif ( '.mo' === substr( $file, -3 ) ) {
|
||||
} elseif ( str_ends_with( $file, '.mo' ) ) {
|
||||
$mo = true;
|
||||
}
|
||||
}
|
||||
@@ -360,7 +360,7 @@ class Language_Pack_Upgrader extends WP_Upgrader {
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the name of an item being updated.
|
||||
* Gets the name of an item being updated.
|
||||
*
|
||||
* @since 3.7.0
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user