Ignore:
Timestamp:
Apr 4, 2011, 6:11:50 AM (14 years ago)
Author:
Sam Habiel
Message:

CGDocumentManager: Localization now works from CurrentCulture, not just CurrentUICulture.
CGView: Nothing important. Designer moves around stuff; again.
Printing: Routing slip arabized; page starts at a lower level to allow for a watermark. Graphics.Dispose now called at the end of all prints to allow for faster gc.
strings: Updated with more translations.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Scheduling/trunk/cs/bsdx0200GUISourceCode/CGDocumentManager.cs

    r1122 r1131  
    497497           
    498498           
    499 
    500499            //User Interface Culture (m_CultureName is set from the command line flag /culture)
    501             try { Thread.CurrentThread.CurrentUICulture = new CultureInfo(m_CultureName); } // if "", invariant culture
    502             catch (CultureNotFoundException) { Thread.CurrentThread.CurrentUICulture = CultureInfo.InvariantCulture; }
     500            //
     501            //If passed, set that try that culture; fail over to Invariant Culture
     502            if (m_CultureName != String.Empty)
     503            {
     504                try { Thread.CurrentThread.CurrentUICulture = new CultureInfo(m_CultureName); }
     505                catch (CultureNotFoundException) { Thread.CurrentThread.CurrentUICulture = CultureInfo.InvariantCulture; }
     506            }
     507            //otherwise, use the Current Computer Culture, EVEN IF (!!) the UI Culture is different.
     508            //this allows localization even if Windows still displays messages in English.
     509            else
     510            {
     511                Thread.CurrentThread.CurrentUICulture = Thread.CurrentThread.CurrentCulture;
     512            }
    503513
    504514            //Create global dataset
Note: See TracChangeset for help on using the changeset viewer.