Skip to content
This repository has been archived by the owner on Jul 12, 2024. It is now read-only.

Commit

Permalink
Fix string display when only 1 notice is present
Browse files Browse the repository at this point in the history
  • Loading branch information
justinshreve committed Jun 1, 2018
1 parent 253cfc0 commit 3649846
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions client/components/header/wordpress-notices.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
/**
* External dependencies
*/
import { __, sprintf } from '@wordpress/i18n';
import { Component } from '@wordpress/element';
import { IconButton } from '@wordpress/components';
import { sprintf, _n } from '@wordpress/i18n';

class WordPressNotices extends Component {
constructor() {
Expand Down Expand Up @@ -98,7 +98,10 @@ class WordPressNotices extends Component {
<IconButton
onClick={ this.onToggle }
icon="wordpress-alt"
label={ sprintf( __( 'View %d WordPress Notices', 'woo-dash' ), count ) }
label={ sprintf(
_n( 'View %d WordPress Notice', 'View %d WordPress Notices', count, 'woo-dash' ),
count
) }
aria-expanded={ noticesOpen }
/>
);
Expand Down

0 comments on commit 3649846

Please sign in to comment.