From cb38107c25b6aea56bab9b830945a77bfb2be43a Mon Sep 17 00:00:00 2001 From: Scott Bedard Date: Fri, 19 Jun 2015 22:22:18 -0400 Subject: [PATCH] Translate component group Just a minor convenience, I think it makes sense to have this property auto-translated as well. --- modules/cms/classes/ComponentHelpers.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/cms/classes/ComponentHelpers.php b/modules/cms/classes/ComponentHelpers.php index 5598244b2..d1f895a0a 100644 --- a/modules/cms/classes/ComponentHelpers.php +++ b/modules/cms/classes/ComponentHelpers.php @@ -15,7 +15,7 @@ class ComponentHelpers * @param mixed $component The component object * @param boolean $addAliasProperty Determines if the Alias property should be added to the result. * @param boolean $returnArray Determines if the method should return an array. - * @return string + * @return string */ public static function getComponentsPropertyConfig($component, $addAliasProperty = true, $returnArray = false) { @@ -53,7 +53,7 @@ class ComponentHelpers /* * Translate human values */ - $translate = ['title', 'description', 'options']; + $translate = ['title', 'description', 'options', 'group']; foreach ($property as $name => $value) { if (!in_array($name, $translate)) { continue; @@ -100,7 +100,7 @@ class ComponentHelpers /** * Returns a component name. * @param mixed $component The component object - * @return string + * @return string */ public static function getComponentName($component) { @@ -115,7 +115,7 @@ class ComponentHelpers /** * Returns a component description. * @param mixed $component The component object - * @return string + * @return string */ public static function getComponentDescription($component) {