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"] ) ); |
34 | | - $error .= wfMsg( "smoothgallery-invalid-images", implode( ", " , $galleryArray["invalid_images"] ) ); |
| 33 | + $error .= wfMsg( "smoothgallery-no-images", implode( ", " , $galleryArray["missing_images"] , count($galleryArray["missing_images"]) ) ); |
| 34 | + $error .= wfMsg( "smoothgallery-invalid-images", implode( ", " , $galleryArray["invalid_images"] , count($galleryArray["invalid_images"]) ) ); |
35 | 35 | } else if ( isset( $galleryArray["invalid_images"] ) ) { |
36 | | - $error .= wfMsg( "smoothgallery-invalid-images", implode( ", " , $galleryArray["invalid_images"] ) ); |
| 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"] ) ); |
| 38 | + $error .= wfMsg( "smoothgallery-no-images", implode( ", " , $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,9 +20,9 @@ |
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 all images requested exist. |
| 24 | +Make sure {{PLURAL:$2|the image|all images}} requested exist. |
25 | 25 | The following images were not found: $1', |
26 | | - 'smoothgallery-invalid-images' => 'The following requested images were of an invalid type: $1', |
| 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.', |
29 | 29 | 'smoothgallery-javascript-disabled' => 'Javascript is required to view this gallery properly.', |