Skip to content

Commit

Permalink
Convert few more strings to FormattedMessage zotero#82
Browse files Browse the repository at this point in the history
  • Loading branch information
tnajdek committed Aug 27, 2021
1 parent fe848c1 commit 8119f7d
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/js/components/bibliographySection.jsx
Expand Up @@ -138,7 +138,14 @@ const BibliographySection = props => {
confirmLabel="Continue"
>
<p>
There is an existing bibliography with { localCitationsCount } { localCitationsCount > 1 ? 'entries' : 'entry' } in the editor. If you continue, the existing bibliography will be replaced with this one.
<FormattedMessage
id="zbib.bibliography.override"
defaultMessage="There is an existing bibliography with {localCitationsCount, plural,
one {# entry}
other {# entries}
} in the editor. If you continue, the existing bibliography will be replaced with this one."
values={ { localCitationsCount } }
/>
</p>
</Confirmation>
</React.Fragment>
Expand All @@ -148,7 +155,7 @@ const BibliographySection = props => {
<Button
onClick={ handleEditBibliography }
className="btn-sm btn-outline-secondary">
Edit Bibliography
<FormattedMessage id="zbib.bibliography.edit" defaultMessage="Edit Bibliography" />
</Button>
) }
</div>
Expand Down

0 comments on commit 8119f7d

Please sign in to comment.