Completely Edit Welcome Message

Upon a new member registering for Discourse, they are sent a message by the system (or whatever account you specify) introducing them to the community. Upon some investigation, it seems I can’t edit the entire message, only certain parts!

This part seems to be included by default!

We believe in civilized community behavior at all times.

Enjoy your stay!

(If you need to communicate with staff members as a new user, just reply to this message.)

Any chance this can change? I don’t know about everyone else, but I would like my main site’s welcome message to be fully adaptable to the individual website!

Upon looking at the Main Discourse Repo, the config /locales/server.en.yml file seems to be where the default message is being hard coded. Any chance this could change?

You should be able to change this in your admin area.

「いいね!」 1

That’s soo strange… I do not see that at all!

Oh wait… my link refers to system_messages.usage_tips.text_body_template which is what is included when a user is sent a message upon sign on.

What you’re referring to is system_messages.welcome_user.text_body_template.

Checking the discourse repo here, it seems the welcome_user action is defined when a user activates his account (so I’m a little confused since my setup doesn’t have any such variable in Customize > Text Content Section

The only editable text content listed for me are the following:

こんにちは、ウェルカムメッセージにまだハードコードされた部分があるようです。また、完全に編集可能にすることをお勧めします。もし私の理解が間違っていたら、ご指摘いただければ幸いです!

カスタマイズできないテキストの例を投稿していただけますか?Discourse 上のすべての表示テキストはローカライズ可能です。もしそうでなければ、修正いたします。

「いいね!」 2

はい!カスタマイズできない部分はここです。“system_messages.usage_tips.text_body_template” には含まれていません。

それは usage_tips のメッセージではありません

「いいね!」 2

つまり、それらは1つのメッセージにまとめられるのですか?

ああ、その通りです。それらは結合されています。system_messages.welcome_user.text_body_template には usage_tips 変数が含まれています。usage_tips 変数は system_messages.usage_tips.text_body_template から生成されます。

「いいね!」 4

なるほど。これらのテンプレートを1つのメッセージにまとめた方が編集しやすくなるかもしれませんね。私の welcome_user テンプレートを編集してきます。:slight_smile:

ただし、そのテキストは他の箇所でも使用されるため、そうするとハードコードされ、複数のメッセージに重複して現れることになります。そのため、現在の形になっているのです。

「いいね!」 4

こんにちは、その回答を完全に信頼しています。Discourse は素晴らしいですね。

では、残る質問は、私のような一般的な管理者にとって、コミュニティ内でのユーザーの動向の中で、これらのメッセージのいくつかがいかにして、いつ、どこで使用されるのかを理解する最良の方法は何かということです。

管理 UI での検索はうまく機能しますが、それは慣れ、運、そして検索技術の組み合わせに依存すると思います。

もしかしたら、ローカルの yml ファイルをスキャンまたは検索することで、慣れの部分をお手伝いできるかもしれません。

https://github.com/discourse/discourse/tree/master/config/locales

こんにちは、リンクをありがとうございます。できる範囲で確認させていただきます。ソフトウェア内に、さまざまなメッセージがどこで使用されているかを示す「ヒント」を必要に応じて表示できれば、素晴らしいと思います。ただし、その実装には多大な時間と労力が必要で、見返りに比べてコストがかかる可能性もあるため、優先度が低いことは理解できます。

このトピックは 31 時間後に自動的に閉鎖されました。新しい返信は許可されていません。