From 6eaa291f8870ca39732fde562cf1cad92f4593b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20G=C3=BCnther?= Date: Wed, 22 Mar 2017 11:18:27 +0100 Subject: [PATCH] Generate default group labels with Setting.default_language --- app/models/type/attribute_groups.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/type/attribute_groups.rb b/app/models/type/attribute_groups.rb index 61806e91d9..16e3b85327 100644 --- a/app/models/type/attribute_groups.rb +++ b/app/models/type/attribute_groups.rb @@ -95,7 +95,7 @@ module Type::AttributeGroups ordered = [] default_groups.map do |groupkey, label_key| members = values[groupkey] - ordered << [I18n.t(label_key), members.sort] if members.present? + ordered << [I18n.t(label_key, locale: Setting.default_language), members.sort] if members.present? end ordered