From 2fe9fb4707634295e730a8ea9b25176fab089172 Mon Sep 17 00:00:00 2001 From: hishamco Date: Sat, 13 Jan 2018 23:34:43 +0300 Subject: [PATCH] WIP --- .../ApplicationBuilderExtensions.cs | 2 +- .../RequestLocalizationOptions.cs | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Microsoft.AspNetCore.Localization/ApplicationBuilderExtensions.cs b/src/Microsoft.AspNetCore.Localization/ApplicationBuilderExtensions.cs index 245ad7485d..47271237e2 100644 --- a/src/Microsoft.AspNetCore.Localization/ApplicationBuilderExtensions.cs +++ b/src/Microsoft.AspNetCore.Localization/ApplicationBuilderExtensions.cs @@ -105,7 +105,7 @@ namespace Microsoft.AspNetCore.Builder if (cultures.Length == 0) { - throw new ArgumentException(nameof(cultures)); + throw new ArgumentException($"The {cultures} cannot be null.", nameof(cultures)); } var options = new RequestLocalizationOptions() diff --git a/src/Microsoft.AspNetCore.Localization/RequestLocalizationOptions.cs b/src/Microsoft.AspNetCore.Localization/RequestLocalizationOptions.cs index ed49ce9006..16776364f0 100644 --- a/src/Microsoft.AspNetCore.Localization/RequestLocalizationOptions.cs +++ b/src/Microsoft.AspNetCore.Localization/RequestLocalizationOptions.cs @@ -110,7 +110,6 @@ namespace Microsoft.AspNetCore.Builder /// public IList RequestCultureProviders { get; set; } - /// /// Adds the set of the supported cultures by the application. /// @@ -147,7 +146,7 @@ namespace Microsoft.AspNetCore.Builder } /// - /// Set the default culture to be used by the application when a supported culture could not be determined by + /// Set the default culture which is used by the application when a supported culture could not be determined by /// one of the configured s. /// /// The default culture to be set.