Index: trunk/extensions/SmoothGallery/SmoothGalleryClass.php |
— | — | @@ -29,12 +29,12 @@ |
30 | 30 | $error = wfMsg( "smoothgallery-error" ); |
31 | 31 | |
32 | 32 | if ( isset( $galleryArray["missing_images"] ) && isset( $galleryArray["invalid_images"] ) ) { |
33 | | - $error .= wfMsg( "smoothgallery-no-images", implode( ", " , $galleryArray["missing_images"] , count($galleryArray["missing_images"]) ) ); |
| 33 | + $error .= wfMsg( "smoothgallery-no-images", implode( ", " , $galleryArray["missing_images"] , count($galleryArray["missing_images"]) , count($galleryArray["missing_images"]) + count($galleryArray["invalid_images"]) ) ); |
34 | 34 | $error .= wfMsg( "smoothgallery-invalid-images", implode( ", " , $galleryArray["invalid_images"] , count($galleryArray["invalid_images"]) ) ); |
35 | 35 | } else if ( isset( $galleryArray["invalid_images"] ) ) { |
36 | 36 | $error .= wfMsg( "smoothgallery-invalid-images", implode( ", " , $galleryArray["invalid_images"] , count($galleryArray["invalid_images"]) ) ); |
37 | 37 | } else if ( isset( $galleryArray["missing_images"] ) ) { |
38 | | - $error .= wfMsg( "smoothgallery-no-images", implode( ", " , $galleryArray["missing_images"] , count($galleryArray["missing_images"]) ) ); |
| 38 | + $error .= wfMsg( "smoothgallery-no-images", implode( ", " , $galleryArray["missing_images"] , count($galleryArray["missing_images"]) , count($galleryArray["missing_images"]) ) ); |
39 | 39 | } else { |
40 | 40 | $error .= wfMsg( "smoothgallery-not-found" ); |
41 | 41 | } |
Index: trunk/extensions/SmoothGallery/SmoothGallery.i18n.php |
— | — | @@ -20,8 +20,8 @@ |
21 | 21 | 'smoothgallery-not-found' => 'No images were added into the gallery. |
22 | 22 | Please add at least one image.', |
23 | 23 | 'smoothgallery-no-images' => 'No images were found in this gallery. |
24 | | -Make sure {{PLURAL:$2|the image|all images}} requested exist. |
25 | | -The following images were not found: $1', |
| 24 | +Make sure {{PLURAL:$3|the image|all images}} requested exist. |
| 25 | +The following {{PLURAL:$2|image|images}} were not found: $1', |
26 | 26 | 'smoothgallery-invalid-images' => 'The following requested {{PLURAL:$2|image was|images were}} of an invalid type: $1', |
27 | 27 | 'smoothgallery-unexpected-error' => 'There was an unexpected error. |
28 | 28 | Please file a bug report.', |