From 1edf92b5bb270cfec590d856a594b85e531ca591 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?KMY=EF=BC=88=E9=9B=AA=E3=81=82=E3=81=99=E3=81=8B=EF=BC=89?= Date: Thu, 7 Mar 2024 12:00:43 +0900 Subject: [PATCH] =?UTF-8?q?Add:=20#626=20=E8=B3=BC=E8=AA=AD=E8=A8=B1?= =?UTF-8?q?=E5=8F=AF=E3=82=92=E5=B0=86=E6=9D=A5=E7=9A=84=E3=81=AB=E5=89=8A?= =?UTF-8?q?=E9=99=A4=E3=81=99=E3=82=8B=E6=B3=A8=E6=84=8F=E6=9B=B8=E3=81=8D?= =?UTF-8?q?=20(#645)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../settings/privacy_extra/show.html.haml | 27 ++++++++++--------- config/locales/en.yml | 2 ++ config/locales/ja.yml | 2 ++ 3 files changed, 19 insertions(+), 12 deletions(-) diff --git a/app/views/settings/privacy_extra/show.html.haml b/app/views/settings/privacy_extra/show.html.haml index 14ad50e261..25ceaa2110 100644 --- a/app/views/settings/privacy_extra/show.html.haml +++ b/app/views/settings/privacy_extra/show.html.haml @@ -18,18 +18,6 @@ .fields-group = ff.input :translatable_private, wrapper: :with_label, kmyblue: true, label: I18n.t('simple_form.labels.defaults.setting_translatable_private') - .fields-group - = f.input :subscription_policy, - as: :radio_buttons, - collection: %w(allow followers_only block), - collection_wrapper_tag: 'ul', - hint: t('simple_form.hints.defaults.subscription_policy'), - item_wrapper_tag: 'li', - kmyblue: true, - label: t('simple_form.labels.defaults.subscription_policy'), - label_method: ->(item) { safe_join([t("simple_form.labels.subscription_policy.#{item}")]) }, - wrapper: :with_floating_label - .fields-group = ff.input :allow_quote, wrapper: :with_label, kmyblue: true, label: I18n.t('simple_form.labels.defaults.setting_allow_quote'), hint: false @@ -48,5 +36,20 @@ .fields-group = ff.input :reject_send_limited_to_suspects, kmyblue: true, as: :boolean, wrapper: :with_label, label: I18n.t('simple_form.labels.defaults.setting_reject_send_limited_to_suspects'), hint: I18n.t('simple_form.hints.defaults.setting_reject_send_limited_to_suspects') + %h4= t('privacy_extra.will_remove_settings') + %p.hint= t('privacy_extra.will_remove_settings_hint_html') + + .fields-group + = f.input :subscription_policy, + as: :radio_buttons, + collection: %w(allow followers_only block), + collection_wrapper_tag: 'ul', + hint: t('simple_form.hints.defaults.subscription_policy'), + item_wrapper_tag: 'li', + kmyblue: true, + label: t('simple_form.labels.defaults.subscription_policy'), + label_method: ->(item) { safe_join([t("simple_form.labels.subscription_policy.#{item}")]) }, + wrapper: :with_floating_label + .actions = f.button :button, t('generic.save_changes'), type: :submit diff --git a/config/locales/en.yml b/config/locales/en.yml index 9ae727b098..c868761449 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -1891,6 +1891,8 @@ en: stop_deliver: 配送停止 stop_deliver_hint_html: Mastodonの投稿を、他のソフトウェアでは自由に検索することができます。Mastodon内で行ったプライバシーの設定は無視され、あなたの投稿が意図しない人に見つかるおそれがあります。ここでは、他のサーバーやソフトウェアであなたの投稿が見つからないようにする設定が可能です。ただしリスクは伴います。 title: Privacy extra settings + will_remove_settings: This function will be removed + will_remove_settings_hint_html: This function will be removed kb14.0 or next LTS. privacy_policy: title: Privacy Policy reactions: diff --git a/config/locales/ja.yml b/config/locales/ja.yml index 3ba90f3f41..13ab735409 100644 --- a/config/locales/ja.yml +++ b/config/locales/ja.yml @@ -1876,6 +1876,8 @@ ja: stop_deliver: 配送制限 stop_deliver_hint_html: Mastodonの投稿を、他のソフトウェアでは自由に検索することができます。Mastodon内で行ったプライバシーの設定は無視され、あなたの投稿が意図しない人に見つかるおそれがあります。ここでは、他のサーバーやソフトウェアであなたの投稿が見つからないようにする設定が可能です。ただしリスクは伴います。 title: プライバシー追加設定 + will_remove_settings: 削除予定の設定 + will_remove_settings_hint_html: これらの設定は、慎重に検討を重ねた結果、バージョン14または次のLTSのどちらか早い方で削除される予定です。代替の設定はありませんので、ご承知おきください。 privacy_policy: title: プライバシーポリシー reactions: