[CLOSED] Updated from SVN - culture changed? How to set culture 'site wide'?

  1. #1

    [CLOSED] Updated from SVN - culture changed? How to set culture 'site wide'?

    Hey,
    I just updated from SVN, referenced the new DLLs and run the project.

    Now all culture is US-format instead of the one I had before. I cannot recollect that I ever manuallt set the culture to anything specific.

    I want to set it "site wide" so I dont have to set it for each DateField/TimeField in the project.

    How do I do that?

    (I did a quick search for it, nothing obvious turned up)
    Last edited by Daniil; Apr 25, 2011 at 8:01 AM. Reason: [CLOSED]
  2. #2
    Hi,

    Current locale is determined this way:
    - if Locale property of ResourceManager is defined then it is current locale
    - else if HttpContext.Current.Application["Ext.Net.Locale"] is not null then it is current locale
    - else if Session["Ext.Net.Locale"] is not null then it is current locale
    - else if web.config (extnet section) contains locale attribute then it is current locale
         <extnet locale="ru-RU" />
    See readme.txt from Ext.Net distributive about web config

    - otherwise System.Threading.Thread.CurrentThread.CurrentUICul ture is current locale

    So, if you need to set default locale for all pages then define required locale in web.config
  3. #3
    Hmm. Ok.

    Is there a way to override just the DateTime formatting specifically? I want DateTimes to be in the form "YYYY-mm-dd" at all times, regardless of the culture. Is that doable? =)
  4. #4
    You could create your own custom control with a default format you wish.
  5. #5
    also, the .skin files can be helpful if you want to set properties across all controls of the same type.
    Geoffrey McGill
    Founder

Similar Threads

  1. [CLOSED] New Culture Resources
    By softmachine2011 in forum 1.x Legacy Premium Help
    Replies: 6
    Last Post: May 04, 2012, 2:02 PM
  2. Culture name 'da-da' is not supported.
    By plykkegaard in forum Bugs
    Replies: 9
    Last Post: Jun 20, 2011, 6:52 AM
  3. TimeField and en-US culture problem
    By Ealirene in forum 1.x Help
    Replies: 1
    Last Post: Mar 21, 2011, 8:00 AM
  4. [CLOSED] [1.0] DirectEvent TimeOut = Can it be defaulted site wide?
    By bsnezw in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: May 28, 2010, 3:49 PM
  5. Date format/culture
    By MrMp3 in forum 1.x Help
    Replies: 2
    Last Post: Mar 19, 2008, 10:26 AM

Tags for this Thread

Posting Permissions