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

View file

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