Skip to content

Commit 1ed5b8e

Browse files
committed
Translate all header values
1 parent 7811d16 commit 1ed5b8e

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/app/code/community/FireGento/GridControl/Model/Processor.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,11 @@ protected function _addAction($params)
130130
$columnConfig[$attribute->getName()] = (string) $attribute;
131131
}
132132
}
133-
133+
134+
if (isset($columnConfig['header'])) {
135+
$columnConfig['header'] = $params->getBlock()->__($columnConfig['header']);
136+
}
137+
134138
// add column to grid block
135139
$params->getBlock()->addColumn($params->getColumn()->getName(), $columnConfig);
136140
}
@@ -220,4 +224,4 @@ protected function removeGridColumn(Mage_Adminhtml_Block_Widget_Grid $grid, $col
220224
$this->setGridProtectedPropertyValue($grid, $columnsPropertyName, $columns);
221225
$this->setGridProtectedPropertyValue($grid, $lastColumnIdPropertyName, $lastColumnId);
222226
}
223-
}
227+
}

0 commit comments

Comments
 (0)