Page 1 of 1

SOLVED Having problem outputting frontend translation for you_are_here etc..

Posted: Sun Dec 14, 2008 7:53 pm
by bongobongo
Hi..

Have read Tips & Tricks  #7 in this thread:
http://forum.cmsmadesimple.org/index.ph ... 318.0.html

And are using in the template for the page, this:

Code: Select all

{* Start Breadcrumbs *}
   <div class="breadcrumbs">
        {breadcrumbs starttext='$mle_translation.you_are_here' root='Home' delimiter='»'}
   <hr class="accessibility" />
   </div>
   {* End Breadcrumbs *}
I have created this file:
mle/lang/no_NO.php

having this content:

Code: Select all

<?php $arr_mlelang = array(

'you_are_here' => 'Du er her:',

); ?>
In my frontend for the page in question I just get this output for "You are here"

Code: Select all

$mle_translation.you_are_here
Okay.. then I change this:

Code: Select all

{breadcrumbs starttext='$mle_translation.you_are_here' root='Home' delimiter='»'}
into this:

Code: Select all

{breadcrumbs starttext="$mle_translation.you_are_here" root='Home' delimiter='»'}
just changed the single quotes around the $mle_translation.you_are_here to double quotes.
and now my frontend display:

Code: Select all

Array.you_are_here
Does anyone know what I have done wrong?

Re: Having problem outputting frontend translation for you_are_here etc..

Posted: Sun Dec 14, 2008 10:49 pm
by alby
bongobongo wrote:
into this:

Code: Select all

{breadcrumbs starttext="$mle_translation.you_are_here" root='Home' delimiter='»'}
just changed the single quotes around the $mle_translation.you_are_here to double quotes.
and now my frontend display:

Code: Select all

Array.you_are_here
Does anyone know what I have done wrong?
No, in Tips & Tricks  #7 there is:
{breadcrumbs starttext=`$mle_translation.you_are_here`}
look `...` and not '...'

Alby

Re: Having problem outputting frontend translation for you_are_here etc..

Posted: Sun Dec 14, 2008 10:55 pm
by bongobongo
Wohaaa....

Thanks a lot  ;D

That change made it work!