[System.Core][System.ComponentModel.DataAnnotations] Update strings
authorMarek Safar <marek.safar@gmail.com>
Thu, 13 Apr 2017 10:22:45 +0000 (12:22 +0200)
committerMarek Safar <marek.safar@gmail.com>
Thu, 13 Apr 2017 15:04:40 +0000 (17:04 +0200)
mcs/class/System.ComponentModel.DataAnnotations/ReferenceSources/SR.cs
mcs/class/System.ComponentModel.DataAnnotations/ReferenceSources/SR.missing.cs [deleted file]
mcs/class/System.ComponentModel.DataAnnotations/System.ComponentModel.DataAnnotations.dll.sources
mcs/class/System.Core/ReferenceSources/SR.cs
mcs/class/System.Core/ReferenceSources/SR.missing.cs [deleted file]
mcs/class/System.Core/common_System.Core.dll.sources

index b2b9b9538949bdd446c832c824dcb9b6a2c2f759..35ee14f949fb828a673620fda9428427870f3492 100644 (file)
@@ -1,18 +1,67 @@
 //
-// This file was generated by txt2sr tool
+// This file was generated by resx2sr tool
 //
 
 namespace System.ComponentModel.DataAnnotations.Resources
 {
 partial class DataAnnotationsResources
 {
-       public const string MaxLengthAttribute_ValidationError = "The field {0} must be a string or array type with a maximum length of '{1}'.";
+       public const string AssociatedMetadataTypeTypeDescriptor_MetadataTypeContainsUnknownProperties = "The associated metadata type for type '{0}' contains the following unknown properties or fields: {1}. Please make sure that the names of these members match the names of the properties on the main type.";
+       public const string AttributeStore_Type_Must_Be_Public = "The type '{0}' must be public.";
+       public const string AttributeStore_Unknown_Method = "The type '{0}' does not contain a public method named '{1}'.";
+       public const string AttributeStore_Unknown_Property = "The type '{0}' does not contain a public property named '{1}'.";
+       public const string CustomValidationAttribute_Method_Must_Return_ValidationResult = "The CustomValidationAttribute method '{0}' in type '{1}' must return System.ComponentModel.DataAnnotations.ValidationResult.  Use System.ComponentModel.DataAnnotations.ValidationResult.Success to represent success.";
+       public const string CustomValidationAttribute_Method_Not_Found = "The CustomValidationAttribute method '{0}' does not exist in type '{1}' or is not public and static.";
+       public const string CustomValidationAttribute_Method_Required = "The CustomValidationAttribute.Method was not specified.";
+       public const string CustomValidationAttribute_Method_Signature = "The CustomValidationAttribute method '{0}' in type '{1}' must match the expected signature: public static ValidationResult {0}(object value, ValidationContext context).  The value can be strongly typed.  The ValidationContext parameter is optional.";
+       public const string CustomValidationAttribute_Type_Must_Be_Public = "The custom validation type '{0}' must be public.";
+       public const string CustomValidationAttribute_ValidationError = "{0} is not valid.";
+       public const string CustomValidationAttribute_ValidatorType_Required = "The CustomValidationAttribute.ValidatorType was not specified.";
+       public const string DataTypeAttribute_EmptyDataTypeString = "The custom DataType string cannot be null or empty.";
+       public const string LocalizableString_LocalizationFailed = "Cannot retrieve property '{0}' because localization failed.  Type '{1}' is not public or does not contain a public static string property with the name '{2}'.";
+       public const string Validator_Property_Value_Wrong_Type = "The value for property '{0}' must be of type '{1}'.";
+       public const string RangeAttribute_ArbitraryTypeNotIComparable = "The type {0} must implement {1}.";
+       public const string RangeAttribute_MinGreaterThanMax = "The maximum value '{0}' must be greater than or equal to the minimum value '{1}'.";
+       public const string RangeAttribute_Must_Set_Min_And_Max = "The minimum and maximum values must be set.";
+       public const string RangeAttribute_Must_Set_Operand_Type = "The OperandType must be set when strings are used for minimum and maximum values.";
+       public const string RangeAttribute_ValidationError = "The field {0} must be between {1} and {2}.";
+       public const string RegexAttribute_ValidationError = "The field {0} must match the regular expression '{1}'.";
+       public const string RegularExpressionAttribute_Empty_Pattern = "The pattern must be set to a valid regular expression.";
+       public const string RequiredAttribute_ValidationError = "The {0} field is required.";
+       public const string StringLengthAttribute_InvalidMaxLength = "The maximum length must be a nonnegative integer.";
+       public const string StringLengthAttribute_ValidationError = "The field {0} must be a string with a maximum length of {1}.";
+       public const string UIHintImplementation_ControlParameterKeyIsNotAString = "The key parameter at position {0} with value '{1}' is not a string. Every key control parameter must be a string.";
+       public const string UIHintImplementation_ControlParameterKeyIsNull = "The key parameter at position {0} is null. Every key control parameter must be a string.";
+       public const string UIHintImplementation_NeedEvenNumberOfControlParameters = "The number of control parameters must be even.";
+       public const string UIHintImplementation_ControlParameterKeyOccursMoreThanOnce = "The key parameter at position {0} with value '{1}' occurs more than once.";
+       public const string ValidationAttribute_Cannot_Set_ErrorMessage_And_Resource = "Either ErrorMessageString or ErrorMessageResourceName must be set, but not both.";
+       public const string ValidationAttribute_NeedBothResourceTypeAndResourceName = "Both ErrorMessageResourceType and ErrorMessageResourceName need to be set on this attribute.";
+       public const string ValidationAttribute_ResourcePropertyNotStringType = "The property '{0}' on resource type '{1}' is not a string type.";
+       public const string ValidationAttribute_ResourceTypeDoesNotHaveProperty = "The resource type '{0}' does not have an accessible static property named '{1}'.";
+       public const string ValidationAttribute_ValidationError = "The field {0} is invalid.";
+       public const string ValidationContext_Must_Be_Method = "The ValidationContext for the type '{0}', member name '{1}' must provide the MethodInfo.";
+       public const string EnumDataTypeAttribute_TypeNeedsToBeAnEnum = "The type '{0}' needs to represent an enumeration type.";
+       public const string EnumDataTypeAttribute_TypeCannotBeNull = "The type provided for EnumDataTypeAttribute cannot be null.";
+       public const string MetadataTypeAttribute_TypeCannotBeNull = "MetadataClassType cannot be null.";
+       public const string DisplayAttribute_PropertyNotSet = "The {0} property has not been set.  Use the {1} method to get the value.";
+       public const string ValidationContextServiceContainer_ItemAlreadyExists = "A service of type '{0}' already exists in the container.";
+       public const string Validator_InstanceMustMatchValidationContextInstance = "The instance provided must match the ObjectInstance on the ValidationContext supplied.";
+       public const string ValidationAttribute_IsValid_NotImplemented = "IsValid(object value) has not been implemented by this class.  The preferred entry point is GetValidationResult() and classes should override IsValid(object value, ValidationContext context).";
+       public const string CustomValidationAttribute_Type_Conversion_Failed = "Could not convert the value of type '{0}' to '{1}' as expected by method {2}.{3}.";
+       public const string StringLengthAttribute_ValidationErrorIncludingMinimum = "The field {0} must be a string with a minimum length of {2} and a maximum length of {1}.";
+       public const string CreditCardAttribute_Invalid = "The {0} field is not a valid credit card number.";
+       public const string EmailAddressAttribute_Invalid = "The {0} field is not a valid e-mail address.";
+       public const string FileExtensionsAttribute_Invalid = "The {0} field only accepts files with the following extensions: {1}";
+       public const string UrlAttribute_Invalid = "The {0} field is not a valid fully-qualified http, https, or ftp URL.";
+       public const string CompareAttribute_MustMatch = "'{0}' and '{1}' do not match.";
+       public const string Common_NullOrEmpty = "Value cannot be null or empty.";
+       public const string CompareAttribute_UnknownProperty = "Could not find a property named {0}.";
+       public const string Common_PropertyNotFound = "The property {0}.{1} could not be found.";
+       public const string PhoneAttribute_Invalid = "The {0} field is not a valid phone number.";
        public const string MaxLengthAttribute_InvalidMaxLength = "MaxLengthAttribute must have a Length value that is greater than zero. Use MaxLength() without parameters to indicate that the string or array can have the maximum allowable length.";
-       public const string MinLengthAttribute_ValidationError = "The field {0} must be a string or array type with a minimum length of '{1}'.";
+       public const string MaxLengthAttribute_ValidationError = "The field {0} must be a string or array type with a maximum length of '{1}'.";
        public const string MinLengthAttribute_InvalidMinLength = "MinLengthAttribute must have a Length value that is zero or greater.";
+       public const string MinLengthAttribute_ValidationError = "The field {0} must be a string or array type with a minimum length of '{1}'.";
        public const string ArgumentIsNullOrWhitespace = "The argument '{0}' cannot be null, empty or contain only white space.";
-       public const string RequiredAttribute_ValidationError = "The {0} field is required.";
-       public const string CompareAttribute_MustMatch = "'{0}' and '{1}' do not match.";
-       public const string RegexAttribute_ValidationError = "The field {0} must match the regular expression '{1}'.";
 }
 }
