Labels in LoginForm not changeable

Posted by Community Admin on 04-Aug-2018 15:03

Labels in LoginForm not changeable

All Replies

Posted by Community Admin on 11-Jan-2011 00:00

Hi Telerik staff,

I'm trying to use a Telerik.Sitefinity.Security.Web.UI.LoginForm in one of my UserControls and have problems changing the labels of that control. The code I'm using is as follows (in the Page_Load event):

LoginForm lf = new LoginForm();
 
lf.UserNameLabelText = "Benutzername";
lf.PasswordLabelText = "Passwort";
lf.LoginButtonText = "Einloggen";
 
panelLogin.Controls.Add(lf);

That doesn't seem to work. The labels are still in English. What's wrong here?

Best regards,
David Knittl

Posted by Community Admin on 19-Jan-2011 00:00

Hi David,

The option to manually set the labels in the login form should be available, but unfortunately isn't due to a bug. I have logged this issue, and it is pending to be fixed in one of the next internal builds.

However, it is possible to localize the labels used in the login form to any language through Sitefinity's "Interface Labels & Messages" feature (under the Administration menu). You may add languages to the frontend ("public content") and/or backend settings, then add translation to the labels that take part in the login form.
Here's how:

1. On the main menu go to Administration -> Settings
2. Under Basic Settings, click "Languages".
3. Depending on the destination of your custom login page (frontend / backend) add German as a language, and Save the changes.
4. On the main menu go to Administration -> Interface Labels & Messages.
5. Locate the following lables, and edit their German translation (for easy locating, select "Labels" under "Filter by type" on the right filter bar):

For the UserNameLabelText: Username (Used in : Labels , Resource key : Username)
For the PasswordLabelText: Password (Used in : Labels , Resource key : Password)
For the LoginButtonText: Login (Used in : Labels , Resource key : LoginCaps)


Once those are translated and saved, restart your server, and the login form should be localized whenever German language is used.

Best wishes,

Alon Rotem
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

Posted by Community Admin on 24-Mar-2011 00:00

Hi,

I am using Sitefinity 4.0.1238.0. In Administration -> Settings I changed the 
language to English (UK). I then went to the Interface Labels & Messages
and changed the LoginToManage label to something different.

On the Login screen it does not change. Does that mean, the bug is not
fixed yet?

Thanks,
Andrei

Posted by Community Admin on 28-Mar-2011 00:00

Hello Andrei,

Thank you for reporting this. I'm reopening the bug. You can follow the issue here: http://www.telerik.com/support/pits.aspx#/public/sitefinity/5267

Kind regards,
Petya
the Telerik team

Posted by Community Admin on 28-Mar-2011 00:00

Petya,

 I'm reopening the bug.
Was it supposed to be fixed then?
Were you able to reproduce it?
Any points?

Thanks,
Andrei

Posted by Community Admin on 31-Mar-2011 00:00

Hi Andrey,

Yes, we managed to reproduce the bug.
A fix is planned for the Q1 official release due on 13th April.

100 points were added tor your account.

Regards,
Kalina
The Sitefinity Team

Posted by Community Admin on 15-Jun-2012 00:00

I realize ths is an old thread but i am using the UserNameLabelText property in <sf:PasswordRecoveryForm  UserNameLabelText="Email"    .../>   and it is not taking. 
The label still says Username.

Is this the bug or am i doing something wrong? 

Thank you.

This thread is closed