- Timestamp:
- Apr 4, 2011, 6:11:50 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Scheduling/trunk/cs/bsdx0200GUISourceCode/CGDocumentManager.cs
r1122 r1131 497 497 498 498 499 500 499 //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 } 503 513 504 514 //Create global dataset
Note:
See TracChangeset
for help on using the changeset viewer.