mirror of
https://activitypub.software/TransFem-org/Sharkey
synced 2024-11-24 23:15:13 +00:00
upd: move some strings into i18n
This commit is contained in:
parent
c904fa6b59
commit
704b93f7d6
5 changed files with 16 additions and 4 deletions
|
@ -108,6 +108,8 @@ enterEmoji: "Enter an emoji"
|
|||
renote: "Boost"
|
||||
unrenote: "Remove boost"
|
||||
renoted: "Boosted."
|
||||
rmquote: "Removed quote."
|
||||
rmboost: "Unboosted."
|
||||
cantRenote: "This post can't be boosted."
|
||||
cantReRenote: "A boost can't be boosted."
|
||||
quote: "Quote"
|
||||
|
@ -323,6 +325,7 @@ copyUrl: "Copy URL"
|
|||
rename: "Rename"
|
||||
avatar: "Avatar"
|
||||
banner: "Banner"
|
||||
background: "Background"
|
||||
displayOfSensitiveMedia: "Display of sensitive media"
|
||||
whenServerDisconnected: "When losing connection to the server"
|
||||
disconnectedFromServer: "Connection to server has been lost"
|
||||
|
@ -1913,6 +1916,7 @@ _profile:
|
|||
metadataContent: "Content"
|
||||
changeAvatar: "Change avatar"
|
||||
changeBanner: "Change banner"
|
||||
changeBackground: "Change background"
|
||||
verifiedLinkDescription: "By entering an URL that contains a link to your profile here, an ownership verification icon can be displayed next to the field."
|
||||
_exportOrImport:
|
||||
allNotes: "All notes"
|
||||
|
|
4
locales/index.d.ts
vendored
4
locales/index.d.ts
vendored
|
@ -111,6 +111,8 @@ export interface Locale {
|
|||
"renote": string;
|
||||
"unrenote": string;
|
||||
"renoted": string;
|
||||
"rmboost": string;
|
||||
"rmquote": string;
|
||||
"cantRenote": string;
|
||||
"cantReRenote": string;
|
||||
"quote": string;
|
||||
|
@ -326,6 +328,7 @@ export interface Locale {
|
|||
"rename": string;
|
||||
"avatar": string;
|
||||
"banner": string;
|
||||
"background": string;
|
||||
"displayOfSensitiveMedia": string;
|
||||
"whenServerDisconnected": string;
|
||||
"disconnectedFromServer": string;
|
||||
|
@ -2042,6 +2045,7 @@ export interface Locale {
|
|||
"metadataContent": string;
|
||||
"changeAvatar": string;
|
||||
"changeBanner": string;
|
||||
"changeBackground": string;
|
||||
"verifiedLinkDescription": string;
|
||||
};
|
||||
"_exportOrImport": {
|
||||
|
|
|
@ -107,7 +107,9 @@ followRequestPending: "フォロー許可待ち"
|
|||
enterEmoji: "絵文字を入力"
|
||||
renote: "リノート"
|
||||
unrenote: "リノート解除"
|
||||
renoted: "リノートしました。"
|
||||
renoted: "ブースト"
|
||||
rmboost: "アンブースト。"
|
||||
rmquote: "引用を削除しました。"
|
||||
cantRenote: "この投稿はリノートできません。"
|
||||
cantReRenote: "リノートをリノートすることはできません。"
|
||||
quote: "引用"
|
||||
|
@ -323,6 +325,7 @@ copyUrl: "URLをコピー"
|
|||
rename: "名前を変更"
|
||||
avatar: "アイコン"
|
||||
banner: "バナー"
|
||||
background: "背景"
|
||||
displayOfSensitiveMedia: "センシティブなメディアの表示"
|
||||
whenServerDisconnected: "サーバーとの接続が失われたとき"
|
||||
disconnectedFromServer: "サーバーから切断されました"
|
||||
|
@ -1957,6 +1960,7 @@ _profile:
|
|||
metadataContent: "内容"
|
||||
changeAvatar: "アイコン画像を変更"
|
||||
changeBanner: "バナー画像を変更"
|
||||
changeBackground: "背景を変更する"
|
||||
verifiedLinkDescription: "内容にURLを設定すると、リンク先のWebサイトに自分のプロフィールへのリンクが含まれている場合に所有者確認済みアイコンを表示させることができます。"
|
||||
|
||||
_exportOrImport:
|
||||
|
|
|
@ -24,7 +24,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
|||
</div>
|
||||
<div v-if="$i?.backgroundId == file.id" :class="[$style.label]">
|
||||
<img :class="$style.labelImg" src="/client-assets/label.svg"/>
|
||||
<p :class="$style.labelText">Background</p>
|
||||
<p :class="$style.labelText">{{ i18n.ts.background }}</p>
|
||||
</div>
|
||||
<div v-if="file.isSensitive" :class="[$style.label, $style.red]">
|
||||
<img :class="$style.labelImg" src="/client-assets/label-red.svg"/>
|
||||
|
|
|
@ -10,7 +10,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
|||
<MkAvatar :class="$style.avatar" :user="$i" @click="changeAvatar"/>
|
||||
<MkButton primary rounded @click="changeAvatar">{{ i18n.ts._profile.changeAvatar }}</MkButton>
|
||||
</div>
|
||||
<MkButton primary rounded :class="$style.backgroundEdit" @click="changeBackground">Change Background</MkButton>
|
||||
<MkButton primary rounded :class="$style.backgroundEdit" @click="changeBackground">{{ i18n.ts._profile.changeBackground }}</MkButton>
|
||||
<MkButton primary rounded :class="$style.bannerEdit" @click="changeBanner">{{ i18n.ts._profile.changeBanner }}</MkButton>
|
||||
</div>
|
||||
|
||||
|
@ -256,7 +256,7 @@ function changeBanner(ev) {
|
|||
}
|
||||
|
||||
function changeBackground(ev) {
|
||||
selectFile(ev.currentTarget ?? ev.target, i18n.ts.banner).then(async (file) => {
|
||||
selectFile(ev.currentTarget ?? ev.target, i18n.ts.background).then(async (file) => {
|
||||
let originalOrCropped = file;
|
||||
|
||||
const { canceled } = await os.confirm({
|
||||
|
|
Loading…
Reference in a new issue