Labels in LoginForm not changeable
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);
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)
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
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,
I'm reopening the bug.
Was it supposed to be fixed then?
Were you able to reproduce it?
Any points?
Thanks,
Andrei
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
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.