From 5790142f81f2a94ad073834b1534acbf9b02ea3c Mon Sep 17 00:00:00 2001 From: 杨宇千 Date: Fri, 25 Oct 2019 18:36:02 +0800 Subject: Add NeutralResourcesLanguage. Conform to best practices. --- .../Validation/UsernameValidator.Designer.cs | 14 +-- .../Models/Validation/UsernameValidator.en.resx | 129 --------------------- .../Models/Validation/UsernameValidator.resx | 8 +- .../Models/Validation/UsernameValidator.zh.resx | 6 +- .../Models/Validation/Validator.Designer.cs | 30 ++--- .../Resources/Models/Validation/Validator.en.resx | 129 --------------------- .../Resources/Models/Validation/Validator.resx | 18 +-- 7 files changed, 38 insertions(+), 296 deletions(-) delete mode 100644 Timeline/Resources/Models/Validation/UsernameValidator.en.resx delete mode 100644 Timeline/Resources/Models/Validation/Validator.en.resx (limited to 'Timeline/Resources/Models/Validation') diff --git a/Timeline/Resources/Models/Validation/UsernameValidator.Designer.cs b/Timeline/Resources/Models/Validation/UsernameValidator.Designer.cs index a4c35326..ac925504 100644 --- a/Timeline/Resources/Models/Validation/UsernameValidator.Designer.cs +++ b/Timeline/Resources/Models/Validation/UsernameValidator.Designer.cs @@ -63,27 +63,27 @@ namespace Timeline.Resources.Models.Validation { /// /// Looks up a localized string similar to An empty string is not allowed.. /// - internal static string InvariantValidationMessageEmptyString { + internal static string MessageEmptyString { get { - return ResourceManager.GetString("InvariantValidationMessageEmptyString", resourceCulture); + return ResourceManager.GetString("MessageEmptyString", resourceCulture); } } /// - /// Looks up a localized string similar to Invalid character, only alphabet, digit, underscore and hyphen are allowed. . + /// Looks up a localized string similar to Invalid character, only alphabet, digit, underscore and hyphen are allowed.. /// - internal static string InvariantValidationMessageInvalidChar { + internal static string MessageInvalidChar { get { - return ResourceManager.GetString("InvariantValidationMessageInvalidChar", resourceCulture); + return ResourceManager.GetString("MessageInvalidChar", resourceCulture); } } /// /// Looks up a localized string similar to Too long, more than 26 characters is not premitted.. /// - internal static string InvariantValidationMessageTooLong { + internal static string MessageTooLong { get { - return ResourceManager.GetString("InvariantValidationMessageTooLong", resourceCulture); + return ResourceManager.GetString("MessageTooLong", resourceCulture); } } } diff --git a/Timeline/Resources/Models/Validation/UsernameValidator.en.resx b/Timeline/Resources/Models/Validation/UsernameValidator.en.resx deleted file mode 100644 index 9171b856..00000000 --- a/Timeline/Resources/Models/Validation/UsernameValidator.en.resx +++ /dev/null @@ -1,129 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - An empty string is not allowed. - - - Invalid character, only alphabet, digit, underscore and hyphen are allowed. - - - Too long, more than 26 characters is not premitted. - - \ No newline at end of file diff --git a/Timeline/Resources/Models/Validation/UsernameValidator.resx b/Timeline/Resources/Models/Validation/UsernameValidator.resx index 80cae2d5..08a814d0 100644 --- a/Timeline/Resources/Models/Validation/UsernameValidator.resx +++ b/Timeline/Resources/Models/Validation/UsernameValidator.resx @@ -117,13 +117,13 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - + An empty string is not allowed. - - Invalid character, only alphabet, digit, underscore and hyphen are allowed. + + Invalid character, only alphabet, digit, underscore and hyphen are allowed. - + Too long, more than 26 characters is not premitted. \ No newline at end of file diff --git a/Timeline/Resources/Models/Validation/UsernameValidator.zh.resx b/Timeline/Resources/Models/Validation/UsernameValidator.zh.resx index 1c8a936c..89d519b0 100644 --- a/Timeline/Resources/Models/Validation/UsernameValidator.zh.resx +++ b/Timeline/Resources/Models/Validation/UsernameValidator.zh.resx @@ -117,13 +117,13 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - + 空字符串是不允许的。 - + 无效的字符,只能使用字母、数字、下划线和连字符。 - + 太长了,不能大于26个字符。 \ No newline at end of file diff --git a/Timeline/Resources/Models/Validation/Validator.Designer.cs b/Timeline/Resources/Models/Validation/Validator.Designer.cs index 4cbc13de..74d4c169 100644 --- a/Timeline/Resources/Models/Validation/Validator.Designer.cs +++ b/Timeline/Resources/Models/Validation/Validator.Designer.cs @@ -61,47 +61,47 @@ namespace Timeline.Resources.Models.Validation { } /// - /// Looks up a localized string similar to Value is not of type {0}.. + /// Looks up a localized string similar to Failed to create a validator instance from default constructor. See inner exception.. /// - internal static string InvariantValidatorMessageBadType { + internal static string ValidateWithAttributeExceptionCreateFail { get { - return ResourceManager.GetString("InvariantValidatorMessageBadType", resourceCulture); + return ResourceManager.GetString("ValidateWithAttributeExceptionCreateFail", resourceCulture); } } /// - /// Looks up a localized string similar to Value can't be null.. + /// Looks up a localized string similar to Given type is not assignable to IValidator.. /// - internal static string InvariantValidatorMessageNull { + internal static string ValidateWithAttributeExceptionNotValidator { get { - return ResourceManager.GetString("InvariantValidatorMessageNull", resourceCulture); + return ResourceManager.GetString("ValidateWithAttributeExceptionNotValidator", resourceCulture); } } /// - /// Looks up a localized string similar to Validation succeeded.. + /// Looks up a localized string similar to Value is not of type {0}.. /// - internal static string InvariantValidatorMessageSuccess { + internal static string ValidatorMessageBadType { get { - return ResourceManager.GetString("InvariantValidatorMessageSuccess", resourceCulture); + return ResourceManager.GetString("ValidatorMessageBadType", resourceCulture); } } /// - /// Looks up a localized string similar to Failed to create a validator instance from default constructor. See inner exception.. + /// Looks up a localized string similar to Value can't be null.. /// - internal static string ValidateWithAttributeCreateFail { + internal static string ValidatorMessageNull { get { - return ResourceManager.GetString("ValidateWithAttributeCreateFail", resourceCulture); + return ResourceManager.GetString("ValidatorMessageNull", resourceCulture); } } /// - /// Looks up a localized string similar to Given type is not assignable to IValidator.. + /// Looks up a localized string similar to Validation succeeded.. /// - internal static string ValidateWithAttributeNotValidator { + internal static string ValidatorMessageSuccess { get { - return ResourceManager.GetString("ValidateWithAttributeNotValidator", resourceCulture); + return ResourceManager.GetString("ValidatorMessageSuccess", resourceCulture); } } } diff --git a/Timeline/Resources/Models/Validation/Validator.en.resx b/Timeline/Resources/Models/Validation/Validator.en.resx deleted file mode 100644 index 8d2fbede..00000000 --- a/Timeline/Resources/Models/Validation/Validator.en.resx +++ /dev/null @@ -1,129 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Value is not of type {0}. - - - Value can't be null. - - - Validation succeeded. - - \ No newline at end of file diff --git a/Timeline/Resources/Models/Validation/Validator.resx b/Timeline/Resources/Models/Validation/Validator.resx index 0e8f53a6..8317e3eb 100644 --- a/Timeline/Resources/Models/Validation/Validator.resx +++ b/Timeline/Resources/Models/Validation/Validator.resx @@ -117,19 +117,19 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - + + Failed to create a validator instance from default constructor. See inner exception. + + + Given type is not assignable to IValidator. + + Value is not of type {0}. - + Value can't be null. - + Validation succeeded. - - Failed to create a validator instance from default constructor. See inner exception. - - - Given type is not assignable to IValidator. - \ No newline at end of file -- cgit v1.2.3