locked
Multi lingual resx files RRS feed

  • Question

  • User113961080 posted

    Hi,

    I am implementing a multi lingual support in my web site.

    I am using resx file to achieve this.

    I want to know, What approach I should follow in naming the strings in resx files?

    If there is any article or sugession then please update me.


    Regards,

    Muhammad Naveed Khan


    Wednesday, January 5, 2011 12:55 PM

Answers

All replies

  • User94323121 posted

    Hi Muhammad,

    For me, i just use the name of the control and add the properties.

    Ex :

    default.aspx.fr.resx

    Name             Value

    label1.text     Bienvenue

    default.aspx.en.resx

    Name             Value

    label1.text     Welcome

     

    N.B. In your code, always keep in mind to put the name of your controls as short as possible.

    Wednesday, January 5, 2011 2:24 PM
  • User113961080 posted

    Currently What I have done is

    Name: Web.Public.Controls.Logo1.lkbSignOut

    Value: Sign Out

    ------------------------------

    Name: Web.Public.Controls.Logo1.lblSlogan

    Value: World's best businees minds

    -----------------------------

    ETC ETC

    What you think about this?

    Wednesday, January 5, 2011 3:16 PM
  • User94323121 posted

    Look at this video and you will understand : http://www.asp.net/general/videos/how-do-i-create-a-multi-lingual-site-with-localization

     

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, January 6, 2011 2:58 PM