FIX: Move Welcome topic to I18n

This commit is contained in:
Claas Augner
2016-12-26 15:56:33 +01:00
parent d46b0a7251
commit e129e656d1
3 changed files with 19 additions and 14 deletions

View File

@ -42,8 +42,7 @@ if seed_welcome_topics
PostCreator.create(Discourse.system_user, raw: I18n.t('assets_topic_body'), title: "Assets for the site design", skip_validations: true, category: staff ? staff.name : nil)
welcome = File.read(Rails.root + 'docs/WELCOME-TO-DISCOURSE.md')
post = PostCreator.create(Discourse.system_user, raw: welcome, title: "Welcome to Discourse", skip_validations: true)
post = PostCreator.create(Discourse.system_user, raw: I18n.t('discourse_welcome_topic.body'), title: I18n.t('discourse_welcome_topic.title'), skip_validations: true)
post.topic.update_pinned(true, true)
lounge = Category.find_by(id: SiteSetting.lounge_category_id)