Merge pull request #4628 from caugner/move-welcome-topic-to-i18n

FIX: Move Welcome topic to I18n
This commit is contained in:
Régis Hanol
2016-12-27 10:31:03 +01:00
committed by GitHub
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: I18n.t('assets_topic_title'), 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)