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
    Oct 02, 2024 @ 17:20
    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
    Oct 03, 2024 @ 13:14
    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
    Oct 04, 2024 @ 11:54
    obozna
    0

    Thank you, Percy, for the solution!

  • Yogeshwer Sharma 10 posts 80 karma points
    Oct 03, 2024 @ 14:20
    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
    Oct 04, 2024 @ 11:55
    obozna
    0

    Thank you for the answer!

  • Tarik 196 posts 862 karma points c-trib
    Oct 04, 2024 @ 12:01
    Tarik
    0

    Welcome obozna,

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

  • obozna 6 posts 95 karma points
    Oct 04, 2024 @ 12:21
    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 862 karma points c-trib
    Oct 04, 2024 @ 13:23
    Tarik
    0

    Thank you for confirming. :)

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies