2013-01-21 29 views

回答

6

這是可能的,其中用於確定應該使用哪個翻譯塊覆蓋模塊名稱:

class Acme_GreatModule_Block_Customer_Account_Navigation extends Mage_Customer_Block_Account_Navigation 
{ 
    /** 
    * Set the original module name to avoid breaking translations 
    */ 
    public function __construct() 
    { 
     parent::__construct(); 
     $this->setModuleName('Mage_Customer'); 
    }  
... 
+0

請註明作爲回答你的問題,作品就像一個魅力(也有'_construct()'方法)。 – hakre