String: fix variable-resolving problems

This commit is contained in:
infiinte-persistence 2020-10-07 19:56:56 +08:00 committed by Sean Yesmunt
parent 54cdf2a7e6
commit 4294e0109a
3 changed files with 8 additions and 3 deletions

View file

@ -960,7 +960,7 @@
"You will not see reposts by people you follow or receive email notifying about them.": "You will not see reposts by people you follow or receive email notifying about them.",
"Sorry, your request timed out. Modify your options or %again%": "Sorry, your request timed out. Modify your options or %again%",
"Pause at any time to select a thumbnail from your video": "Pause at any time to select a thumbnail from your video",
"For video content, use MP4s in H264/AAC format and a friendly bitrate (under 5 Mbps) and resolution (720p) for more reliable streaming. Lbry.tv uploads are restricted to 1 GB.": "For video content, use MP4s in H264/AAC format and a friendly bitrate (under 5 Mbps) and resolution (720p) for more reliable streaming. Lbry.tv uploads are restricted to 1 GB.",
"For video content, use MP4s in H264/AAC format and a friendly bitrate (under 5 Mbps) and resolution (720p) for more reliable streaming. %SITE_NAME% uploads are restricted to 1 GB.": "For video content, use MP4s in H264/AAC format and a friendly bitrate (under 5 Mbps) and resolution (720p) for more reliable streaming. %SITE_NAME% uploads are restricted to 1 GB.",
"Share this channel": "Share this channel",
"File preview": "File preview",
"Go Home": "Go Home",

View file

@ -199,7 +199,8 @@ function PublishFile(props: Props) {
return (
<p className="help">
{__(
`For video content, use MP4s in H264/AAC format and a friendly bitrate (under 5 Mbps) and resolution (720p) for more reliable streaming. ${SITE_NAME} uploads are restricted to 1 GB.`
'For video content, use MP4s in H264/AAC format and a friendly bitrate (under 5 Mbps) and resolution (720p) for more reliable streaming. %SITE_NAME% uploads are restricted to 1 GB.',
{ SITE_NAME }
)}{' '}
<Button button="link" label={__('Upload Guide')} href="https://lbry.com/faq/video-publishing-guide" />
</p>

View file

@ -43,7 +43,11 @@ function FileViewerEmbeddedEnded(props: Props) {
<div className="file-viewer__overlay-actions">
<Button label={__('Rewatch or Discuss')} button="primary" href={lbrytvLink} />
{!isAuthenticated && (
<Button label={__(`Join ${SITE_NAME}`)} button="secondary" href={`${URL}/$/signup?src=embed_signup`} />
<Button
label={__('Join %SITE_NAME%', { SITE_NAME })}
button="secondary"
href={`${URL}/$/signup?src=embed_signup`}
/>
)}
</div>
</div>