Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Sander Houttekier 114 posts 163 karma points
    Dec 08, 2010 @ 13:08
    Sander Houttekier
    0

    Using dictionary items within base

    How is it possible to access the dictionary items from within a base method?

    it seems the currentCulture is ignored, and the default en-US kicks in.

     

    setting the culture manually does not seem to work either

    System.Threading.Thread.CurrentThread.CurrentCulture = CultureInfo.CreateSpecificCulture("nl-BE");

  • Thomas Stock 40 posts 70 karma points
    Dec 08, 2010 @ 13:14
    Thomas Stock
    0

    Try setting CurrentUICulture instead. (did not test this, but that's what resource files look at)

  • Sander Houttekier 114 posts 163 karma points
    Dec 08, 2010 @ 14:49
    Sander Houttekier
    0

    oh dear,

    sorry to announce this was my problem

    seems like adding a .ToLower() on the switch solved it all

    it defaulted back to en-US  due to  "NL" <> "nl"  ofc...

    why did jump to the forum so quickly :)

Please Sign in or register to post replies

Write your reply to:

Draft