More in this section

Forums / Bugs & Issues / Labels in LoginForm not changeable

Labels in LoginForm not changeable

7 posts, 0 answered
  1. David
    David avatar
    13 posts
    Registered:
    23 Jun 2010
    11 Jan 2011
    Link to this post
    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
  2. Alon Rotem
    Alon Rotem avatar
    26 posts
    Registered:
    29 Feb 2016
    19 Jan 2011
    Link to this post
    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
  3. Andrei
    Andrei avatar
    553 posts
    Registered:
    27 Nov 2008
    24 Mar 2011
    Link to this post
    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
  4. Petya
    Petya avatar
    123 posts
    Registered:
    30 May 2017
    28 Mar 2011
    Link to this post
    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
  5. Andrei
    Andrei avatar
    553 posts
    Registered:
    27 Nov 2008
    28 Mar 2011
    Link to this post
    Petya,

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

    Thanks,
    Andrei
  6. Kalina
    Kalina avatar
    176 posts
    Registered:
    27 Oct 2016
    31 Mar 2011
    Link to this post
    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
  7. Laura
    Laura avatar
    311 posts
    Registered:
    25 Feb 2008
    15 Jun 2012
    Link to this post
    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.
7 posts, 0 answered