a detail
Archived from the Xataface Developers forum.
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
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
Jean — Thu May 31, 2012 1:54 am
Sorry Steve, but I couldn’t make it work this way.
Jean