mirror of
https://github.com/discourse/discourse.git
synced 2025-05-23 23:31:18 +08:00
FIX: missing translation of guidelines_topic.body (#25505)
Broken in https://github.com/discourse/discourse/pull/25253
This commit is contained in:
@ -53,6 +53,9 @@ module SeedData
|
||||
|
||||
def topics(site_setting_names: nil, include_welcome_topics: true, include_legal_topics: true)
|
||||
staff_category = Category.find_by(id: SiteSetting.staff_category_id)
|
||||
feedback_category = Category.find_by(id: SiteSetting.meta_category_id)
|
||||
feedback_category_hashtag =
|
||||
feedback_category ? "##{feedback_category.slug}" : "#site-feedback"
|
||||
|
||||
topics = []
|
||||
|
||||
@ -79,7 +82,12 @@ module SeedData
|
||||
topics << {
|
||||
site_setting_name: "guidelines_topic_id",
|
||||
title: I18n.t("guidelines_topic.title"),
|
||||
raw: I18n.t("guidelines_topic.body", base_path: Discourse.base_path),
|
||||
raw:
|
||||
I18n.t(
|
||||
"guidelines_topic.body",
|
||||
base_path: Discourse.base_path,
|
||||
feedback_category_hashtag: feedback_category_hashtag,
|
||||
),
|
||||
category: staff_category,
|
||||
static_first_reply: true,
|
||||
}
|
||||
@ -109,10 +117,6 @@ module SeedData
|
||||
""
|
||||
end
|
||||
|
||||
feedback_category = Category.find_by(id: SiteSetting.meta_category_id)
|
||||
feedback_category_hashtag =
|
||||
feedback_category ? "##{feedback_category.slug}" : "#site-feedback"
|
||||
|
||||
topics << {
|
||||
site_setting_name: "welcome_topic_id",
|
||||
title: I18n.t("discourse_welcome_topic.title", site_title: SiteSetting.title),
|
||||
|
Reference in New Issue
Block a user