fix components + pages

This commit is contained in:
Mayesters 2017-06-19 14:58:39 +02:00
parent df19708a5c
commit 95a37e3f88
5 changed files with 27 additions and 25 deletions

View file

@ -46,8 +46,7 @@ class UserEmailVerify extends React.PureComponent {
{/* render help separately so it always shows */}
<div className="form-field__helper">
<p>
{{__("Email")} <Link href="mailto:help@lbry.io" label="help@lbry.io" /> {__("if
you did not receive or are having trouble with your code."})
{__("Email")} <Link href="mailto:help@lbry.io" label="help@lbry.io" /> {__("if you did not receive or are having trouble with your code.")}
</p>
</div>
<div className="form-row-submit form-row-submit--with-footer">

View file

@ -14,7 +14,7 @@ class WelcomeModal extends React.PureComponent {
<h3 className="modal__header">{__("Welcome to LBRY.")}</h3>
<p>
{__("Using LBRY is like dating a centaur. Totally normal up top, and")}
{" "}<em>{__"way different")}</em> {__("underneath.")}
{" "}<em>{__("way different")}</em> {__("underneath.")}
</p>
<p>{__("Up top, LBRY is similar to popular media sites.")}</p>
<p>

View file

@ -5,10 +5,8 @@ import FileCard from "component/fileCard";
import { BusyMessage } from "component/common.js";
import ToolTip from "component/tooltip.js";
const communityCategoryToolTipText =
"Community Content is a public space where anyone can share content with the " +
'rest of the LBRY community. Bid on the names "one," "two," "three," "four" and ' +
'"five" to put your content here!';
const FeaturedCategory = props => {
const { category, names } = props;
@ -21,7 +19,7 @@ const FeaturedCategory = props => {
category.match(/^community/i) &&
<ToolTip
label={__("What's this?")}
body={__(communityCategoryToolTipText)}
body={__("Community Content is a public space where anyone can share content with the rest of the LBRY community. Bid on the names \"one,\" \"two,\" \"three,\" \"four\" and \"five\" to put your content here!")}
className="tooltip--header"
/>}
</h3>

View file

@ -433,17 +433,23 @@ class PublishPage extends React.PureComponent {
"You have already used this URL. Publishing to it again will update your previous publish."
);
} else if (this.state.topClaimValue) {
return (
<span>
{__n(
'A deposit of at least "%s" credit is required to win "%s". However, you can still get a permanent URL for any amount.',
'A deposit of at least "%s" credits is required to win "%s". However, you can still get a permanent URL for any amount.',
this.state.topClaimValue /*pluralization param*/,
this.state.topClaimValue,
this.state.name /*regular params*/
)}
</span>
);
if (this.state.topClaimValue === 1) {
return (
<span>
{__(
'A deposit of at least "%s" credit is required to win "%s". However, you can still get a permanent URL for any amount.'
)}
</span>
);
} else {
return (
<span>
{__(
'A deposit of at least "%s" credits is required to win "%s". However, you can still get a permanent URL for any amount.'
)}
</span>
);
}
} else {
return "";
}
@ -752,7 +758,7 @@ class PublishPage extends React.PureComponent {
/>
<FormRow
label={__("Deposit")}
postfix="LBC"
postfix={__("LBC")}
step="0.01"
min="0"
type="number"

View file

@ -20,7 +20,7 @@ const RewardTile = props => {
</div>
<div className="card__actions">
{claimed
? <span><Icon icon="icon-check" /> Reward claimed.</span>
? <span><Icon icon="icon-check" /> {__("Reward claimed.")}</span>
: <RewardLink reward_type={reward.reward_type} />}
</div>
<div className="card__content">{reward.reward_description}</div>
@ -59,14 +59,13 @@ const RewardsPage = props => {
<div className="empty">
<p>{__("You are not eligible to claim rewards.")}</p>
<p>
To become eligible, email
{" "}<Link href="mailto:help@lbry.io" label="help@lbry.io" /> with a
link to a public social media profile.
{__("To become eligible, email")}
{" "}<Link href="mailto:help@lbry.io" label="help@lbry.io" /> {__("with a link to a public social media profile.")}
</p>
</div>
);
} else if (fetching) {
content = <BusyMessage message="Fetching rewards" />;
content = <BusyMessage message={__("Fetching rewards")} />;
} else if (rewards.length > 0) {
content = rewards.map(reward =>
<RewardTile key={reward.reward_type} reward={reward} />