Magento Forum

Translate Inline for backend
 
dev722z
Member
 
Total Posts:  65
Joined:  2008-04-08
 

Hi,

I tried to use the translate inline utility in backend but it doesn’t work.
Data is saved in DB but no change when refreshing page.
That’s nothing to do with cache.

In saveTranslate() function in app/code/core/Mage/Core/Model/Mysql4/Translate/String.php :

if (is_null($storeId)) {
            $storeId 
Mage::app()->getStore()->getId();
        
}

Mage::app()->getStore()->getId() seems to always return 1 but storeId for backend is 0 (cf. core_store table).
If I change store_id value to 0 in DB changes are visible when I refresh the page.

Somebody can confirm that the translate inline utility in backend doesn’t work before I create a ticket in Bug Tracking ?

dev722z

 
Magento Community Magento Community
Magento Community
Magento Community
 
ryckezas
Jr. Member
 
Total Posts:  14
Joined:  2008-04-14
 

Same problem for me, did you find the solution?

 
Magento Community Magento Community
Magento Community
Magento Community
 
dev722z
Member
 
Total Posts:  65
Joined:  2008-04-08
 
ryckezas - 27 May 2008 04:16 AM

Same problem for me, did you find the solution?

nope, I switch to this when I want to translate backend:

if (is_null($storeId)) {
            
//$storeId = Mage::app()->getStore()->getId();
            
$storeId 0;
        
}

dev722z

 
Magento Community Magento Community
Magento Community
Magento Community
 
joolsr
Sr. Member
 
Total Posts:  99
Joined:  2008-01-16
 

hmm, I changed the code as you suggested, dev722z, but it still wont translate on the backend. The functionality is there, but the changes dont stick ..... Any ideas ? I’m using most up to date version of Magento too

 
Magento Community Magento Community
Magento Community
Magento Community
 
joolsr
Sr. Member
 
Total Posts:  99
Joined:  2008-01-16
 

the cache got me again !! I forget that it even caches translations !!

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