• twitter image
  • facebook image
  • youtube image
  • linkedin image
Language: CMS Made Simple Czech CMS Made Simple France CMS Made Simple Spain CMS Made Simple Hungary CMS Made Simple Russia CMS Made Simple Netherlands

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: [SOLVED] Get translations in smarty?
PostPosted: Fri Jul 03, 2009 9:15 pm 
Offline
Power Poster
Power Poster
User avatar

Joined: Fri May 25, 2007 10:57 am
Posts: 1137
Location: Germany
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?

_________________
CMS Made Simple 1.6: Beginner's Guide
Overview of modules, themes, tutorials and websites made with CMS Made Simple
Webseiten mit CMS erstellen


Last edited by Sonya on Sat Jul 04, 2009 9:24 am, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Get translations in smarty?
PostPosted: Fri Jul 03, 2009 9:52 pm 
Offline
Support Guru
Support Guru
User avatar

Joined: Mon Jul 04, 2005 5:12 pm
Posts: 4821
Location: Ferrara, Italy
Sonya wrote:
Is there any simpler way?


http://wiki.cmsmadesimple.org/index.php ... ager  ;)

Alby

_________________
CMSMS Support Team
Italian Admin and Moderator

Plugins: Geolocate hostip, Multiple random image, Image rotator (beta), Content Pagination
Modules: ForumMadeSimple (Howto), TranslationManager
Multilingual: MLE is not CMSMS


Top
 Profile  
 
 Post subject: [SOLVED] Re: Get translations in smarty?
PostPosted: Sat Jul 04, 2009 9:24 am 
Offline
Power Poster
Power Poster
User avatar

Joined: Fri May 25, 2007 10:57 am
Posts: 1137
Location: Germany
alby wrote:
Sonya wrote:
Is there any simpler way?


http://wiki.cmsmadesimple.org/index.php ... ager  ;)



Genius! This is exactly what I have been looking for. Thank you!

_________________
CMS Made Simple 1.6: Beginner's Guide
Overview of modules, themes, tutorials and websites made with CMS Made Simple
Webseiten mit CMS erstellen


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Arvixe - A CMSMS Partner