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