a detail

A place to discuss development of the Xataface core.

a detail

Postby Jean » Fri May 25, 2012 12:01 am

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
Jean
 
Posts: 259
Joined: Wed Nov 07, 2007 1:30 am
Location: Pau, France

Re: a detail

Postby shannah » Mon May 28, 2012 12:30 pm

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
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Re: a detail

Postby Jean » Thu May 31, 2012 1:54 am

Sorry Steve, but I couldn't make it work this way.
Jean
Jean
 
Posts: 259
Joined: Wed Nov 07, 2007 1:30 am
Location: Pau, France


Return to Xataface Developers

Who is online

Users browsing this forum: No registered users and 21 guests

cron
Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved