diff --git a/locales/en-US.yml b/locales/en-US.yml index 64f5d568eb..39c808ae50 100644 --- a/locales/en-US.yml +++ b/locales/en-US.yml @@ -959,6 +959,10 @@ numberOfPageCache: "Number of cached pages" numberOfPageCacheDescription: "Increasing this number will improve convenience for but cause more load as more memory usage on the user's device." numberOfReplies: "Number of replies in a thread" numberOfRepliesDescription: "Increasing this number will display more replies. Setting this too high can cause replies to be cramped and unreadable." +boostSettings: "Boost Settings" +showVisibilitySelectorOnBoost: "Show Visibility Selector" +showVisibilitySelectorOnBoostDescription: "Shows the visiblity selector if enabled when clicking boost, if disabled it will use the default visiblity defined below and the selector will not show up." +visibilityOnBoost: "Default boost visibility" logoutConfirm: "Really log out?" lastActiveDate: "Last used at" statusbar: "Status bar" @@ -2143,7 +2147,11 @@ _profile: metadataContent: "Content" changeAvatar: "Change avatar" changeBanner: "Change banner" + updateBanner: "Update banner" + removeBanner: "Remove banner" changeBackground: "Change background" + updateBackground: "Update background" + removeBackground: "Remove 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." avatarDecorationMax: "You can add up to {max} decorations." _exportOrImport: diff --git a/locales/index.d.ts b/locales/index.d.ts index dd2f34a69a..ad002cd4f5 100644 --- a/locales/index.d.ts +++ b/locales/index.d.ts @@ -962,6 +962,10 @@ export interface Locale { "numberOfPageCacheDescription": string; "numberOfReplies": string; "numberOfRepliesDescription": string; + "boostSettings": string; + "showVisibilitySelectorOnBoost": string; + "showVisibilitySelectorOnBoostDescription": string; + "visibilityOnBoost": string; "logoutConfirm": string; "lastActiveDate": string; "statusbar": string; @@ -2287,7 +2291,11 @@ export interface Locale { "metadataContent": string; "changeAvatar": string; "changeBanner": string; + "updateBanner": string; + "removeBanner": string; "changeBackground": string; + "updateBackground": string; + "removeBackground": string; "verifiedLinkDescription": string; "avatarDecorationMax": string; }; diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml index b632fbad63..c2f8b9e499 100644 --- a/locales/ja-JP.yml +++ b/locales/ja-JP.yml @@ -959,6 +959,10 @@ numberOfPageCache: "ページキャッシュ数" numberOfPageCacheDescription: "多くすると利便性が向上しますが、負荷とメモリ使用量が増えます。" numberOfReplies: "スレッド内の返信数" numberOfRepliesDescription: "この数値を大きくすると、より多くの返信が表示されます。この値を大きくしすぎると、返信が窮屈になり、読めなくなることがあります。" +boostSettings: "ブースト設定" +showVisibilitySelectorOnBoost: "可視性セレクタを表示" +showVisibilitySelectorOnBoostDescription: "無効の場合、以下で定義されるデフォルトの可視性が使用され、セレクタは表示されない。" +visibilityOnBoost: "デフォルトのブースト可視性の設定" logoutConfirm: "ログアウトしますか?" lastActiveDate: "最終利用日時" statusbar: "ステータスバー" @@ -2190,7 +2194,11 @@ _profile: metadataContent: "内容" changeAvatar: "アイコン画像を変更" changeBanner: "バナー画像を変更" + updateBanner: "更新バナー" + removeBanner: "バナーを削除" changeBackground: "背景を変更する" + updateBackground: "背景を更新する" + removeBackground: "背景を削除する" verifiedLinkDescription: "内容にURLを設定すると、リンク先のWebサイトに自分のプロフィールへのリンクが含まれている場合に所有者確認済みアイコンを表示させることができます。" avatarDecorationMax: "最大{max}つまでデコレーションを付けられます。" diff --git a/packages/frontend/src/pages/settings/general.vue b/packages/frontend/src/pages/settings/general.vue index 170ca8936b..4cbf26ff19 100644 --- a/packages/frontend/src/pages/settings/general.vue +++ b/packages/frontend/src/pages/settings/general.vue @@ -191,14 +191,14 @@ SPDX-License-Identifier: AGPL-3.0-only - +
- Disable Visibility Selector - + {{ i18n.ts.showVisibilitySelectorOnBoost }} + - + diff --git a/packages/frontend/src/pages/settings/profile.vue b/packages/frontend/src/pages/settings/profile.vue index fe952b1b73..f98680bbb6 100644 --- a/packages/frontend/src/pages/settings/profile.vue +++ b/packages/frontend/src/pages/settings/profile.vue @@ -253,7 +253,7 @@ function changeAvatar(ev) { function changeBanner(ev) { if ($i.bannerId) { os.popupMenu([{ - text: 'Update Banner', + text: i18n.ts._profile.updateBanner, action: async () => { selectFile(ev.currentTarget ?? ev.target, i18n.ts.banner).then(async (file) => { let originalOrCropped = file; @@ -279,7 +279,7 @@ function changeBanner(ev) { }); }, }, { - text: 'Remove Banner', + text: i18n.ts._profile.removeBanner, action: async () => { const i = await os.apiWithDialog('i/update', { bannerId: null, @@ -317,7 +317,7 @@ function changeBanner(ev) { function changeBackground(ev) { if ($i.backgroundId) { os.popupMenu([{ - text: 'Update Background', + text: i18n.ts._profile.updateBackground, action: async () => { selectFile(ev.currentTarget ?? ev.target, i18n.ts.background).then(async (file) => { let originalOrCropped = file; @@ -343,7 +343,7 @@ function changeBackground(ev) { }); }, }, { - text: 'Remove Banner', + text: i18n.ts._profile.removeBackground, action: async () => { const i = await os.apiWithDialog('i/update', { backgroundId: null,