I need translate the label "browse files" and "upload files" for a extension which uses default uploader of magento.
In Mage_Adminhtml_Block_Media_Uploader i changed the function _prepareLayout()
protected function _prepareLayout()
{
$this->setChild(
'browse_button',
$this->getLayout()->createBlock('adminhtml/widget_button')
->addData(array(
'id' => $this->_getButtonId('browse'),
'label' => Mage::helper('adminhtml')->__('Browse Files...'),
'type' => 'button',
'onclick' => $this->getJsObjectName() . '.browse()'
))
);
$this->setChild(
'upload_button',
$this->getLayout()->createBlock('adminhtml/widget_button')
->addData(array(
'id' => $this->_getButtonId('upload'),
'label' => Mage::helper('adminhtml')->__('Upload Files'),
'type' => 'button',
'onclick' => $this->getJsObjectName() . '.upload()'
))
);
$this->setChild(
'delete_button',
$this->getLayout()->createBlock('adminhtml/widget_button')
->addData(array(
'id' => '{{id}}-delete',
'class' => 'delete',
'type' => 'button',
'label' => Mage::helper('adminhtml')->__('Remove'),
'onclick' => $this->getJsObjectName() . '.removeFile(\'{{fileId}}\')'
))
);
return parent::_prepareLayout();
}
to
protected function _prepareLayout()
{
$this->setChild(
'browse_button',
$this->getLayout()->createBlock('adminhtml/widget_button')
->addData(array(
'id' => $this->_getButtonId('browse'),
'label' => Mage::helper('adminhtml')->__('Buscar Archivos'),
'type' => 'button',
'onclick' => $this->getJsObjectName() . '.browse()'
))
);
$this->setChild(
'upload_button',
$this->getLayout()->createBlock('adminhtml/widget_button')
->addData(array(
'id' => $this->_getButtonId('upload'),
'label' => Mage::helper('adminhtml')->__('Subir Archivos'),
'type' => 'button',
'onclick' => $this->getJsObjectName() . '.upload()'
))
);
$this->setChild(
'delete_button',
$this->getLayout()->createBlock('adminhtml/widget_button')
->addData(array(
'id' => '{{id}}-delete',
'class' => 'delete',
'type' => 'button',
'label' => Mage::helper('adminhtml')->__('Remove'),
'onclick' => $this->getJsObjectName() . '.removeFile(\'{{fileId}}\')'
))
);
return parent::_prepareLayout();
}

but without results
media/uploader.phtml– Marius Feb 28 '14 at 13:16