Update load media message

This commit is contained in:
Kieran 2023-09-18 10:29:37 +01:00
parent 2f9e1eb5c8
commit 29410ca276
Signed by: Kieran
GPG Key ID: DE71CEB3925BE941
3 changed files with 15 additions and 1 deletions

View File

@ -4,6 +4,7 @@ import { FileExtensionRegex } from "Const";
import Reveal from "Element/Reveal";
import useLogin from "Hooks/useLogin";
import { MediaElement } from "Element/MediaElement";
import { Link } from "react-router-dom";
interface RevealMediaProps {
creator: string;
@ -51,7 +52,16 @@ export default function RevealMedia(props: RevealMediaProps) {
if (hideMedia) {
return (
<Reveal
message={<FormattedMessage defaultMessage="Click to load content from {link}" values={{ link: hostname }} />}>
message={
<FormattedMessage
defaultMessage="You don't follow this person, click here to load media from <i>{link}</i>, or update <a><i>your preferences</i></a> to always load media from everybody."
values={{
i: i => <i>{i}</i>,
a: a => <Link to="/settings/preferences">{a}</Link>,
link: hostname,
}}
/>
}>
<MediaElement mime={`${type}/${extension}`} url={url.toString()} onMediaClick={props.onMediaClick} />
</Reveal>
);

View File

@ -461,6 +461,9 @@
"HbefNb": {
"defaultMessage": "Open Wallet"
},
"HhcAVH": {
"defaultMessage": "You don't follow this person, click here to load media from <i>{link}</i>, or update <a><i>your preferences</i></a> to always load media from everybody."
},
"IDjHJ6": {
"defaultMessage": "Thanks for using Snort, please consider donating if you can."
},

View File

@ -151,6 +151,7 @@
"HOzFdo": "Muted",
"HWbkEK": "Clear cache and reload",
"HbefNb": "Open Wallet",
"HhcAVH": "You don't follow this person, click here to load media from <i>{link}</i>, or update <a><i>your preferences</i></a> to always load media from everybody.",
"IDjHJ6": "Thanks for using Snort, please consider donating if you can.",
"IEwZvs": "Are you sure you want to unpin this note?",
"IKKHqV": "Follows",