2

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

Aasim Goriya
5,4622 gold badges30 silver badges54 bronze badges
asked May 20, 2013 at 9:44

1 Answer 1

1

Here is how I usually do it.
Create a block with this content:

{{block type="core/template" template="custom/template/path.phtml"}}

Then I create the template customer/template/path.phtml and inside it I'm able to use: $this->__('Text') or Mage::helper('checkout')->__('Text').

If you don't like this approach, You can override Mage_Cms_Model_Template_Filter (that extends Mage_Core_Model_Email_Template_Filter) and add your translate directive similar to Mage_Core_Model_Email_Template_Filter::blockDirective() or Mage_Core_Model_Email_Template_Filter::skinDIrective().

answered May 20, 2013 at 10:05
0

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.