[SOLVED] Customized welcome message for user logged in
|
rocsca
![]()
Joined: 2009-05-12
Posts: 75 |
Posted: Wed, 2009-10-07 12:48
|
|
Hello all! Here my customized gallery theme (for login use the couple test/test): http - <colon+double slash> - www.rocsca.it - <slash> - gallery2 - <slash> I would like to show the message "Welcome <full name of the logged user>", possibly localized. I would like to display it right aligned immediately down of the two <hr> that appear in the page when user logs in (Whatever page of gallery is browsed). How could I do? thanks, rocsca |
|


Posts: 22892
http://codex.gallery2.org/Gallery2:Themes:Reference:Variables
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 75
Thanks Dave,
I have succesfully added welcome message just following the doc you swoh me..
Sorry, I need an update italian localization. Either for cart module. Could I give my contribution?
rocsca
Posts: 75
I tried to localize the welcome message, and I saw thet the message already exist: it appear when the login page is load while the user is already logged (at the end of UserLogin.tpl):
{else} {* User is already logged in *}
<div class="gbBlock">
<h4> {g->text text="Welcome, %s!" arg1=$user.fullName|default:$user.userName} </h4>
</div>
{/if}
So I have reported the lines:
<div class="gbBlock">
<h4> {g->text text="Welcome, %s!" arg1=$user.fullName|default:$user.userName} </h4>
</div>
everywhere in template files of my customized themes wherever I want to display the welcome message.
The default language is English (UK) but I set the check of browser settings. Moreover the setting of my browser is for italian language (Infact when I access gallery I see all descriptions in Italian language), but the welcome message remain untraslated.
Why?
What is the problem?
I have already emnpty the cache of the browser and the one of template on the server. But nothing of good has happened.
rocsca
Posts: 22892
Never did any translation so can only offer:
http://codex.gallery2.org/Gallery2:Localization
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 75
I cant get my message localized.. I don't understand why..
Any suggestion?
rocsca
Posts: 75
Look at 'Hard to mantain localization on Windows platform' thread.. there is the solution to this issue.
rocsca