Fix playlist strings

This commit is contained in:
infinite-persistence 2021-10-06 08:34:21 +08:00
parent a04c69f787
commit 0be3154cbe
No known key found for this signature in database
GPG key ID: B9C3252EDC3D0AA0
4 changed files with 8 additions and 3 deletions
static
ui
component
collectionContentSidebar
collectionsListMine
page/collection

View file

@ -1638,6 +1638,7 @@
"This link leads to an external website.": "This link leads to an external website.", "This link leads to an external website.": "This link leads to an external website.",
"No Content Found": "No Content Found", "No Content Found": "No Content Found",
"No Lists Found": "No Lists Found", "No Lists Found": "No Lists Found",
"No matching playlists": "No matching playlists",
"You have no lists! Create one from any playable content.": "You have no lists! Create one from any playable content.", "You have no lists! Create one from any playable content.": "You have no lists! Create one from any playable content.",
"Pick": "Pick", "Pick": "Pick",
"You have unpublished lists! %pick% one and publish it!": "You have unpublished lists! %pick% one and publish it!", "You have unpublished lists! %pick% one and publish it!": "You have unpublished lists! %pick% one and publish it!",
@ -2058,6 +2059,8 @@
"MyAwesomeList": "MyAwesomeList", "MyAwesomeList": "MyAwesomeList",
"My Awesome List": "My Awesome List", "My Awesome List": "My Awesome List",
"This list has no items.": "This list has no items.", "This list has no items.": "This list has no items.",
"1 item": "1 item",
"%collectionCount% items": "%collectionCount% items",
"Select File": "Select File", "Select File": "Select File",
"File Selected": "File Selected", "File Selected": "File Selected",
"Url": "Url", "Url": "Url",

View file

@ -65,7 +65,7 @@ export default function CollectionContent(props: Props) {
titleActions={ titleActions={
<div className="card__title-actions--link"> <div className="card__title-actions--link">
{/* TODO: BUTTON TO SAVE COLLECTION - Probably save/copy modal */} {/* TODO: BUTTON TO SAVE COLLECTION - Probably save/copy modal */}
<Button label={'View List'} button="link" navigate={`/$/${PAGES.LIST}/${id}`} /> <Button label={__('View List')} button="link" navigate={`/$/${PAGES.LIST}/${id}`} />
</div> </div>
} }
body={ body={

View file

@ -175,7 +175,7 @@ export default function CollectionsListMine(props: Props) {
{filteredCollections && {filteredCollections &&
filteredCollections.length > 0 && filteredCollections.length > 0 &&
filteredCollections.map((key) => <CollectionPreviewTile tileLayout collectionId={key} key={key} />)} filteredCollections.map((key) => <CollectionPreviewTile tileLayout collectionId={key} key={key} />)}
{!filteredCollections.length && <div className="empty main--empty">{__('No matching collections')}</div>} {!filteredCollections.length && <div className="empty main--empty">{__('No matching playlists')}</div>}
</div> </div>
</div> </div>
)} )}

View file

@ -102,7 +102,9 @@ export default function CollectionPage(props: Props) {
const subTitle = ( const subTitle = (
<div> <div>
<span className="collection__subtitle">{collectionCount} items</span> <span className="collection__subtitle">
{collectionCount === 1 ? __('1 item') : __('%collectionCount% items', { collectionCount })}
</span>
{uri && <ClaimAuthor uri={uri} />} {uri && <ClaimAuthor uri={uri} />}
</div> </div>
); );