How to add a language key in html or php block?

Hi guys,

 

So, my doubt is. I have multiple languages in my website and I want to add keys so that I can also have the content of the personalized HTML or PHP blocks translated.

 

How can I do that? I'm almost sure that is possible because I think I've seen that on another dolphin website, but I don't know how to do it.

 

Thanks.

 

Best regards,

Pedro Lima

Quote · 9 Mar 2011

Settings-languages settings - add key

It's very simple

Web Development, Multimedia Design and Social Media.
Quote · 9 Mar 2011

 

Settings-languages settings - add key

It's very simple

 

No, you didn't understood my question. :)

 

I know how to change language keys, that's easy. The question isn't that.

 

Do you know when you insert, for instance, in the Homepage, a HTML Block? Well, then you can insert whatever you want there in HTML.

 

What I want to know is, the things I insert, is there any chance for me to translate that so when people change language it can also change the content of that HTML Block?

 

If that's possible, then that's what I want to know how can I do it. :)

Quote · 9 Mar 2011

I know templates have a way of embedding language keys, but i do not think HTML blocks support it.

But it can be done with a php block. Content of the php block is simple.


echo _t('_myNewLanguageKey');


It's that simple. One line of code.


https://www.deanbassett.com
Quote · 9 Mar 2011

It simply worked like a charm! :D

 

Awesome! Thanks a lot! Hehe.

Quote · 9 Mar 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.