Base solution for your next web application
Open Closed

How to add a new key for Language texts? #3109


User avatar
0
fguo created

The "Name" on Sign up page is confused users in USA. They use "First Name". So, I added a new language "English (United States)" on Administration > Languages page, and then, change its texts (Key=Name) from "Name" to "First Name". It works fine on user sign up page, but it seems that all "Name" now show as "First Name". For example, the language name column now shows "First Name" on column header.

It is not a big deal for now between "English" and "English (United States)", but it rises me a question. While adding on my own application modules, how do I add language texts with a new Key? :?:

If I need to modify the code for this, can you advise where are the related code files?

Thank you!


2 Answer(s)
  • User Avatar
    0
    alirizaadiyahsi created

    Hi,

    You can add new keys in these files: ProjectName.Core/Localization/ProjectName/*.xml BTW, you need to add new key for "FirtsName", too.

    And also, you may read this article for more information about aspnet zero localization: <a class="postlink" href="https://aspnetboilerplate.com/Pages/Documents/Localization">https://aspnetboilerplate.com/Pages/Doc ... calization</a>

  • User Avatar
    0
    fguo created

    Understand now. Thank you very much! :D