pl-fe: Follow Mastodon for privacy scope names
Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
@ -99,7 +99,7 @@ const messages = defineMessages({
|
||||
reblog_private: { id: 'status.reblog_private', defaultMessage: 'Repost to original audience' },
|
||||
reblog_visibility: { id: 'status.reblog_visibility', defaultMessage: 'Repost to specific audience' },
|
||||
reblog_visibility_public: { id: 'status.reblog_visibility_public', defaultMessage: 'Public repost' },
|
||||
reblog_visibility_unlisted: { id: 'status.reblog_visibility_unlisted', defaultMessage: 'Unlisted repost' },
|
||||
reblog_visibility_unlisted: { id: 'status.reblog_visibility_unlisted', defaultMessage: 'Quiet public repost' },
|
||||
reblog_visibility_private: { id: 'status.reblog_visibility_private', defaultMessage: 'Followers-only repost' },
|
||||
redact: { id: 'status.redact', defaultMessage: 'Redact' },
|
||||
redraft: { id: 'status.redraft', defaultMessage: 'Delete & re-draft' },
|
||||
@ -296,7 +296,7 @@ const ReblogButton: React.FC<IReblogButton> = ({
|
||||
let reblogIcon = require('@phosphor-icons/core/regular/repeat.svg');
|
||||
|
||||
if (status.visibility === 'direct') {
|
||||
reblogIcon = require('@phosphor-icons/core/regular/envelope-simple.svg');
|
||||
reblogIcon = require('@phosphor-icons/core/regular/at.svg');
|
||||
} else if (status.visibility === 'private' || status.visibility === 'mutuals_only') {
|
||||
reblogIcon = require('@phosphor-icons/core/regular/lock.svg');
|
||||
}
|
||||
@ -918,7 +918,7 @@ const MenuButton: React.FC<IMenuButton> = ({
|
||||
{
|
||||
text: intl.formatMessage(messages.reblog_visibility_unlisted),
|
||||
action: (e) => handleReblogClick(e, 'unlisted'),
|
||||
icon: require('@phosphor-icons/core/regular/lock-open.svg'),
|
||||
icon: require('@phosphor-icons/core/regular/moon.svg'),
|
||||
},
|
||||
{
|
||||
text: intl.formatMessage(messages.reblog_visibility_private),
|
||||
@ -983,7 +983,7 @@ const MenuButton: React.FC<IMenuButton> = ({
|
||||
menu.push({
|
||||
text: intl.formatMessage(messages.direct, { name: username }),
|
||||
action: handleDirectClick,
|
||||
icon: require('@phosphor-icons/core/regular/envelope-simple.svg'),
|
||||
icon: require('@phosphor-icons/core/regular/at.svg'),
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@ -328,7 +328,7 @@ const ComposeForm = <ID extends string>({ id, shouldCondense, autoFocus, clickab
|
||||
if (isEditing) {
|
||||
publishText = intl.formatMessage(messages.saveChanges);
|
||||
} else if (privacy === 'direct') {
|
||||
publishIcon = require('@phosphor-icons/core/regular/envelope-simple.svg');
|
||||
publishIcon = require('@phosphor-icons/core/regular/at.svg');
|
||||
publishText = intl.formatMessage(messages.message);
|
||||
} else if (privacy === 'private' || privacy === 'mutuals_only') {
|
||||
publishIcon = require('@phosphor-icons/core/regular/lock.svg');
|
||||
|
||||
@ -16,16 +16,16 @@ import type { Circle, Features } from 'pl-api';
|
||||
const messages = defineMessages({
|
||||
public_short: { id: 'privacy.public.short', defaultMessage: 'Public' },
|
||||
public_long: { id: 'privacy.public.long', defaultMessage: 'Post to public timelines' },
|
||||
unlisted_short: { id: 'privacy.unlisted.short', defaultMessage: 'Unlisted' },
|
||||
unlisted_long: { id: 'privacy.unlisted.long', defaultMessage: 'Do not post to public timelines' },
|
||||
unlisted_short: { id: 'privacy.unlisted.short', defaultMessage: 'Quiet public' },
|
||||
unlisted_long: { id: 'privacy.unlisted.long', defaultMessage: 'Not visible in public timelines' },
|
||||
private_short: { id: 'privacy.private.short', defaultMessage: 'Followers-only' },
|
||||
private_long: { id: 'privacy.private.long', defaultMessage: 'Post to followers only' },
|
||||
conversation_short: { id: 'privacy.conversation.short', defaultMessage: 'Conversation' },
|
||||
conversation_long: { id: 'privacy.conversation.long', defaultMessage: 'Post to recipients of the parent post' },
|
||||
mutuals_only_short: { id: 'privacy.mutuals_only.short', defaultMessage: 'Mutuals-only' },
|
||||
mutuals_only_long: { id: 'privacy.mutuals_only.long', defaultMessage: 'Post to mutually followed users only' },
|
||||
direct_short: { id: 'privacy.direct.short', defaultMessage: 'Direct' },
|
||||
direct_long: { id: 'privacy.direct.long', defaultMessage: 'Post to mentioned users only' },
|
||||
direct_short: { id: 'privacy.direct.short', defaultMessage: 'Private mention' },
|
||||
direct_long: { id: 'privacy.direct.long', defaultMessage: 'Visible to mentioned users only' },
|
||||
local_short: { id: 'privacy.local.short', defaultMessage: 'Local-only' },
|
||||
local_long: { id: 'privacy.local.long', defaultMessage: 'Only visible on your instance' },
|
||||
list_short: { id: 'privacy.list.short', defaultMessage: 'List only' },
|
||||
@ -55,7 +55,7 @@ const getItems = (features: Features, lists: ReturnType<typeof getOrderedLists>,
|
||||
meta: intl.formatMessage(messages.public_long),
|
||||
},
|
||||
{
|
||||
icon: require('@phosphor-icons/core/regular/lock-open.svg'),
|
||||
icon: require('@phosphor-icons/core/regular/moon.svg'),
|
||||
value: 'unlisted',
|
||||
text: intl.formatMessage(messages.unlisted_short),
|
||||
meta: intl.formatMessage(messages.unlisted_long),
|
||||
@ -85,7 +85,7 @@ const getItems = (features: Features, lists: ReturnType<typeof getOrderedLists>,
|
||||
meta: intl.formatMessage(messages.subscribers_long),
|
||||
} : undefined,
|
||||
{
|
||||
icon: require('@phosphor-icons/core/regular/envelope-simple.svg'),
|
||||
icon: require('@phosphor-icons/core/regular/at.svg'),
|
||||
value: 'direct',
|
||||
text: intl.formatMessage(messages.direct_short),
|
||||
meta: intl.formatMessage(messages.direct_long),
|
||||
|
||||
@ -47,7 +47,7 @@ const messages = defineMessages({
|
||||
reblog_private: { id: 'status.reblog_private', defaultMessage: 'Repost to original audience' },
|
||||
cancel_reblog_private: { id: 'status.cancel_reblog_private', defaultMessage: 'Un-repost' },
|
||||
reblog_visibility_public: { id: 'status.reblog_visibility_public', defaultMessage: 'Public repost' },
|
||||
reblog_visibility_unlisted: { id: 'status.reblog_visibility_unlisted', defaultMessage: 'Unlisted repost' },
|
||||
reblog_visibility_unlisted: { id: 'status.reblog_visibility_unlisted', defaultMessage: 'Quiet public repost' },
|
||||
reblog_visibility_private: { id: 'status.reblog_visibility_private', defaultMessage: 'Followers-only repost' },
|
||||
unreblog: { id: 'event.unreblog', defaultMessage: 'Un-repost event' },
|
||||
pin: { id: 'status.pin', defaultMessage: 'Pin on profile' },
|
||||
@ -264,7 +264,7 @@ const EventHeader: React.FC<IEventHeader> = ({ status }) => {
|
||||
{
|
||||
text: intl.formatMessage(messages.reblog_visibility_unlisted),
|
||||
action: () => handleReblogClick('unlisted'),
|
||||
icon: require('@phosphor-icons/core/regular/lock-open.svg'),
|
||||
icon: require('@phosphor-icons/core/regular/moon.svg'),
|
||||
},
|
||||
{
|
||||
text: intl.formatMessage(messages.reblog_visibility_private),
|
||||
|
||||
@ -21,7 +21,7 @@ const messages: Record<string, MessageDescriptor> = defineMessages({
|
||||
});
|
||||
|
||||
const STATUS_TYPE_ICONS: Record<string, string> = {
|
||||
direct: require('@phosphor-icons/core/regular/envelope-simple.svg'),
|
||||
direct: require('@phosphor-icons/core/regular/at.svg'),
|
||||
private: require('@phosphor-icons/core/regular/lock.svg'),
|
||||
mutuals_only: require('@phosphor-icons/core/regular/users-three.svg'),
|
||||
local: require('@phosphor-icons/core/regular/planet.svg'),
|
||||
|
||||
@ -1429,8 +1429,8 @@
|
||||
"privacy.circle.short": "Circle only",
|
||||
"privacy.conversation.long": "Post to recipients of the parent post",
|
||||
"privacy.conversation.short": "Conversation",
|
||||
"privacy.direct.long": "Post to mentioned users only",
|
||||
"privacy.direct.short": "Direct",
|
||||
"privacy.direct.long": "Visible to mentioned users only",
|
||||
"privacy.direct.short": "Private mention",
|
||||
"privacy.list.long": "Visible to members of a list",
|
||||
"privacy.list.short": "List only",
|
||||
"privacy.local": "{privacy} (local-only)",
|
||||
@ -1444,8 +1444,8 @@
|
||||
"privacy.public.short": "Public",
|
||||
"privacy.subscribers.long": "Post to users subscribing you only",
|
||||
"privacy.subscribers.short": "Subscribers-only",
|
||||
"privacy.unlisted.long": "Do not post to public timelines",
|
||||
"privacy.unlisted.short": "Unlisted",
|
||||
"privacy.unlisted.long": "Not visible in public timelines",
|
||||
"privacy.unlisted.short": "Quiet public",
|
||||
"profile_dropdown.add_account": "Add an existing account",
|
||||
"profile_dropdown.logout": "Log out @{acct}",
|
||||
"profile_dropdown.switch_account": "Switch accounts",
|
||||
@ -1682,7 +1682,7 @@
|
||||
"status.reblog_visibility": "Repost to specific audience",
|
||||
"status.reblog_visibility_private": "Followers-only repost",
|
||||
"status.reblog_visibility_public": "Public repost",
|
||||
"status.reblog_visibility_unlisted": "Unlisted repost",
|
||||
"status.reblog_visibility_unlisted": "Quiet public repost",
|
||||
"status.reblogged_by": "{name} reposted",
|
||||
"status.reblogged_by_private": "{name} reposted to followers",
|
||||
"status.reblogged_by_with_group": "{name} reposted from {group}",
|
||||
|
||||
Reference in New Issue
Block a user