Hello,
public function setColumnTranslation( $columnName, $columnTranslation )
{
$this->columnsTranslations[$columnName] = $columnTranslation;
}
Is it possible to add one parameter “$translate” for this function.
function setColumnTranslation( $columnName, $columnTranslation,$translate=false )
With this parameter, I can use it like this
$view = Piwik_ViewDataTable('table');
....
...
$view->setColumnTranslation('label','myTranslate_date',true);
....
Of course, the same for the functions such as setColumnsTranslations.
Because I create many dataTable with addRowsFromArrayWithIndexLabel().
And ‘label’ have different means, ‘date’,‘name’,etc.
So, if I want to let my plugin to support multi-language, I need to modify many codes in API.php. style_emoticons/<#EMO_DIR#>/sad.gif
I hope piwik can add this feature.style_emoticons/<#EMO_DIR#>/smile.gif