ウェブサイトにDiscourseをデプロイしましたが、開発プロセス中に問題が発生しました。ユーザー登録のための注意書きを「js.create_account.disclaimer」で設定しましたが、登録ページに表示されず、添付画像に示すように、対応するHTMLセクションが空のようです。ご回答をお待ちしております。ご協力いただき、誠にありがとうございます。
日本語ロケールを使用すると発生しますが、中国語や英語では発生しません。
User Yang1 reports that the registration disclaimer configured via js.create_account.disclaimer does not appear on the Japanese locale version of their Discourse site, despite working correctly in Chinese and English. Canapin initially suggested the issue might relate to missing /wizard/steps/corporate configuration, but Yang1 clarified all locales share the same setup. Canapin suspected a bug and moved the topic to bug. sam noted the disclaimer requires tos_url and privacy_policy_url to display, but Canapin confirmed the issue persisted even with those set. sam asked if the I18n string resolves correctly in Japanese mode; Yang1 confirmed it does in the console but still doesn’t render on the page. sam couldn’t reproduce the issue locally, while Canapin later admitted they may have confused the login modal with the registration modal — the disclaimer actually does appear in Japanese on their forum. The issue appears to be either misidentified or environment-specific, with no confirmed bug yet.
ご説明ありがとうございます!バグのようです。Contribute > Bug に移動し、最初の投稿に詳細を追加します。
これだと思います。
これが表示されるには、tos_url と privacy_policy_url を定義する必要があります。
以下のように言及されていました。
私も自分でテストして、あなたの回答を誤解しているのでなければ、この問題を再現できました ![]()
I18n.t("create_account.disclaimer", {tos_link: '/tos', privacy_link: '/privacy'}) のように、Chrome/Firefox のコンソールで正しい文字列が見つかるでしょうか?
![]()
日本語モードの場合。
申し訳ありませんが、これを再現するのに苦労しています。
ローカルで文字列をオーバーライドしたところ、問題なく表示されました。
(先頭のxxxxに注意してください)
@Canapin が再現できたと言っていたので、正確な手順を待っています。
日本語のログインモーダルを登録モーダルではなく、誤って見てしまったようです。私のフォーラムでは、免責事項が日本語ロケールで表示されます。 ![]()