From 953f81176b7106db162250ea47c3e5eaf187b5aa 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 --- src/Api/Serializer/GroupSerializer.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Api/Serializer/GroupSerializer.php b/src/Api/Serializer/GroupSerializer.php index 00f8b16fa..393a00758 100644 --- a/src/Api/Serializer/GroupSerializer.php +++ b/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; }