Disclaimer in registration modal absent from Japanese locale

AI-generated summary

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.

ウェブサイトにDiscourseをデプロイしましたが、開発プロセス中に問題が発生しました。ユーザー登録のための注意書きを「js.create_account.disclaimer」で設定しましたが、登録ページに表示されず、添付画像に示すように、対応するHTMLセクションが空のようです。ご回答をお待ちしております。ご協力いただき、誠にありがとうございます。

日本語ロケールを使用すると発生しますが、中国語や英語では発生しません。


こんにちは Yang1 さん!

このテキストは、アカウント作成モーダルに /wizard/steps/corporate が入力されている場合(つまり、Discourse が会社に属している場合)にのみ表示されます。

:point_down:

こんにちは。中国語、英語、日本語版で構成される多言語ウェブサイトを開発しました。「/wizard/steps/corporate」という参照について、よくわかりません。3つのウェブサイトすべてで同じ設定を使用しています。登録ページの免責事項は、中国語版と英語版では正しく表示されますが、日本語版では表示されません。添付画像の詳細を参照してください。この問題の原因を理解するのを手伝っていただけますか?ご回答をお待ちしております。



ご説明ありがとうございます!バグのようです。Contribute > Bug に移動し、最初の投稿に詳細を追加します。

これだと思います。

これが表示されるには、tos_url と privacy_policy_url を定義する必要があります。

以下のように言及されていました。

私も自分でテストして、あなたの回答を誤解しているのでなければ、この問題を再現できました :slight_smile:

I18n.t("create_account.disclaimer", {tos_link: '/tos', privacy_link: '/privacy'}) のように、Chrome/Firefox のコンソールで正しい文字列が見つかるでしょうか?

image

日本語モードの場合。

もちろん、Google Chrome のコンソールにはこの文字列が表示されます。これは、「js.create_account_disclaimer」を使用して関連コンテンツを設定したためです。しかし、それでも日本語ウェブサイトの登録ページには表示されません。一方、同じ設定は中国語および英語のウェブサイトでは正常に機能します。

申し訳ありませんが、これを再現するのに苦労しています。

ローカルで文字列をオーバーライドしたところ、問題なく表示されました。

(先頭のxxxxに注意してください)

@Canapin が再現できたと言っていたので、正確な手順を待っています。

日本語のログインモーダルを登録モーダルではなく、誤って見てしまったようです。私のフォーラムでは、免責事項が日本語ロケールで表示されます。 :person_facepalming: