From b869fb70686db094f5436ab380039e1b0adcb66c Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Sat, 31 Oct 2015 18:20:55 +1030 Subject: [PATCH] Fix check for whether there is a translation for a group name --- framework/core/src/Api/Serializer/GroupSerializer.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/framework/core/src/Api/Serializer/GroupSerializer.php b/framework/core/src/Api/Serializer/GroupSerializer.php index 00f8b16fa..393a00758 100644 --- a/framework/core/src/Api/Serializer/GroupSerializer.php +++ b/framework/core/src/Api/Serializer/GroupSerializer.php @@ -69,9 +69,9 @@ class GroupSerializer extends AbstractSerializer */ private function translateGroupName($name) { - $translation = $this->translator->trans('core.group.'.strtolower($name)); + $translation = $this->translator->trans($key = 'core.group.'.strtolower($name)); - if ($translation !== $name) { + if ($translation !== $key) { return $translation; }