\ No newline at end of file
diff --git a/mcs/class/System.ComponentModel.DataAnnotations/ReferenceSources/SR.missing.cs b/mcs/class/System.ComponentModel.DataAnnotations/ReferenceSources/SR.missing.cs
deleted file mode 100644 (file)
index 267eb81..0000000
+++ /dev/null
@@ -1,51 +0,0 @@
-namespace System.ComponentModel.DataAnnotations.Resources
-{
-static partial class DataAnnotationsResources
-{
-       public const string AssociatedMetadataTypeTypeDescriptor_MetadataTypeContainsUnknownProperties = "The associated metadata type for type '{0}' contains the following unknown properties or fields: {1}. Please make sure that the names of these members match the names of the properties on the main type.";
-       public const string AttributeStore_Unknown_Property = "The type '{0}' does not contain a public property named '{1}'.";
-       public const string Common_PropertyNotFound = "The property {0}.{1} could not be found.";
-       public const string CompareAttribute_UnknownProperty = "Could not find a property named {0}.";
-       public const string CreditCardAttribute_Invalid = "The {0} field is not a valid credit card number.";
-       public const string CustomValidationAttribute_Method_Must_Return_ValidationResult = "The CustomValidationAttribute method '{0}' in type '{1}' must return System.ComponentModel.DataAnnotations.ValidationResult.  Use System.ComponentModel.DataAnnotations.ValidationResult.Success to represent success.";
-       public const string CustomValidationAttribute_Method_Not_Found = "The CustomValidationAttribute method '{0}' does not exist in type '{1}' or is not public and static.";
-       public const string CustomValidationAttribute_Method_Required = "The CustomValidationAttribute.Method was not specified.";
-       public const string CustomValidationAttribute_Method_Signature = "The CustomValidationAttribute method '{0}' in type '{1}' must match the expected signature: public static ValidationResult {0}(object value, ValidationContext context).  The value can be strongly typed.  The ValidationContext parameter is optional.";
-       public const string CustomValidationAttribute_Type_Conversion_Failed = "Could not convert the value of type '{0}' to '{1}' as expected by method {2}.{3}.";
-       public const string CustomValidationAttribute_Type_Must_Be_Public = "The custom validation type '{0}' must be public.";
-       public const string CustomValidationAttribute_ValidationError = "{0} is not valid.";
-       public const string CustomValidationAttribute_ValidatorType_Required = "The CustomValidationAttribute.ValidatorType was not specified.";
-       public const string DataTypeAttribute_EmptyDataTypeString = "The custom DataType string cannot be null or empty.";
-       public const string DisplayAttribute_PropertyNotSet = "The {0} property has not been set.  Use the {1} method to get the value.";
-       public const string EmailAddressAttribute_Invalid = "The {0} field is not a valid e-mail address.";
-       public const string EnumDataTypeAttribute_TypeCannotBeNull = "The type provided for EnumDataTypeAttribute cannot be null.";
-       public const string EnumDataTypeAttribute_TypeNeedsToBeAnEnum = "The type '{0}' needs to represent an enumeration type.";
-       public const string FileExtensionsAttribute_Invalid = "The {0} field only accepts files with the following extensions: {1}";
-       public const string LocalizableString_LocalizationFailed = "Cannot retrieve property '{0}' because localization failed.  Type '{1}' is not public or does not contain a public static string property with the name '{2}'.";
-       public const string MetadataTypeAttribute_TypeCannotBeNull = "MetadataClassType cannot be null.";
-       public const string PhoneAttribute_Invalid = "The {0} field is not a valid phone number.";
-       public const string RangeAttribute_ArbitraryTypeNotIComparable = "The type {0} must implement {1}.";
-       public const string RangeAttribute_MinGreaterThanMax = "The maximum value '{0}' must be greater than or equal to the minimum value '{1}'.";
-       public const string RangeAttribute_Must_Set_Min_And_Max = "The minimum and maximum values must be set.";
-       public const string RangeAttribute_Must_Set_Operand_Type = "The OperandType must be set when strings are used for minimum and maximum values.";
-       public const string RangeAttribute_ValidationError = "The field {0} must be between {1} and {2}.";
-       public const string RegularExpressionAttribute_Empty_Pattern = "The pattern must be set to a valid regular expression.";
-       public const string StringLengthAttribute_InvalidMaxLength = "The maximum length must be a nonnegative integer.";
-       public const string StringLengthAttribute_ValidationError = "The field {0} must be a string with a maximum length of {1}.";
-       public const string StringLengthAttribute_ValidationErrorIncludingMinimum = "The field {0} must be a string with a minimum length of {2} and a maximum length of {1}.";
-       public const string UIHintImplementation_ControlParameterKeyIsNotAString = "The key parameter at position {0} with value '{1}' is not a string. Every key control parameter must be a string.";
-       public const string UIHintImplementation_ControlParameterKeyIsNull = "The key parameter at position {0} is null. Every key control parameter must be a string.";
-       public const string UIHintImplementation_ControlParameterKeyOccursMoreThanOnce = "The key parameter at position {0} with value '{1}' occurs more than once.";
-       public const string UIHintImplementation_NeedEvenNumberOfControlParameters = "The number of control parameters must be even.";
-       public const string UrlAttribute_Invalid = "The {0} field is not a valid fully-qualified http, https, or ftp URL.";
-       public const string ValidationAttribute_Cannot_Set_ErrorMessage_And_Resource = "Either ErrorMessageString or ErrorMessageResourceName must be set, but not both.";
-       public const string ValidationAttribute_IsValid_NotImplemented = "IsValid(object value) has not been implemented by this class.  The preferred entry point is GetValidationResult() and classes should override IsValid(object value, ValidationContext context).";
-       public const string ValidationAttribute_NeedBothResourceTypeAndResourceName = "Both ErrorMessageResourceType and ErrorMessageResourceName need to be set on this attribute.";
-       public const string ValidationAttribute_ResourcePropertyNotStringType = "The property '{0}' on resource type '{1}' is not a string type.";
-       public const string ValidationAttribute_ResourceTypeDoesNotHaveProperty = "The resource type '{0}' does not have an accessible static property named '{1}'.";
-       public const string ValidationAttribute_ValidationError = "The field {0} is invalid.";
-       public const string ValidationContextServiceContainer_ItemAlreadyExists = "A service of type '{0}' already exists in the container.";
-       public const string Validator_InstanceMustMatchValidationContextInstance = "The instance provided must match the ObjectInstance on the ValidationContext supplied.";
-       public const string Validator_Property_Value_Wrong_Type = "The value for property '{0}' must be of type '{1}'.";
-}
-}
index fde8611d792476117dc2edb0c253bf0686f666de..c41ac4477fe72783cf61f710b19dbe8f10fa4cd1 100644 (file)
@@ -50,4 +50,3 @@ Assembly/AssemblyInfo.cs
 ../referencesource/System.ComponentModel.DataAnnotations/DataAnnotations/ValidationResult.cs
 ../referencesource/System.ComponentModel.DataAnnotations/DataAnnotations/Validator.cs
 ReferenceSources/SR.cs
