locked
Resources Files doesn't work RRS feed

  • Question

  • User-1626105852 posted

    Hi, i'm making an application multilanguage, i have 2 resources files, the default one .RESX , and another for in english

    the problem is, if i set the name of the english one with the culture en-US.resx it doesn't work,

    the only way i could make it work was deleting the culture -US   (.en.resx ) 

    the globalization tag is set to correctly culture="en-US" uiculture="en"

    Any ideas ??

    Thursday, December 6, 2012 2:27 PM

Answers

  • User1070236303 posted

    the globalization tag is set to correctly culture="en-US" uiculture="en"

    You need to set the uiculture attribute to en-US, because culture is not used for resource look ups. The culture attribute used formatting numbers, currency and so on, uiculture only for resource lookups.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, December 12, 2012 4:32 PM

All replies

  • Friday, December 7, 2012 12:30 AM
  • User-1626105852 posted

    Hi, thanks a lot for your reply.. i've done all that, but using explicit localization,

    the problem is that the resource file .en.resx works but .en-US.resx doesn`t... i don't understand why!

    do you have a clue what might be wrong ??

    Friday, December 7, 2012 9:09 AM
  • User1070236303 posted

    the globalization tag is set to correctly culture="en-US" uiculture="en"

    You need to set the uiculture attribute to en-US, because culture is not used for resource look ups. The culture attribute used formatting numbers, currency and so on, uiculture only for resource lookups.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, December 12, 2012 4:32 PM