Browse Source

Fixed AbpDictionayBasedStringLocalizer.

pull/179/head
Halil İbrahim Kalkan 9 years ago
parent
commit
a571ee1c94
  1. 4
      src/Volo.Abp.Identity.Web/Areas/Identity/Localization/Resource/en.json
  2. 4
      src/Volo.Abp.Identity.Web/Areas/Identity/Localization/Resource/tr.json
  3. 4
      src/Volo.Abp.Identity.Web/Pages/Identity/Users/CreateModal.cshtml.cs
  4. 2
      src/Volo.Abp/Volo/Abp/Localization/AbpDictionaryBasedStringLocalizer.cs
  5. 8
      src/Volo.Abp/Volo/Abp/Localization/AbpStringLocalizerList.cs
  6. 6
      src/Volo.Abp/Volo/Abp/Localization/IAbpStringLocalizer.cs

4
src/Volo.Abp.Identity.Web/Areas/Identity/Localization/Resource/en.json

@ -12,6 +12,8 @@
"Close": "Close",
"Save": "Save",
"Password": "Password",
"UserDeletionConfirmationMessage": "User '{0}' will be deleted. Do you confirm that?"
"UserDeletionConfirmationMessage": "User '{0}' will be deleted. Do you confirm that?",
"MaxLengthKey": "The field {0} must be a string or array type with a maximum length of '{1}'.",
"The {0} field is required.": "The {0} field is required."
}
}

4
src/Volo.Abp.Identity.Web/Areas/Identity/Localization/Resource/tr.json

@ -12,6 +12,8 @@
"Close": "Kapat",
"Save": "Kaydet",
"Password": "Şifre",
"UserDeletionConfirmationMessage": "{0} kullanıcısı silinecektir. Onaylıyor musunuz?"
"UserDeletionConfirmationMessage": "{0} kullanıcısı silinecektir. Onaylıyor musunuz?",
"The field {0} must be a string or array type with a maximum length of '{1}'.": "{0} alanı en fazla '{1}' karakter uzunluğunda olmalıdır.",
"The {0} field is required.": "{0} alanı zorunludur."
}
}

4
src/Volo.Abp.Identity.Web/Pages/Identity/Users/CreateModal.cshtml.cs

@ -47,13 +47,13 @@ namespace Volo.Abp.Identity.Web.Pages.Identity.Users
public class UserInfoViewModel
{
[Required]
[Required(ErrorMessage = "The {0} field is required.")]
[MaxLength(IdentityUserConsts.MaxUserNameLength)]
[Display(Name = "UserName")]
public string UserName { get; set; }
[Required]
[MaxLength(IdentityUserConsts.MaxPasswordLength)]
[MaxLength(IdentityUserConsts.MaxPasswordLength, ErrorMessage = "The field {0} must be a string or array type with a maximum length of '{1}'.")]
[DataType(DataType.Password)]
[Display(Name = "Password")]
public string Password { get; set; }

2
src/Volo.Abp/Volo/Abp/Localization/AbpDictionaryBasedStringLocalizer.cs

@ -32,7 +32,7 @@ namespace Volo.Abp.Localization
protected virtual LocalizedString GetLocalizedStringFormatted(string name, string cultureName, params object[] arguments)
{
var localizedString = GetLocalizedString(name, cultureName);
return new LocalizedString(name, string.Format(localizedString.Value, arguments, localizedString.ResourceNotFound, localizedString.SearchedLocation));
return new LocalizedString(name, string.Format(localizedString.Value, arguments), localizedString.ResourceNotFound, localizedString.SearchedLocation);
}
protected virtual LocalizedString GetLocalizedString(string name, string cultureName)

8
src/Volo.Abp/Volo/Abp/Localization/AbpStringLocalizerList.cs

@ -1,8 +0,0 @@
using System.Collections.Generic;
namespace Volo.Abp.Localization
{
public class AbpStringLocalizerList : List<IAbpStringLocalizer>
{
}
}

6
src/Volo.Abp/Volo/Abp/Localization/IAbpStringLocalizer.cs

@ -1,6 +0,0 @@
namespace Volo.Abp.Localization
{
public interface IAbpStringLocalizer
{
}
}
Loading…
Cancel
Save