Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
QilongTang committed Oct 16, 2023
1 parent c3518e0 commit 8fbaf52
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/DynamoCore/Models/DynamoModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -681,10 +681,11 @@ protected DynamoModel(IStartConfiguration config)
PreferenceSettings = (PreferenceSettings)CreateOrLoadPreferences(config.Preferences);
if (PreferenceSettings != null)
{
// In a integration case, respect default setting to use the host locale
if (!PreferenceSettings.Locale.Equals(Configuration.Configurations.SupportedLocaleList.First()) && HostAnalyticsInfo.HostName != string.Empty)
// Setting the locale for Dynamo from loaded Preferences only when
// In a non-in-process integration case (when HostAnalyticsInfo.HostName is unspecified)
// Language is specified, otherwise Default setting means following host locale
if (string.IsNullOrEmpty(HostAnalyticsInfo.HostName) || !PreferenceSettings.Locale.Equals(Configuration.Configurations.SupportedLocaleList.First()))
{
// Setting the locale for Dynamo from loaded Preferences
SetUICulture(PreferenceSettings.Locale);
}
PreferenceSettings.PropertyChanged += PreferenceSettings_PropertyChanged;
Expand Down

0 comments on commit 8fbaf52

Please sign in to comment.