From f8bedc03d27146a15b275edeb6cade8af759a105 Mon Sep 17 00:00:00 2001 From: pabois <pierreandre.boissinot@noesya.coop> Date: Fri, 16 Dec 2022 16:23:06 +0100 Subject: [PATCH] quickfix default language --- app/models/concerns/with_git.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/models/concerns/with_git.rb b/app/models/concerns/with_git.rb index 467a750ff..3fc35c5cc 100644 --- a/app/models/concerns/with_git.rb +++ b/app/models/concerns/with_git.rb @@ -16,7 +16,12 @@ module WithGit # Handle legacy language-less websites # TODO I18n: Right now, we use the language of the website. It HAS TO get the language from the object including this concern. path = "content/" - path += "#{website.languages.first.iso_code}/" if website.languages.any? + if website.languages.many? + # todo totalement arbitraire + path += "fr/" + else + path += "#{website.languages.first.iso_code}/" + end path end -- GitLab