Skip to content

Commit

Permalink
Plugin Notices: fix plurals on RECEIVE_PLUGINS error notice (#24329)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsnajdr authored Apr 19, 2018
1 parent e70b441 commit 8ec2cba
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions client/lib/plugins/notices.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -759,9 +759,14 @@ export default {
}
break;
case 'RECEIVE_PLUGINS':
return this.props.translate( 'Error fetching plugins on %(numberOfSites)d sites.', {
args: translateArg,
} );
return i18n.translate(
'Error fetching plugins on %(numberOfSites)d site.',
'Error fetching plugins on %(numberOfSites)d sites.',
{
count: translateArg.numberOfSites,
args: translateArg,
}
);
}
},

Expand Down

0 comments on commit 8ec2cba

Please sign in to comment.