having Album multilingual

This is a FORK of the CMS Made Simple project and is not oficially supported in any way by the CMS Made Simple development team.
Locked
nicmare
Power Poster
Power Poster
Posts: 1150
Joined: Sat Aug 25, 2007 9:55 am

having Album multilingual

Post by nicmare »

I am really wondering why there is no thread about this issue.
In my album template is the returnlink:
{if $returnlink}Return to the album index page{/if}
as you can see it is just in one language.
i added lang=$lang in smarty code in my page where i want the album to appear.
but how can i use the vars from the external language files?
i spotted $lang['return'].
therefore i tried {$lang>return} or {$lang('return')}
but nothing works.
any ideas?
thanks a lot!
Jos
Support Guru
Support Guru
Posts: 4019
Joined: Wed Sep 05, 2007 8:03 pm

Re: having Album multilingual

Post by Jos »

Language variables are not available in a Smarty template. They have to be assigned to a smarty variable in the php-code first.
nicmare
Power Poster
Power Poster
Posts: 1150
Joined: Sat Aug 25, 2007 9:55 am

Re: having Album multilingual

Post by nicmare »

oh, what a pitty. thanks anyways
Peciura

Re: having Album multilingual

Post by Peciura »

A month ago i used "TranslationManager" module http://dev.cmsmadesimple.org/projects/trmanager. This way created small dictionary for some modules.
Locked

Return to “[locked] CMSMS MLE fork”