diff --git a/src/components/ManifestListItem.js b/src/components/ManifestListItem.js index 12f8516d2624005235febfce05cab80ae5bea972..1b4ae7d35aa5a7793c8dfacb27ffa72feeae3585 100644 --- a/src/components/ManifestListItem.js +++ b/src/components/ManifestListItem.js @@ -135,7 +135,7 @@ export class ManifestListItem extends React.Component { </Grid> <Grid item xs={8} sm={4}> <Typography className={ns('manifest-list-item-provider')}>{provider || t('addedFromUrl')}</Typography> - <Typography>{t('numItems', { number: size })}</Typography> + <Typography>{t('numItems', { count: size, number: size })}</Typography> </Grid> <Grid item xs={4} sm={2}> diff --git a/src/components/WindowSideBarAnnotationsPanel.js b/src/components/WindowSideBarAnnotationsPanel.js index 06068abe31e400d2b9500238310850fdc64962ea..94dd831454b04554b89ea6380e7f241204d0299d 100644 --- a/src/components/WindowSideBarAnnotationsPanel.js +++ b/src/components/WindowSideBarAnnotationsPanel.js @@ -26,7 +26,7 @@ export class WindowSideBarAnnotationsPanel extends Component { titleControls={<AnnotationSettings windowId={windowId} />} > <div className={classes.section}> - <Typography component="p" variant="subtitle2">{t('showingNumAnnotations', { number: annotationCount })}</Typography> + <Typography component="p" variant="subtitle2">{t('showingNumAnnotations', { count: annotationCount, number: annotationCount })}</Typography> </div> {canvasIds.map((canvasId, index) => ( diff --git a/src/locales/en/translation.json b/src/locales/en/translation.json index 72b645b8304fb522b267772b3e63f98ff0b4568d..4065408ec5565f50b8ab22f6807af1c1c91aa13d 100644 --- a/src/locales/en/translation.json +++ b/src/locales/en/translation.json @@ -93,7 +93,8 @@ "moveCompanionWindowToRight": "Move to right", "nextCanvas": "Next item", "noItemSelected": "No item selected", - "numItems": "{{number}} items", + "numItems": "{{number}} item", + "numItems_plural": "{{number}} items", "off": "Off", "openCompanionWindow_annotations": "Annotations", "openCompanionWindow_attribution": "Rights", @@ -121,7 +122,8 @@ "searchSubmitAria": "Submit search", "searchTitle": "Search", "selectWorkspaceMenu": "Select workspace type", - "showingNumAnnotations": "Showing {{number}} annotations", + "showingNumAnnotations": "Showing {{number}} annotation", + "showingNumAnnotations_plural": "Showing {{number}} annotations", "showCollection": "Show collection", "showZoomControls": "Show zoom controls", "sidebarPanelsNavigation": "Sidebar panels navigation", @@ -134,8 +136,10 @@ "thumbnailNavigation": "Thumbnails", "thumbnails": "Thumbnails", "toggleWindowSideBar": "Toggle sidebar", - "totalCollections": "{{count}} collections", - "totalManifests": "{{count}} manifests", + "totalCollections": "{{count}} collection", + "totalCollections_plural": "{{count}} collections", + "totalManifests": "{{count}} manifest", + "totalManifests_plural": "{{count}} manifests", "tryAgain": "Try again", "untitled": "[Untitled]", "view": "View",