I have a multilingual site and for display language-specific block i have to create a different static block for each language-specific store.
Is there any methods or way available to translate static block content.
I am displaying a static block from cms pages.
I have check this thread how to create multilingual static block
Best Answer
Here is how I usually do it.
Create a block with this content:
Then I create the template
customer/template/path.phtml
and inside it I'm able to use:$this->__('Text')
orMage::helper('checkout')->__('Text')
.If you don't like this approach, You can override
Mage_Cms_Model_Template_Filter
(that extendsMage_Core_Model_Email_Template_Filter
) and add your translate directive similar toMage_Core_Model_Email_Template_Filter::blockDirective()
orMage_Core_Model_Email_Template_Filter::skinDIrective()
.