• 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




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 6 posts ] 
Author Message
 Post subject: Change language in tag StartExpand
PostPosted: Fri Jan 11, 2008 6:25 pm 
Offline
Forum Members
Forum Members

Joined: Thu Dec 20, 2007 6:27 pm
Posts: 35
Hello,

I have a strange problem with a tag

I used the startExpand tag and want to auto change the expand_text depending on the language page your on.

{startExpand id="expand" expand_text="$mle_translation.klik_omlaag"} i also try it with {startExpand id="expand" expand_text="{$mle_translation.klik_omlaag}"}

but the i get this :  Array.klik_omlaag

When i put {$mle_translation.klik_omlaag} above the startExpand text it works perfectly But inside the tag it does'nt work
any Suggestions how to fix this

Thanx

Wietster


Top
 Profile  
 
 Post subject: Re: Change language in tag StartExpand
PostPosted: Fri Jan 11, 2008 8:06 pm 
Offline
Support Guru
Support Guru
User avatar

Joined: Mon Jul 04, 2005 5:12 pm
Posts: 4820
Location: Ferrara, Italy
wietster wrote:
I used the startExpand tag and want to auto change the expand_text depending on the language page your on.

{startExpand id="expand" expand_text="$mle_translation.klik_omlaag"} i also try it with {startExpand id="expand" expand_text="{$mle_translation.klik_omlaag}"}


From smarty manual, the correct mode with variables is with backtick (`).
Try with  ;):
Code:
{startExpand id="expand" expand_text=`$mle_translation.klik_omlaag`}


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


Last edited by alby on Fri Jan 11, 2008 8:08 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Change language in tag StartExpand
PostPosted: Sun Jan 13, 2008 11:35 am 
Offline
Forum Members
Forum Members

Joined: Thu Dec 20, 2007 6:27 pm
Posts: 35
Alby

Thanks a lot that did the trick


Wietster


Top
 Profile  
 
 Post subject: Re: Change language in tag StartExpand
PostPosted: Thu Jan 24, 2008 2:42 pm 
Offline
Forum Members
Forum Members
User avatar

Joined: Thu Mar 10, 2005 6:00 am
Posts: 109
Location: Sofia, Bulgaria
Hi,

I have a similar question:
How can I edit the following:

{anchor anchor='main' text='^ Top'}

When I put it as:

{anchor anchor='main' text='^ {$mle_translation.top}'}
or
{anchor anchor='main' text='^ `$mle_translation.top`'}
or
{anchor anchor='main' text='^ $mle_translation.top'}

It doesn't work. I have defined the "top" string in my lang file, but I can't make it to work.
Thanks in advance!


Top
 Profile  
 
 Post subject: Re: Change language in tag StartExpand
PostPosted: Thu Jan 24, 2008 4:46 pm 
Offline
Support Guru
Support Guru
User avatar

Joined: Mon Jul 04, 2005 5:12 pm
Posts: 4820
Location: Ferrara, Italy
jd wrote:
{anchor anchor='main' text='^ Top'}


Use {anchor anchor='main' text=`$mle_translation.top`} and in lang file:
'top' => '#005E What you want',

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: Re: Change language in tag StartExpand
PostPosted: Fri Jan 25, 2008 9:32 am 
Offline
Forum Members
Forum Members
User avatar

Joined: Thu Mar 10, 2005 6:00 am
Posts: 109
Location: Sofia, Bulgaria
10x a lot alby!
I just discovered the MLE fork a few days ago and it is really useful since it solved issues I have had with bilingual websites for years :)

10x a lot again! :)


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 6 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:  
Arvixe - A CMSMS Partner