Page 1 of 1

a detail

PostPosted: Fri May 25, 2012 12:01 am
by Jean
Hello Steve,

In the main template jsut a detail, I had to put {$username} outside the translation tag.
Code: Select all
{define_slot name="user_status_logged_in"}{assign var='username' value=$ENV.username}{translate id="Logged in as user" username=$username}Logged in as {/translate} {$username} (<a href="{$APP->url('-action=logout')}"


Have a nice day

Jean

Re: a detail

PostPosted: Mon May 28, 2012 12:30 pm
by shannah
Thanks Jean. It looks like the fr.ini file is missing the "Logged in as user" translation, which may be why you had to add this. The version from the en.ini is:
Code: Select all
Logged in as user = "Logged in as {$username}"

Which should display the username as part of the string, without having to move the $username variable outside the {translate} tags.

If you add an equivalent to the fr.ini it should work there as well.

-Steve

Re: a detail

PostPosted: Thu May 31, 2012 1:54 am
by Jean
Sorry Steve, but I couldn't make it work this way.
Jean