[SOLVED] Customized welcome message for user logged in

rocsca
rocsca's picture

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

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 22892
Posted: Wed, 2009-10-07 13:42
 
rocsca
rocsca's picture

Joined: 2009-05-12
Posts: 75
Posted: Thu, 2009-10-08 09:34

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

 
rocsca
rocsca's picture

Joined: 2009-05-12
Posts: 75
Posted: Thu, 2009-10-08 16:06

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

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 22892
Posted: Fri, 2009-10-09 05:16

Never did any translation so can only offer:
http://codex.gallery2.org/Gallery2:Localization

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
rocsca
rocsca's picture

Joined: 2009-05-12
Posts: 75
Posted: Mon, 2009-10-12 14:48

I cant get my message localized.. I don't understand why..

Any suggestion?

rocsca

 
rocsca
rocsca's picture

Joined: 2009-05-12
Posts: 75
Posted: Fri, 2010-01-15 09:20

Look at 'Hard to mantain localization on Windows platform' thread.. there is the solution to this issue.

rocsca