[SOLVED] Get translations in smarty?

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
Sonya

[SOLVED] Get translations in smarty?

Post 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?
Last edited by Sonya on Sat Jul 04, 2009 9:24 am, edited 1 time in total.
alby

Re: Get translations in smarty?

Post by alby »

Sonya wrote: Is there any simpler way?
http://wiki.cmsmadesimple.org/index.php ... nager  ;)

Alby
Sonya

[SOLVED] Re: Get translations in smarty?

Post 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!
Post Reply

Return to “Developers Discussion”