From d003a4761d81fafa7f007f28deb1d086b0f2de7b Mon Sep 17 00:00:00 2001 From: Yunus Emre Kalkan Date: Mon, 5 Aug 2019 14:47:11 +0300 Subject: [PATCH] added parameterless validations --- .../Resources/AbpValidation/cs.json | 16 ++++++- .../Resources/AbpValidation/en.json | 17 ++++++- .../Resources/AbpValidation/zh-Hans.json | 48 ++++++++++++------- 3 files changed, 62 insertions(+), 19 deletions(-) diff --git a/framework/src/Volo.Abp.Localization/Volo/Abp/Localization/Resources/AbpValidation/cs.json b/framework/src/Volo.Abp.Localization/Volo/Abp/Localization/Resources/AbpValidation/cs.json index d38574303a..aaaf2e2efc 100644 --- a/framework/src/Volo.Abp.Localization/Volo/Abp/Localization/Resources/AbpValidation/cs.json +++ b/framework/src/Volo.Abp.Localization/Volo/Abp/Localization/Resources/AbpValidation/cs.json @@ -15,6 +15,20 @@ "The field {0} must be a string with a maximum length of {1}.": "Pole {0} musí být řetězec o maximální délce {1}.", "The field {0} must be a string with a minimum length of {2} and a maximum length of {1}.": "Pole {0} musí být řetězec o minimální délce {2} a maximální délce {1} znaků.", "The {0} field is not a valid fully-qualified http, https, or ftp URL.": "Pole {0} není platná plně kvalifikovaná adresa http, https, nebo ftp URL.", - "The field {0} is invalid.": "Pole {0} je neplatné." + "The field {0} is invalid.": "Pole {0} je neplatné.", + "TheFieldIsNotAValidCreditCardNumber.": "V poli {0} není platné číslo kreditní karty.", + "TheFieldIsNotValid.": "{0} není platný.", + "TheFieldIsNotAValidEmailAddress.": "V poli {0} není platný email.", + "TheFieldOnlyAcceptsFilesWithTheFollowingExtensions:{0}": "Pole přijímá soubory pouze s následujícími koncovkami: {0}", + "TheFieldMustBeAStringOrArrayTypeWithAMaximumLengthoOf{0}": "Vy poli musí být řežezec nebo řada o maximální délce '{0}'.", + "TheFieldMustBeAStringOrArrayTypeWithAMinimumLengthOf{0}": "V poli musí být řežezec nebo řada o minimální délce '{0}'.", + "TheFieldIsNotAValidPhoneNumber.": "V poli není platné telefonní číslo.", + "TheFieldMustBeBetween{0}And{1}": "Pole musí být mezi {0} a {1}.", + "TheFieldMustMatchTheRegularExpression{0}": "Pole musí odpovídat regulérnímu výrazu '{0}'.", + "TheFieldIsRequired.": "Pole je povinné.", + "TheFieldMustBeAStringWithAMaximumLengthOf{1}": "Pole musí být řetězec o maximální délce {0}.", + "TheFieldMustBeAStringWithAMinimumLengthOf{1}AndAMaximumLengthOf{0}": "Pole musí být řetězec o minimální délce {1} a maximální délce {0} znaků.", + "TheFieldIsNotAValidFullyQualifiedHttpHttpsOrFtpUrl": "Pole není platná plně kvalifikovaná adresa http, https, nebo ftp URL.", + "TheFieldIsInvalid.": "Pole je neplatné." } } \ No newline at end of file diff --git a/framework/src/Volo.Abp.Localization/Volo/Abp/Localization/Resources/AbpValidation/en.json b/framework/src/Volo.Abp.Localization/Volo/Abp/Localization/Resources/AbpValidation/en.json index dc853cca3a..0d6dcb6782 100644 --- a/framework/src/Volo.Abp.Localization/Volo/Abp/Localization/Resources/AbpValidation/en.json +++ b/framework/src/Volo.Abp.Localization/Volo/Abp/Localization/Resources/AbpValidation/en.json @@ -15,6 +15,21 @@ "The field {0} must be a string with a maximum length of {1}.": "The field {0} must be a string with a maximum length of {1}.", "The field {0} must be a string with a minimum length of {2} and a maximum length of {1}.": "The field {0} must be a string with a minimum length of {2} and a maximum length of {1}.", "The {0} field is not a valid fully-qualified http, https, or ftp URL.": "The {0} field is not a valid fully-qualified http, https, or ftp URL.", - "The field {0} is invalid.": "The field {0} is invalid." + "The field {0} is invalid.": "The field {0} is invalid.", + "'{0}' and '{1}' do not match.": "'{0}' and '{1}' do not match.", + "TheFieldIsNotAValidCreditCardNumber.": "The field is not a valid credit card number.", + "TheFieldIsNotValid.": "The field is not valid.", + "TheFieldIsNotAValidEmailAddress.": "The field is not a valid e-mail address.", + "TheFieldOnlyAcceptsFilesWithTheFollowingExtensions:{0}": "The field only accepts files with the following extensions: {0}", + "TheFieldMustBeAStringOrArrayTypeWithAMaximumLengthoOf{0}": "The field must be a string or array type with a maximum length of '{0}'.", + "TheFieldMustBeAStringOrArrayTypeWithAMinimumLengthOf{0}": "The field must be a string or array type with a minimum length of '{0}'.", + "TheFieldIsNotAValidPhoneNumber.": "The field is not a valid phone number.", + "TheFieldMustBeBetween{0}And{1}": "The field must be between {0} and {1}.", + "TheFieldMustMatchTheRegularExpression{0}": "The field must match the regular expression '{0}'.", + "TheFieldIsRequired.": "The field is required.", + "TheFieldMustBeAStringWithAMaximumLengthOf{1}": "The field must be a string with a maximum length of {0}.", + "TheFieldMustBeAStringWithAMinimumLengthOf{1}AndAMaximumLengthOf{0}": "The field must be a string with a minimum length of {1} and a maximum length of {0}.", + "TheFieldIsNotAValidFullyQualifiedHttpHttpsOrFtpUrl": "The field is not a valid fully-qualified http, https, or ftp URL.", + "TheFieldIsInvalid.": "The field is invalid." } } \ No newline at end of file diff --git a/framework/src/Volo.Abp.Localization/Volo/Abp/Localization/Resources/AbpValidation/zh-Hans.json b/framework/src/Volo.Abp.Localization/Volo/Abp/Localization/Resources/AbpValidation/zh-Hans.json index c542161029..400b4ba6d3 100644 --- a/framework/src/Volo.Abp.Localization/Volo/Abp/Localization/Resources/AbpValidation/zh-Hans.json +++ b/framework/src/Volo.Abp.Localization/Volo/Abp/Localization/Resources/AbpValidation/zh-Hans.json @@ -1,20 +1,34 @@ { "culture": "zh-Hans", - "texts": { - "'{0}' and '{1}' do not match.": "'{0}'与'{1}'不匹配.", - "The {0} field is not a valid credit card number.": "字段{0}不是有效的信用卡号码.", - "{0} is not valid.": "{0}验证未通过.", - "The {0} field is not a valid e-mail address.": "字段{0}不是有效的邮箱地址.", - "The {0} field only accepts files with the following extensions: {1}": "{0}字段只允许以下扩展名的文件: {1}", - "The field {0} must be a string or array type with a maximum length of '{1}'.": "字段{0}必须是最大长度为'{1}'的字符串或数组.", - "The field {0} must be a string or array type with a minimum length of '{1}'.": "字段{0}必须是最小长度为'{1}'的字符串或数组.", - "The {0} field is not a valid phone number.": "字段{0}不是有效的身份证号码.", - "The field {0} must be between {1} and {2}.": "字段{0}值必须在{1}和{2}范围内.", - "The field {0} must match the regular expression '{1}'.": "字段{0}必须匹配正则表达式'{1}'.", - "The {0} field is required.": "字段{0}不可为空.", - "The field {0} must be a string with a maximum length of {1}.": "字段{0}必须是长度为{1}的字符串.", - "The field {0} must be a string with a minimum length of {2} and a maximum length of {1}.": "字段{0}必须是最小长度为{2}并且最大长度{1}的字符串.", - "The {0} field is not a valid fully-qualified http, https, or ftp URL.": "字段{0}不是有效的完全限定的http,https或ftp URL.", - "The field {0} is invalid.": "字段{0}是无效值." - } + "texts": { + "'{0}' and '{1}' do not match.": "'{0}'与'{1}'不匹配.", + "The {0} field is not a valid credit card number.": "字段{0}不是有效的信用卡号码.", + "{0} is not valid.": "{0}验证未通过.", + "The {0} field is not a valid e-mail address.": "字段{0}不是有效的邮箱地址.", + "The {0} field only accepts files with the following extensions: {1}": "{0}字段只允许以下扩展名的文件: {1}", + "The field {0} must be a string or array type with a maximum length of '{1}'.": "字段{0}必须是最大长度为'{1}'的字符串或数组.", + "The field {0} must be a string or array type with a minimum length of '{1}'.": "字段{0}必须是最小长度为'{1}'的字符串或数组.", + "The {0} field is not a valid phone number.": "字段{0}不是有效的身份证号码.", + "The field {0} must be between {1} and {2}.": "字段{0}值必须在{1}和{2}范围内.", + "The field {0} must match the regular expression '{1}'.": "字段{0}必须匹配正则表达式'{1}'.", + "The {0} field is required.": "字段{0}不可为空.", + "The field {0} must be a string with a maximum length of {1}.": "字段{0}必须是长度为{1}的字符串.", + "The field {0} must be a string with a minimum length of {2} and a maximum length of {1}.": "字段{0}必须是最小长度为{2}并且最大长度{1}的字符串.", + "The {0} field is not a valid fully-qualified http, https, or ftp URL.": "字段{0}不是有效的完全限定的http,https或ftp URL.", + "The field {0} is invalid.": "字段{0}是无效值.", + "TheFieldIsNotAValidCreditCardNumber.": "字段不是有效的信用卡号码.", + "TheFieldIsNotValid.": "验证未通过.", + "TheFieldIsNotAValidEmailAddress.": "字段不是有效的邮箱地址.", + "TheFieldOnlyAcceptsFilesWithTheFollowingExtensions:{0}": "字段只允许以下扩展名的文件: {0}", + "TheFieldMustBeAStringOrArrayTypeWithAMaximumLengthoOf{0}": "字段必须是最大长度为'{0}'的字符串或数组.", + "TheFieldMustBeAStringOrArrayTypeWithAMinimumLengthOf{0}": "字段必须是最小长度为'{0}'的字符串或数组.", + "TheFieldIsNotAValidPhoneNumber.": "字段不是有效的身份证号码.", + "TheFieldMustBeBetween{0}And{1}": "字段值必须在{0}和{1}范围内.", + "TheFieldMustMatchTheRegularExpression{0}": "字段必须匹配正则表达式'{0}'.", + "TheFieldIsRequired.": "字段不可为空.", + "TheFieldMustBeAStringWithAMaximumLengthOf{1}": "字段必须是长度为{0}的字符串.", + "TheFieldMustBeAStringWithAMinimumLengthOf{1}AndAMaximumLengthOf{0}": "字段必须是最小长度为{1}并且最大长度{*}的字符串.", + "TheFieldIsNotAValidFullyQualifiedHttpHttpsOrFtpUrl": "字段{0}不是有效的完全限定的http,https或ftp URL.", + "TheFieldIsInvalid.": "字段是无效值." + } } \ No newline at end of file