Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed pluralization of output when there's only one term.

  • Loading branch information...
commit 98d6caf2347bc85be6b57173c9645edcc539c1a5 1 parent 6f78c5e
@scottgonzalez authored
Showing with 6 additions and 3 deletions.
  1. +2 −2 tasks/wordpress/posts.js
  2. +4 −1 tasks/wordpress/taxonomies.js
View
4 tasks/wordpress/posts.js
@@ -141,8 +141,8 @@ grunt.registerHelper( "wordpress-validate-posts", function( dir, fn ) {
}
var msg = "Validated " + (count === 1 ?
- "one post" :
- (count + " posts"));
+ "one post." :
+ (count + " posts."));
grunt.log.writeln( msg );
fn( null );
});
View
5 tasks/wordpress/taxonomies.js
@@ -15,7 +15,10 @@ grunt.registerHelper( "wordpress-validate-terms", function( filepath, fn ) {
count = 0;
function complete() {
- grunt.log.writeln( "Validated " + count + " terms." );
+ var msg = "Validated " + (count === 1 ?
+ "one term." :
+ (count + " terms."));
+ grunt.log.writeln( msg );
fn( null );
}
Please sign in to comment.
Something went wrong with that request. Please try again.