fileListSearch and fileTitle component translated

This commit is contained in:
Intnick 2017-05-26 16:13:16 +02:00
parent 73e7419bf2
commit 9ba4da4032
3 changed files with 17 additions and 12 deletions

View file

@ -221,5 +221,11 @@
"This address contains no content.": "This address contains no content.", "This address contains no content.": "This address contains no content.",
"Sort by": "Sort by", "Sort by": "Sort by",
"Date": "Date", "Date": "Date",
"File name": "File name" "File name": "File name",
"Looking up the Dewey Decimals": "Looking up the Dewey Decimals",
"No one has checked anything in for %s yet.": "No one has checked anything in for %s yet.",
"Be the first": "Be the first",
"Refreshing the Dewey Decimals": "Refreshing the Dewey Decimals",
"This location is unused.": "This location is unused.",
"Put something here!": "Put something here!"
} }

View file

@ -16,8 +16,8 @@ const SearchNoResults = (props) => {
return <section> return <section>
<span className="empty"> <span className="empty">
No one has checked anything in for {query} yet. { ' ' } {__("No one has checked anything in for %s yet."), query} { ' ' }
<Link label="Be the first" onClick={() => navigate('/publish')} /> <Link label={__("Be the first")} onClick={() => navigate('/publish')} />
</span> </span>
</section>; </section>;
} }
@ -60,10 +60,10 @@ class FileListSearch extends React.Component{
return ( return (
<div> <div>
{isSearching && !results && {isSearching && !results &&
<BusyMessage message="Looking up the Dewey Decimals" />} <BusyMessage message={__("Looking up the Dewey Decimals")} />}
{isSearching && results && {isSearching && results &&
<BusyMessage message="Refreshing the Dewey Decimals" />} <BusyMessage message={__("Refreshing the Dewey Decimals")} />}
{(results && !!results.length) ? {(results && !!results.length) ?
<FileListSearchResults {...this.props} /> : <FileListSearchResults {...this.props} /> :

View file

@ -68,15 +68,15 @@ class FileTile extends React.Component {
if (isClaimed) { if (isClaimed) {
description = metadata && metadata.description description = metadata && metadata.description
} else if (isResolvingUri) { } else if (isResolvingUri) {
description = "Loading..." description = __("Loading...")
} else if (showEmpty === FileTile.SHOW_EMPTY_PUBLISH) { } else if (showEmpty === FileTile.SHOW_EMPTY_PUBLISH) {
onClick = () => navigate('/publish', { }) onClick = () => navigate('/publish', { })
description = <span className="empty"> description = <span className="empty">
This location is unused. { ' ' } {__("This location is unused.")} { ' ' }
{ isClaimable && <span className="button-text">Put something here!</span> } { isClaimable && <span className="button-text">{__("Put something here!")}</span> }
</span> </span>
} else if (showEmpty === FileTile.SHOW_EMPTY_PENDING) { } else if (showEmpty === FileTile.SHOW_EMPTY_PENDING) {
description = <span className="empty">This file is pending confirmation.</span> description = <span className="empty">{__("This file is pending confirmation.")}</span>
} }
return ( return (
@ -103,8 +103,7 @@ class FileTile extends React.Component {
{this.state.showNsfwHelp {this.state.showNsfwHelp
? <div className='card-overlay'> ? <div className='card-overlay'>
<p> <p>
This content is Not Safe For Work. {__("This content is Not Safe For Work. To view adult content, please change your")} <Link className="button-text" onClick={() => navigate('/settings')} label={__("Settings")} />.
To view adult content, please change your <Link className="button-text" onClick={() => navigate('/settings')} label="Settings" />.
</p> </p>
</div> </div>
: null} : null}