Magento Forum

Translating fields labels in admin
 
drach
Jr. Member
 
Total Posts:  10
Joined:  2007-10-27
 

Hi!

Can someone tell me how can I translate labels for fields in for example cateogries section (add/edit category) in admin (without changing frontend_label in eav_attribute in MySQL)?

 
Magento Community Magento Community
Magento Community
Magento Community
 
Moshe
Magento Team
 
Avatar
Total Posts:  1770
Joined:  2007-08-07
Los Angeles
 

Hi, very good question smile

open app/code/core/Mage/Admninhtml/Block/Widget/Form.php on approx. line 89 replace:

'label' => $attribute->getFrontend()->getLabel(),
with:
'label' => $this->__($attribute->getFrontend()->getLabel()),

Now you can add translations for labels in .csv files.

This will be added in future releases.

 
Magento Community Magento Community
Magento Community
Magento Community
 
drach
Jr. Member
 
Total Posts:  10
Joined:  2007-10-27
 

Ohhh God - you’re great!! Thanks!!

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top