feat: replace "publish" with "schedule" in label/aria text

pull/2643/head
TAKAHASHI Shuuji 2024-03-03 17:32:35 +09:00
rodzic e44d7ce00a
commit d6c9caae6a
2 zmienionych plików z 11 dodań i 5 usunięć

Wyświetl plik

@ -262,11 +262,11 @@ onDeactivated(() => {
<header id="publish-failed" flex justify-between>
<div flex items-center gap-x-2 font-bold>
<div aria-hidden="true" i-ri:error-warning-fill />
<p>{{ $t('state.publish_failed') }}</p>
<p>{{ scheduleDateTime ? $t('state.schedule_failed') : $t('state.publish_failed') }}</p>
</div>
<CommonTooltip placement="bottom" :content="$t('action.clear_publish_failed')">
<CommonTooltip placement="bottom" :content="scheduleDateTime ? $t('state.clear_schedule_failed') : $t('action.clear_publish_failed')">
<button
flex rounded-4 p1 hover:bg-active cursor-pointer transition-100 :aria-label="$t('action.clear_publish_failed')"
flex rounded-4 p1 hover:bg-active cursor-pointer transition-100 :aria-label="scheduleDateTime ? $t('state.clear_schedule_failed') : $t('action.clear_publish_failed')"
@click="failedMessages = []"
>
<span aria-hidden="true" w="1.75em" h="1.75em" i-ri:close-line />
@ -491,14 +491,14 @@ onDeactivated(() => {
</template>
</PublishVisibilityPicker>
<CommonTooltip v-if="failedMessages.length > 0" id="publish-failed-tooltip" placement="top" :content="$t('tooltip.publish_failed')" no-auto-focus>
<CommonTooltip v-if="failedMessages.length > 0" id="publish-failed-tooltip" placement="top" :content="scheduleDateTime ? $t('state.schedule_failed') : $t('tooltip.publish_failed')" no-auto-focus>
<button
btn-danger rounded-3 text-sm w-full flex="~ gap1" items-center md:w-fit aria-describedby="publish-failed-tooltip"
>
<span block>
<div block i-carbon:face-dizzy-filled />
</span>
<span>{{ $t('state.publish_failed') }}</span>
<span>{{ scheduleDateTime ? $t('state.schedule_failed') : $t('state.publish_failed') }}</span>
</button>
</CommonTooltip>
@ -519,6 +519,7 @@ onDeactivated(() => {
</span>
<span v-if="draft.editingStatus">{{ $t('action.save_changes') }}</span>
<span v-else-if="draft.params.inReplyToId">{{ $t('action.reply') }}</span>
<span v-else-if="scheduleDateTime">{{ !isSending ? $t('action.schedule') : $t('state.scheduling') }}</span>
<span v-else>{{ !isSending ? $t('action.publish') : $t('state.publishing') }}</span>
</button>
</CommonTooltip>

Wyświetl plik

@ -60,6 +60,7 @@
"boosted": "Boosted",
"clear_publish_failed": "Clear publish errors",
"clear_save_failed": "Clear save errors",
"clear_schedule_failed": "Clear schedule errors",
"clear_upload_failed": "Clear file upload errors",
"close": "Close",
"compose": "Compose",
@ -79,6 +80,7 @@
"reset": "Reset",
"save": "Save",
"save_changes": "Save changes",
"schedule": "Schedule",
"sign_in": "Sign in",
"sign_in_to": "Sign in to {0}",
"switch_account": "Switch account",
@ -598,6 +600,8 @@
"publish_failed": "Publish failed",
"publishing": "Publishing",
"save_failed": "Save failed",
"schedule_failed": "Schedule failed",
"scheduling": "Scheduling",
"upload_failed": "Upload failed",
"uploading": "Uploading..."
},
@ -719,6 +723,7 @@
"open_editor_tools": "Editor tools",
"pick_an_icon": "Pick an icon",
"publish_failed": "Close failed messages at the top of editor to republish posts",
"schedule_failed": "Close failed messages at the top of editor to reschedule posts",
"schedule_post": "Schedule post",
"toggle_bold": "Toggle bold",
"toggle_code_block": "Toggle code block",