Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • obozna 6 posts 95 karma points
    23 days ago
    obozna
    0

    How can I change the text on the login button on the login screen of Umbraco 13?

    Hi,

    I need to change the text Login -> Sign in on the login screen and Logout -> Sign out in Umbraco 13.

    I tried to use the en_us.user.xml file, but I couldn't find the correct keys for these words.

  • Nexwork Percy 1 post 71 karma points
    22 days ago
    Nexwork Percy
    100

    Hi,

    I found the following in the documentation:

    You can customize other text on the login screen as well. First, grab the default values and keys from the enus.xml in the Umbraco CMS Github repository. Thereafter copy the ones you want to translate into ~/config/lang/enus.user.xml file.

    I think it's

    <area alias="general">
        <key alias="login">Sign in</key>
    </area>
    

    You can find out yourself what key to use in your en_us.user.xml file by looking at the source code:

    https://github.com/umbraco/Umbraco-CMS/blob/2e068bb73eac2ca443a8fa6691cbe11f01b12b2c/src/Umbraco.Web.UI.Login/src/components/pages/login.page.element.ts#L146C61-L146C74

    I haven't tested this out myself. Please let us know if you were able to solve your issue.

    Kind regards, Percy

  • obozna 6 posts 95 karma points
    21 days ago
    obozna
    0

    Thank you, Percy, for the solution!

  • Yogeshwer Sharma 10 posts 80 karma points
    22 days ago
    Yogeshwer Sharma
    0

    Hey I think you can do it by going to \Umbraco\Config\Lang\lang file for example en-us.xml and open that file.

    Search for <key alias="login">

    Change the value <key alias="login">Sign In</key> keep the key same login here.

    And then recycle the app pool will change the text there on browser for you.

  • obozna 6 posts 95 karma points
    21 days ago
    obozna
    0

    Thank you for the answer!

  • Tarik 196 posts 840 karma points c-trib
    21 days ago
    Tarik
    0

    Welcome obozna,

    Can you confirm, you tested it and it is working!

  • obozna 6 posts 95 karma points
    21 days ago
    obozna
    0

    Yes, the solution is to have in the ~/config/lang/enus.user.xml file right keys, in my case:

    <area alias="general">
        <key alias="login">Sign in</key>
        <key alias="logout">Sign out</key>
    </area>
    
  • Tarik 196 posts 840 karma points c-trib
    21 days ago
    Tarik
    0

    Thank you for confirming. :)

Please Sign in or register to post replies

Write your reply to:

Draft