Merge pull request #1224 from scottbedard/patch-4

Translate component group
This commit is contained in:
Samuel Georges 2015-06-27 09:26:18 +10:00
commit 3e95ee555f
1 changed files with 4 additions and 4 deletions

View File

@ -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)
{