-ReferenceSources/SR.missing.cs
index 99a84d5fd78791c8f7c251bb523cbed00e203538..1fbc0324affe01e4ee8d8e252f817de89ffb7a71 100644 (file)
@@ -51,6 +51,7 @@ partial class SR
        public const string IO_IO_SharingViolation_NoFileName = "The process cannot access the file because it is being used by another process.";
        public const string IO_IO_PipeBroken = "Pipe is broken.";
        public const string IO_IO_InvalidPipeHandle = "Invalid pipe handle.";
+       public const string IO_OperationAborted = "IO operation was aborted unexpectedly.";
        public const string IO_DriveNotFound_Drive = "Could not find the drive '{0}'. The drive might not be ready or might not be mapped.";
        public const string IO_PathNotFound_Path = "Could not find a part of the path '{0}'.";
        public const string IO_PathNotFound_NoPathName = "Could not find a part of the path.";
@@ -218,4 +219,35 @@ partial class SR
        public const string NotSupported_MMViewStreamsFixedLength = "MemoryMappedViewStreams are fixed length.";
        public const string ObjectDisposed_ViewAccessorClosed = "Cannot access a closed accessor.";
        public const string ObjectDisposed_StreamIsClosed = "Cannot access a closed Stream.";
+       public const string NotSupported_Method = "Method not supported.";
+       public const string NotSupported_SubclassOverride = "Method not supported. Derived class must override.";
+       public const string Cryptography_ArgDSARequiresDSAKey = "Keys used with the DSACng algorithm must have an algorithm group of DSA.";
+       public const string Cryptography_ArgRSAaRequiresRSAKey = "Keys used with the RSACng algorithm must have an algorithm group of RSA.";
+       public const string Cryptography_CngKeyWrongAlgorithm = "This key is for algorithm '{0}'. Expected '{1}'.";
+       public const string Cryptography_DSA_HashTooShort = "The supplied hash cannot be shorter in length than the DSA key's Q value.";
+       public const string Cryptography_HashAlgorithmNameNullOrEmpty = "The hash algorithm name cannot be null or empty.";
+       public const string Cryptography_InvalidDsaParameters_MissingFields = "The specified DSA parameters are not valid; P, Q, G and Y are all required.";
+       public const string Cryptography_InvalidDsaParameters_MismatchedPGY = "The specified DSA parameters are not valid; P, G and Y must be the same length (the key size).";
+       public const string Cryptography_InvalidDsaParameters_MismatchedQX = "The specified DSA parameters are not valid; Q and X (if present) must be the same length.";
+       public const string Cryptography_InvalidDsaParameters_MismatchedPJ = "The specified DSA parameters are not valid; J (if present) must be shorter than P.";
+       public const string Cryptography_InvalidDsaParameters_SeedRestriction_ShortKey = "The specified DSA parameters are not valid; Seed, if present, must be 20 bytes long for keys shorter than 1024 bits.";
+       public const string Cryptography_InvalidDsaParameters_QRestriction_ShortKey = "The specified DSA parameters are not valid; Q must be 20 bytes long for keys shorter than 1024 bits.";
+       public const string Cryptography_InvalidDsaParameters_QRestriction_LargeKey = "The specified DSA parameters are not valid; Q's length must be one of 20, 32 or 64 bytes.";
+       public const string Cryptography_InvalidRsaParameters = "The specified RSA parameters are not valid; both Exponent and Modulus are required fields.";
+       public const string Cryptography_InvalidSignatureAlgorithm = "The hash algorithm is not supported for signatures. Only MD5, SHA1, SHA256,SHA384, and SHA512 are supported at this time.";
+       public const string Cryptography_KeyBlobParsingError = "Key Blob not in expected format.";
+       public const string Cryptography_NotSupportedKeyAlgorithm = "Key Algorithm is not supported.";
+       public const string Cryptography_NotValidPublicOrPrivateKey = "Key is not a valid public or private key.";
+       public const string Cryptography_NotValidPrivateKey = "Key is not a valid private key.";
+       public const string Cryptography_UnexpectedTransformTruncation = "CNG provider unexpectedly terminated encryption or decryption prematurely.";
+       public const string Cryptography_UnsupportedPaddingMode = "The specified PaddingMode is not supported.";
+       public const string Cryptography_WeakKey = "Specified key is a known weak key for this algorithm and cannot be used.";
+       public const string Cryptography_CurveNotSupported = "The specified curve '{0}' or its parameters are not valid for this platform.";
+       public const string Cryptography_InvalidCurve = "The specified curve '{0}' is not valid for this platform.";
+       public const string Cryptography_InvalidCurveOid = "The specified Oid is not valid. The Oid.FriendlyName or Oid.Value property must be set.";
+       public const string Cryptography_InvalidCurveKeyParameters = "The specified key parameters are not valid. Q.X and Q.Y are required fields. Q.X, Q.Y must be the same length. If D is specified it must be the same length as Q.X and Q.Y for named curves or the same length as Order for explicit curves.";
+       public const string Cryptography_InvalidECCharacteristic2Curve = "The specified Characteristic2 curve parameters are not valid. Polynomial, A, B, G.X, G.Y, and Order are required. A, B, G.X, G.Y must be the same length, and the same length as Q.X, Q.Y and D if those are specified. Seed, Cofactor and Hash are optional. Other parameters are not allowed.";
+       public const string Cryptography_InvalidECPrimeCurve = "The specified prime curve parameters are not valid. Prime, A, B, G.X, G.Y and Order are required and must be the same length, and the same length as Q.X, Q.Y and D if those are specified. Seed, Cofactor and Hash are optional. Other parameters are not allowed.";
+       public const string Cryptography_InvalidECNamedCurve = "The specified named curve parameters are not valid. Only the Oid parameter must be set.";
+       public const string Cryptography_UnknownHashAlgorithm = "'{0}' is not a known hash algorithm.";
 }
diff --git a/mcs/class/System.Core/ReferenceSources/SR.missing.cs b/mcs/class/System.Core/ReferenceSources/SR.missing.cs
deleted file mode 100644 (file)
index b91bd70..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-//
-// SR.missing.cs: Manually collected missing resource strings for ReferenceSources
-//
-// Authors:
-//     Marek Safar  <marek.safar@gmail.com>
-//
-// Copyright (C) 2014 Xamarin Inc (http://www.xamarin.com)
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-
-partial class SR
-{
-       public const string Cryptography_HashAlgorithmNameNullOrEmpty = "Cryptography_HashAlgorithmNameNullOrEmpty";
-       public const string NotSupported_SubclassOverride = "NotSupported_SubclassOverride";
-}
index 9e54bcb3f7227e907b9cbcb4fd4e7caad0ef485a..1c43593fb487b0874e60959e780cd6011e07ef04 100644 (file)
@@ -33,7 +33,6 @@ System.IO.Pipes/PipeStreamImpersonationWorker.cs
 System.IO.Pipes/PipeTransmissionMode.cs
 
 ReferenceSources/SR.cs
-ReferenceSources/SR.missing.cs
 
 corefx/LambdaExpression.cs
 corefx/SR.cs