SOLVED Having problem outputting frontend translation for you_are_here etc..

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
bongobongo
Forum Members
Forum Members
Posts: 33
Joined: Thu Dec 11, 2008 11:41 pm

SOLVED Having problem outputting frontend translation for you_are_here etc..

Post 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?
Last edited by bongobongo on Sun Dec 14, 2008 10:55 pm, edited 1 time in total.
alby

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

Post 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
bongobongo
Forum Members
Forum Members
Posts: 33
Joined: Thu Dec 11, 2008 11:41 pm

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

Post by bongobongo »

Wohaaa....

Thanks a lot  ;D

That change made it work!
Locked

Return to “[locked] CMSMS MLE fork”