Skip to content
Snippets Groups Projects
Unverified Commit 25079d91 authored by Pierre-André Boissinot's avatar Pierre-André Boissinot Committed by GitHub
Browse files

Merge pull request #1486 from noesya/fix_website_creation_in_language_not_default

Fix création des pages avec le bon titre quand on créé un site avec une langue par défaut autre que le français
parents 3c868dc8 be303ab9
No related merge requests found
......@@ -103,8 +103,8 @@ module Communication::Website::Page::WithType
def initialize_special_page
i18n_key = "communication.website.pages.defaults.#{type_key}"
self.title = I18n.t("#{i18n_key}.title")
self.slug = I18n.t("#{i18n_key}.slug")
self.title = I18n.t("#{i18n_key}.title", locale: language.iso_code)
self.slug = I18n.t("#{i18n_key}.slug", locale: language.iso_code)
self.parent = default_parent
self.full_width = full_width_by_default?
self.published = published_by_default?
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment