- Timestamp:
- 04/30/2024 08:37:25 AM (21 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-language-pack-upgrader.php
r57381 r58062 333 333 $files = $wp_filesystem->dirlist( $remote_source ); 334 334 335 // Check to see if a .po and .mo exist in the folder. 336 $po = false; 337 $mo = false; 335 // Check to see if the expected files exist in the folder. 336 $po = false; 337 $mo = false; 338 $php = false; 338 339 foreach ( (array) $files as $file => $filedata ) { 339 340 if ( str_ends_with( $file, '.po' ) ) { … … 341 342 } elseif ( str_ends_with( $file, '.mo' ) ) { 342 343 $mo = true; 343 } 344 } elseif ( str_ends_with( $file, '.l10n.php' ) ) { 345 $php = true; 346 } 347 } 348 349 if ( $php ) { 350 return $source; 344 351 } 345 352 … … 349 356 $this->strings['incompatible_archive'], 350 357 sprintf( 351 /* translators: 1: .po, 2: .mo */352 __( 'The language pack is missing either the %1$s or %2$s files.' ),358 /* translators: 1: .po, 2: .mo, 3: .l10n.php */ 359 __( 'The language pack is missing either the %1$s, %2$s, or %3$s files.' ), 353 360 '<code>.po</code>', 354 '<code>.mo</code>' 361 '<code>.mo</code>', 362 '<code>.l10n.php</code>' 355 363 ) 356 364 );
Note: See TracChangeset
for help on using the changeset viewer.