mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-12-23 17:43:09 +02:00
add: locales for mfm play button and dialog
This commit is contained in:
parent
6cf811aa13
commit
f17f630acd
6 changed files with 34 additions and 12 deletions
|
@ -2394,3 +2394,10 @@ _externalResourceInstaller:
|
|||
_themeInstallFailed:
|
||||
title: "Failed to install theme"
|
||||
description: "A problem occurred during theme installation. Please try again. Error details can be viewed in the Javascript console."
|
||||
|
||||
_animatedMFM:
|
||||
play: "Play MFM Animation"
|
||||
stop: "Stop MFM Animation"
|
||||
_alert:
|
||||
text: "Animated MFMs could include flashing lights and fast moving text/emojis."
|
||||
confirm: "Animate"
|
||||
|
|
8
locales/index.d.ts
vendored
8
locales/index.d.ts
vendored
|
@ -2501,6 +2501,14 @@ export interface Locale {
|
|||
};
|
||||
};
|
||||
};
|
||||
"_animatedMFM": {
|
||||
"play": string;
|
||||
"stop": string;
|
||||
"_alert": {
|
||||
"text": string;
|
||||
"confirm": string;
|
||||
};
|
||||
};
|
||||
}
|
||||
declare const locales: {
|
||||
[lang: string]: Locale;
|
||||
|
|
|
@ -2388,3 +2388,10 @@ _externalResourceInstaller:
|
|||
_themeInstallFailed:
|
||||
title: "テーマのインストールに失敗しました"
|
||||
description: "テーマのインストール中に問題が発生しました。もう一度お試しください。エラーの詳細はJavascriptコンソールをご覧ください。"
|
||||
|
||||
_animatedMFM:
|
||||
play: "MFMアニメーションを再生"
|
||||
stop: "MFMアニメーション停止"
|
||||
_alert:
|
||||
text: "アニメーションMFMには、点滅するライトや高速で動くテキスト/絵文字を含めることができる。"
|
||||
confirm: "アニメイト"
|
||||
|
|
|
@ -79,8 +79,8 @@ SPDX-License-Identifier: AGPL-3.0-only
|
|||
<Mfm :text="translation.text" :author="appearNote.user" :nyaize="'account'" :emojiUrls="appearNote.emojis"/>
|
||||
</div>
|
||||
</div>
|
||||
<MkButton v-if="!allowAnim && animated" :class="$style.playMFMButton" :small="true" @click="animatedMFM()" v-on:click.stop><i class="ph-play ph-bold ph-lg "></i> Animated MFM</MkButton>
|
||||
<MkButton v-else-if="!defaultStore.state.animatedMfm && allowAnim && animated" :class="$style.playMFMButton" :small="true" @click="animatedMFM()" v-on:click.stop><i class="ph-stop ph-bold ph-lg "></i> Animated MFM</MkButton>
|
||||
<MkButton v-if="!allowAnim && animated" :class="$style.playMFMButton" :small="true" @click="animatedMFM()" v-on:click.stop><i class="ph-play ph-bold ph-lg "></i> {{ i18n.ts._animatedMFM.play }}</MkButton>
|
||||
<MkButton v-else-if="!defaultStore.state.animatedMfm && allowAnim && animated" :class="$style.playMFMButton" :small="true" @click="animatedMFM()" v-on:click.stop><i class="ph-stop ph-bold ph-lg "></i> {{ i18n.ts._animatedMFM.stop }}</MkButton>
|
||||
</div>
|
||||
<div v-if="appearNote.files.length > 0">
|
||||
<MkMediaList :mediaList="appearNote.files" v-on:click.stop/>
|
||||
|
@ -713,8 +713,8 @@ function animatedMFM() {
|
|||
} else {
|
||||
os.confirm({
|
||||
type: 'warning',
|
||||
text: 'Animated MFMs could include flashing lights and fast moving text/emojis.',
|
||||
okText: 'Animate',
|
||||
text: i18n.ts._animatedMFM._alert.text,
|
||||
okText: i18n.ts._animatedMFM._alert.confirm,
|
||||
}).then((res) => { if (!res.canceled) allowAnim.value = true; });
|
||||
}
|
||||
}
|
||||
|
|
|
@ -93,8 +93,8 @@ SPDX-License-Identifier: AGPL-3.0-only
|
|||
<Mfm :text="translation.text" :author="appearNote.user" :nyaize="'account'" :emojiUrls="appearNote.emojis"/>
|
||||
</div>
|
||||
</div>
|
||||
<MkButton v-if="!allowAnim && animated" :class="$style.playMFMButton" :small="true" @click="animatedMFM()" v-on:click.stop><i class="ph-play ph-bold ph-lg "></i> Animated MFM</MkButton>
|
||||
<MkButton v-else-if="!defaultStore.state.animatedMfm && allowAnim && animated" :class="$style.playMFMButton" :small="true" @click="animatedMFM()" v-on:click.stop><i class="ph-stop ph-bold ph-lg "></i> Animated MFM</MkButton>
|
||||
<MkButton v-if="!allowAnim && animated" :class="$style.playMFMButton" :small="true" @click="animatedMFM()" v-on:click.stop><i class="ph-play ph-bold ph-lg "></i> {{ i18n.ts._animatedMFM.play }}</MkButton>
|
||||
<MkButton v-else-if="!defaultStore.state.animatedMfm && allowAnim && animated" :class="$style.playMFMButton" :small="true" @click="animatedMFM()" v-on:click.stop><i class="ph-stop ph-bold ph-lg "></i> {{ i18n.ts._animatedMFM.stop }}</MkButton>
|
||||
<div v-if="appearNote.files.length > 0">
|
||||
<MkMediaList :mediaList="appearNote.files"/>
|
||||
</div>
|
||||
|
@ -747,8 +747,8 @@ function animatedMFM() {
|
|||
} else {
|
||||
os.confirm({
|
||||
type: 'warning',
|
||||
text: 'Animated MFMs could include flashing lights and fast moving text/emojis.',
|
||||
okText: 'Animate',
|
||||
text: i18n.ts._animatedMFM._alert.text,
|
||||
okText: i18n.ts._animatedMFM._alert.confirm,
|
||||
}).then((res) => { if (!res.canceled) allowAnim.value = true; });
|
||||
}
|
||||
}
|
||||
|
|
|
@ -10,8 +10,8 @@ SPDX-License-Identifier: AGPL-3.0-only
|
|||
<span v-if="note.deletedAt" style="opacity: 0.5">({{ i18n.ts.deleted }})</span>
|
||||
<MkA v-if="note.replyId" :class="$style.reply" :to="`/notes/${note.replyId}`" v-on:click.stop><i class="ph-arrow-bend-left-up ph-bold ph-lg"></i></MkA>
|
||||
<Mfm v-if="note.text" :text="note.text" :author="note.user" :nyaize="'account'" :isAnim="allowAnim" :emojiUrls="note.emojis"/>
|
||||
<MkButton v-if="!allowAnim && animated && !hideFiles" :class="$style.playMFMButton" :small="true" @click="animatedMFM()" v-on:click.stop><i class="ph-play ph-bold ph-lg "></i> Animated MFM</MkButton>
|
||||
<MkButton v-else-if="!defaultStore.state.animatedMfm && allowAnim && animated && !hideFiles" :class="$style.playMFMButton" :small="true" @click="animatedMFM()" v-on:click.stop><i class="ph-stop ph-bold ph-lg "></i> Animated MFM</MkButton>
|
||||
<MkButton v-if="!allowAnim && animated && !hideFiles" :class="$style.playMFMButton" :small="true" @click="animatedMFM()" v-on:click.stop><i class="ph-play ph-bold ph-lg "></i> {{ i18n.ts._animatedMFM.play }}</MkButton>
|
||||
<MkButton v-else-if="!defaultStore.state.animatedMfm && allowAnim && animated && !hideFiles" :class="$style.playMFMButton" :small="true" @click="animatedMFM()" v-on:click.stop><i class="ph-stop ph-bold ph-lg "></i> {{ i18n.ts._animatedMFM.stop }}</MkButton>
|
||||
<div v-if="note.text && translating || note.text && translation" :class="$style.translation">
|
||||
<MkLoading v-if="translating" mini/>
|
||||
<div v-else>
|
||||
|
@ -78,8 +78,8 @@ function animatedMFM() {
|
|||
} else {
|
||||
os.confirm({
|
||||
type: 'warning',
|
||||
text: 'Animated MFMs could include flashing lights and fast moving text/emojis.',
|
||||
okText: 'Animate',
|
||||
text: i18n.ts._animatedMFM._alert.text,
|
||||
okText: i18n.ts._animatedMFM._alert.confirm,
|
||||
}).then((res) => { if (!res.canceled) allowAnim = true; });
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue