Page 1 of 1

[SOLVED] Get translations in smarty?

Posted: Fri Jul 03, 2009 9:15 pm
by Sonya
Is there any simple possibility to get strings from translation of the modules in smarty (templates)? I need at least friendlyname of the module and it would be perfect to get the whole langhash as well.

If I output {$gCms|print_r} I can see some vars that I need. But I am not sure how can I get them in smarty:

cms [Object]... Printing [Array] cms [Object]->langhash [Array] de_DE [Array] friendlyname  

Is there any simpler way?

Re: Get translations in smarty?

Posted: Fri Jul 03, 2009 9:52 pm
by alby
Sonya wrote: Is there any simpler way?
http://wiki.cmsmadesimple.org/index.php ... nager  ;)

Alby

[SOLVED] Re: Get translations in smarty?

Posted: Sat Jul 04, 2009 9:24 am
by Sonya
alby wrote:
Sonya wrote: Is there any simpler way?
http://wiki.cmsmadesimple.org/index.php ... nager  ;)
Genius! This is exactly what I have been looking for. Thank you!