locked
How to use Global Resources? RRS feed

  • Question

  • User-1179262497 posted

    I am trying to add a global resource folder, and added a Language.resx file. Then, I added a new seperate resource file called, Language.zn-ch.resx file. But when I try compiling, it complains:

    The namespace 'Resources' already contains a definition for 'LanguageResource' 

     

    Wednesday, August 4, 2010 9:32 PM

Answers

  • User-1802908944 posted

    check here

    first add default.aspx.resx file in your local resource folder

    and web config...

    <globalization uiCulture="en" culture="en-US" />

    and use for control


    <asp:Label ID="lblPageTitle" runat="server" CssClass="PageHeader" meta:resourcekey="SickDetailHeading"></asp:Label>

    http://forums.asp.net/p/1569149/3936666.aspx#3936666


    check your all setting regarding resources..


    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, August 5, 2010 12:27 AM

All replies

  • User-1659704165 posted

    Hi,

    Rename LanguageResource  to Something else...

    Thursday, August 5, 2010 12:17 AM
  • User-1179262497 posted

    But if so...can the application still pick up the relevant language? 

    Thursday, August 5, 2010 12:20 AM
  • User-1802908944 posted

    check here

    first add default.aspx.resx file in your local resource folder

    and web config...

    <globalization uiCulture="en" culture="en-US" />

    and use for control


    <asp:Label ID="lblPageTitle" runat="server" CssClass="PageHeader" meta:resourcekey="SickDetailHeading"></asp:Label>

    http://forums.asp.net/p/1569149/3936666.aspx#3936666


    check your all setting regarding resources..


    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, August 5, 2010 12:27 AM
  • User-1179262497 posted

    I've got it. Had to delete the automatically created designer files. 

    Thursday, August 5, 2010 12:30 AM