Translating HTML Block

Hi

  I created one HTML Block and I was able to make a Key_language for the title and then I could translate the title in 3 languages.

  Now, I need to translate the HTML block content.  How can I make it?
  Is that possible to make a key_language and put it inside the HTML Block? 

Quote · 17 Oct 2011

I don't believe there is a proper way to localize HTML blocks to specific languages.  However if you use one of the many mods here (Daenos tools is a good free one) to be able to add PHP blocks, then you can place a single language variable inside the block as content, and then manage it's content in your language settings.

Add your PHP block with the following code (changing "block_lang_key" for your language key).

<?php echo(_t("block_lang_key")); ?>

That should work.  I haven't tested it, but can't think of a reason it wouldn't work.  Let me know.

Quote · 17 Oct 2011
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.