locked
Default Resource file and Specific Culture Resource file RRS feed

  • Question

  • User1904516115 posted

    Is it compulsory to define control's property in Default resource file(Default.aspx.resx) as well as in specific culture resource file(Default.aspx.sv-SE.resx)?

    Default.aspx.resx                                               

    Label1Resource1.BackColor Black

    Default.aspx.sv-SE.resx 

    Label1Resource1.ForeColor White

    If I run the application label's fore color is not taking effect for swedish culture.

    Monday, December 25, 2017 7:23 AM

All replies

  • User283571144 posted

    Hi vinodkpasi,

    If I run the application label's fore color is not taking effect for swedish culture.

    As far as I know, each language and culture combination requires a unique resource file. To add other cultures, you can use your default file as a starting point. 

    So the specific culture resource file is based on the default resx file. You need firstly set the default resource file.

    Best Regards,

    Brando

    Tuesday, December 26, 2017 5:17 AM
  • User1738843376 posted

    Are you setting the currentCulture to Swedish, or simply expecting the browser definitions to set it for you?

    Thursday, December 28, 2017 5:42 PM