Make in-reply-to i18n-friendly
This commit is contained in:
parent
23d82e06f7
commit
7d90c594fe
|
@ -257,44 +257,57 @@
|
||||||
v-if="isReply"
|
v-if="isReply"
|
||||||
class="glued-label reply-glued-label"
|
class="glued-label reply-glued-label"
|
||||||
>
|
>
|
||||||
<StatusPopover
|
<i18n-t
|
||||||
v-if="!isPreview"
|
keypath="status.reply_to_with_arg"
|
||||||
:status-id="status.parent_visible && status.in_reply_to_status_id"
|
|
||||||
class="reply-to-popover"
|
|
||||||
style="min-width: 0"
|
|
||||||
:class="{ '-strikethrough': !status.parent_visible }"
|
|
||||||
>
|
>
|
||||||
<button
|
<template #replyToWithIcon>
|
||||||
class="button-unstyled reply-to"
|
<StatusPopover
|
||||||
:aria-label="$t('tool_tip.reply')"
|
v-if="!isPreview"
|
||||||
@click.prevent="gotoOriginal(status.in_reply_to_status_id)"
|
:status-id="status.parent_visible && status.in_reply_to_status_id"
|
||||||
>
|
class="reply-to-popover"
|
||||||
<FAIcon
|
style="min-width: 0"
|
||||||
class="fa-scale-110 fa-old-padding"
|
:class="{ '-strikethrough': !status.parent_visible }"
|
||||||
icon="reply"
|
|
||||||
flip="horizontal"
|
|
||||||
/>
|
|
||||||
{{ ' ' }}
|
|
||||||
<span
|
|
||||||
class="reply-to-text"
|
|
||||||
>
|
>
|
||||||
{{ $t('status.reply_to') }}
|
<button
|
||||||
</span>
|
class="button-unstyled reply-to"
|
||||||
</button>
|
:aria-label="$t('tool_tip.reply')"
|
||||||
</StatusPopover>
|
@click.prevent="gotoOriginal(status.in_reply_to_status_id)"
|
||||||
|
>
|
||||||
|
<i18n-t keypath="status.reply_to_with_icon">
|
||||||
|
<template #icon>
|
||||||
|
<FAIcon
|
||||||
|
class="fa-scale-110 fa-old-padding"
|
||||||
|
icon="reply"
|
||||||
|
flip="horizontal"
|
||||||
|
/>
|
||||||
|
</template>
|
||||||
|
<template #replyTo>
|
||||||
|
<span
|
||||||
|
class="reply-to-text"
|
||||||
|
>
|
||||||
|
{{ $t('status.reply_to') }}
|
||||||
|
</span>
|
||||||
|
</template>
|
||||||
|
</i18n-t>
|
||||||
|
</button>
|
||||||
|
</StatusPopover>
|
||||||
|
|
||||||
<span
|
<span
|
||||||
v-else
|
v-else
|
||||||
class="reply-to-no-popover"
|
class="reply-to-no-popover"
|
||||||
>
|
>
|
||||||
<span class="reply-to-text">{{ $t('status.reply_to') }}</span>
|
<span class="reply-to-text">{{ $t('status.reply_to') }}</span>
|
||||||
</span>
|
</span>
|
||||||
<MentionLink
|
</template>
|
||||||
:content="replyToName"
|
<template #user>
|
||||||
:url="replyProfileLink"
|
<MentionLink
|
||||||
:user-id="status.in_reply_to_user_id"
|
:content="replyToName"
|
||||||
:user-screen-name="status.in_reply_to_screen_name"
|
:url="replyProfileLink"
|
||||||
/>
|
:user-id="status.in_reply_to_user_id"
|
||||||
|
:user-screen-name="status.in_reply_to_screen_name"
|
||||||
|
/>
|
||||||
|
</template>
|
||||||
|
</i18n-t>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
<!-- This little wrapper is made for sole purpose of "gluing" -->
|
<!-- This little wrapper is made for sole purpose of "gluing" -->
|
||||||
|
|
|
@ -853,6 +853,8 @@
|
||||||
"unbookmark": "Unbookmark",
|
"unbookmark": "Unbookmark",
|
||||||
"delete_confirm": "Do you really want to delete this status?",
|
"delete_confirm": "Do you really want to delete this status?",
|
||||||
"reply_to": "Reply to",
|
"reply_to": "Reply to",
|
||||||
|
"reply_to_with_icon": "{icon} {replyTo}",
|
||||||
|
"reply_to_with_arg": "{replyToWithIcon} {user}",
|
||||||
"mentions": "Mentions",
|
"mentions": "Mentions",
|
||||||
"replies_list": "Replies:",
|
"replies_list": "Replies:",
|
||||||
"replies_list_with_others": "Replies (+{numReplies} other): | Replies (+{numReplies} others):",
|
"replies_list_with_others": "Replies (+{numReplies} other): | Replies (+{numReplies} others):",
|
||||||
|
|
Loading…
Reference in a new issue