mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-26 15:57:56 +01:00
merged with v2_develop
This commit is contained in:
@@ -16,14 +16,14 @@ public static class Program
|
||||
|
||||
#region The code in this region is not intended for use in a self-contained single-file. It's just here to make sure there is no functionality break with localization in Terminal.Gui using single-file
|
||||
|
||||
if (Equals (Thread.CurrentThread.CurrentUICulture, CultureInfo.InvariantCulture) && Application.SupportedCultures.Count == 0)
|
||||
if (Equals (Thread.CurrentThread.CurrentUICulture, CultureInfo.InvariantCulture) && Application.SupportedCultures?.Count == 0)
|
||||
{
|
||||
// Only happens if the project has <InvariantGlobalization>true</InvariantGlobalization>
|
||||
Debug.Assert (Application.SupportedCultures.Count == 0);
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.Assert (Application.SupportedCultures.Count > 0);
|
||||
Debug.Assert (Application.SupportedCultures?.Count > 0);
|
||||
Debug.Assert (Equals (CultureInfo.CurrentCulture, Thread.CurrentThread.CurrentUICulture));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user