From 704b93f7d62dd2799af26afe0dd8211c91086314 Mon Sep 17 00:00:00 2001 From: Mar0xy Date: Sun, 15 Oct 2023 17:47:16 +0200 Subject: [PATCH] upd: move some strings into i18n --- locales/en-US.yml | 4 ++++ locales/index.d.ts | 4 ++++ locales/ja-JP.yml | 6 +++++- packages/frontend/src/components/MkDrive.file.vue | 2 +- packages/frontend/src/pages/settings/profile.vue | 4 ++-- 5 files changed, 16 insertions(+), 4 deletions(-) diff --git a/locales/en-US.yml b/locales/en-US.yml index 43ddec43bf..59a634c7fe 100644 --- a/locales/en-US.yml +++ b/locales/en-US.yml @@ -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" diff --git a/locales/index.d.ts b/locales/index.d.ts index 1d42b75804..3712d6b81e 100644 --- a/locales/index.d.ts +++ b/locales/index.d.ts @@ -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": { diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml index 938a8120e9..97ce1af625 100644 --- a/locales/ja-JP.yml +++ b/locales/ja-JP.yml @@ -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: diff --git a/packages/frontend/src/components/MkDrive.file.vue b/packages/frontend/src/components/MkDrive.file.vue index 4c3a4803e9..c8f23286fd 100644 --- a/packages/frontend/src/components/MkDrive.file.vue +++ b/packages/frontend/src/components/MkDrive.file.vue @@ -24,7 +24,7 @@ SPDX-License-Identifier: AGPL-3.0-only
-

Background

+

{{ i18n.ts.background }}

diff --git a/packages/frontend/src/pages/settings/profile.vue b/packages/frontend/src/pages/settings/profile.vue index 701edc7953..6d557aced4 100644 --- a/packages/frontend/src/pages/settings/profile.vue +++ b/packages/frontend/src/pages/settings/profile.vue @@ -10,7 +10,7 @@ SPDX-License-Identifier: AGPL-3.0-only {{ i18n.ts._profile.changeAvatar }}
- Change Background + {{ i18n.ts._profile.changeBackground }} {{ i18n.ts._profile.changeBanner }} @@ -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({