How To Create A HTML Block With Language Strings

How to Create A HTML Block With Language Strings

Just wondering if someone can help with this

 

Ive got several language installed and have also made lots of custom html content in html blocks but ive found that the html block i have made wont translate ive tried using Deno Tools to build a new html block with just the code below then saved the new block

I then go to language settings and add language key for the new string _benzweb_custom_html_block1

i was think if i can get this to work it will allow us to translate all my html code and have different translations for the same piece of content

Just wondering were I'm going wrong just after doing the following and adding the new block to the site and loading it just displays a blank box

/------- code for project ------

<div> <p><bx_text:_benzweb_custom_html_block1 /></p>
</div>

/-------- code for project ------

 

just wondering if anyone can help with this could you edit my code or please paste some code below that i may use

Thanks

http://lookscarpy.x10.mx Social network dedicated to carp anglers
Quote · 27 Nov 2010

My Deanos tools does not do html blocks. Only PHP blocks. Perhaps your refering to a PHP block or perhaps by Block tools mod.

Anyhow. I will have to look into langauge keys in html blocks. I don't think it is possable. The method your using is for keys in templates.

As for php blocks. Language keys are sone with the function _t

Example

echo _t('_myNewKey)';

https://www.deanbassett.com
Quote · 27 Nov 2010

This mod is working very well and is free for Premium members... http://www.boonex.com/unity/extensions/entry/Multilingual_HTML_Block

Life is a fatal disease, sexually transmissible - Virginity is carcinogenic! Ask here for vaccine.
Quote · 27 Nov 2010

Thanks Deno

Ive just made new PHP block with block tools and  set it up like

 

Insert Block on Page: Profile

Language Key: _benzweb_custom_html_block1_title

Language Text: Whats Next

PHP Code: echo _t('_benzweb_custom_html_block1');

 

Excellent Deno Works a treat and now give our site much better translations

http://lookscarpy.x10.mx Social network dedicated to carp anglers
Quote · 28 Nov 2010
 
 
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.