From e0ea3ff93a5e395824a339d1259f612ad5900a18 Mon Sep 17 00:00:00 2001 From: Aaron Chong Date: Wed, 6 Sep 2017 01:10:01 +0800 Subject: [PATCH 1/5] Add missing localization used in edit modals --- .../Localization/SourceFiles/AbpProjectName.xml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/aspnet-core/src/AbpCompanyName.AbpProjectName.Core/Localization/SourceFiles/AbpProjectName.xml b/aspnet-core/src/AbpCompanyName.AbpProjectName.Core/Localization/SourceFiles/AbpProjectName.xml index e66bdb2b0..cfc07847e 100644 --- a/aspnet-core/src/AbpCompanyName.AbpProjectName.Core/Localization/SourceFiles/AbpProjectName.xml +++ b/aspnet-core/src/AbpCompanyName.AbpProjectName.Core/Localization/SourceFiles/AbpProjectName.xml @@ -77,5 +77,9 @@ Actions Could not complete login operation. Please try again later. + + Edit role + Edit tenant + Edit user From 1711feb504deb7821027b8f427fc6b635ac42338 Mon Sep 17 00:00:00 2001 From: Aaron Chong Date: Wed, 6 Sep 2017 01:10:19 +0800 Subject: [PATCH 2/5] Standardise capitalization of localized string --- .../Localization/SourceFiles/AbpProjectName.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aspnet-core/src/AbpCompanyName.AbpProjectName.Core/Localization/SourceFiles/AbpProjectName.xml b/aspnet-core/src/AbpCompanyName.AbpProjectName.Core/Localization/SourceFiles/AbpProjectName.xml index cfc07847e..c6ce4f064 100644 --- a/aspnet-core/src/AbpCompanyName.AbpProjectName.Core/Localization/SourceFiles/AbpProjectName.xml +++ b/aspnet-core/src/AbpCompanyName.AbpProjectName.Core/Localization/SourceFiles/AbpProjectName.xml @@ -72,7 +72,7 @@ Edit Delete - Create New Role + Create new role Role Name Actions From b6ae7a3b95ebe0688b76ce6f8db95d94968c2e65 Mon Sep 17 00:00:00 2001 From: Aaron Chong Date: Wed, 6 Sep 2017 01:48:26 +0800 Subject: [PATCH 3/5] Add missing localization used in UserRegistrationManager --- .../Localization/SourceFiles/AbpProjectName.xml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/aspnet-core/src/AbpCompanyName.AbpProjectName.Core/Localization/SourceFiles/AbpProjectName.xml b/aspnet-core/src/AbpCompanyName.AbpProjectName.Core/Localization/SourceFiles/AbpProjectName.xml index c6ce4f064..684984412 100644 --- a/aspnet-core/src/AbpCompanyName.AbpProjectName.Core/Localization/SourceFiles/AbpProjectName.xml +++ b/aspnet-core/src/AbpCompanyName.AbpProjectName.Core/Localization/SourceFiles/AbpProjectName.xml @@ -81,5 +81,7 @@ Edit role Edit tenant Edit user + TenantId {0} is not active + Unknown tenantId {0} From f048d80ce3a693a22c834c81dc86ca7900dcc0c0 Mon Sep 17 00:00:00 2001 From: Aaron Chong Date: Wed, 6 Sep 2017 01:52:00 +0800 Subject: [PATCH 4/5] Add missing localization used in TokenAuthController --- .../Localization/SourceFiles/AbpProjectName.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/aspnet-core/src/AbpCompanyName.AbpProjectName.Core/Localization/SourceFiles/AbpProjectName.xml b/aspnet-core/src/AbpCompanyName.AbpProjectName.Core/Localization/SourceFiles/AbpProjectName.xml index 684984412..2235ed20a 100644 --- a/aspnet-core/src/AbpCompanyName.AbpProjectName.Core/Localization/SourceFiles/AbpProjectName.xml +++ b/aspnet-core/src/AbpCompanyName.AbpProjectName.Core/Localization/SourceFiles/AbpProjectName.xml @@ -78,6 +78,7 @@ Could not complete login operation. Please try again later. + Could not validate external user Edit role Edit tenant Edit user From db8872f838eeb867b639078b2d3a83ba55811382 Mon Sep 17 00:00:00 2001 From: Aaron Chong Date: Wed, 6 Sep 2017 02:00:14 +0800 Subject: [PATCH 5/5] Fix localization key in RoleAppService --- .../Roles/RoleAppService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aspnet-core/src/AbpCompanyName.AbpProjectName.Application/Roles/RoleAppService.cs b/aspnet-core/src/AbpCompanyName.AbpProjectName.Application/Roles/RoleAppService.cs index 05026cba4..a07736f88 100644 --- a/aspnet-core/src/AbpCompanyName.AbpProjectName.Application/Roles/RoleAppService.cs +++ b/aspnet-core/src/AbpCompanyName.AbpProjectName.Application/Roles/RoleAppService.cs @@ -75,7 +75,7 @@ public override async Task Delete(EntityDto input) var role = await _roleManager.FindByIdAsync(input.Id.ToString()); if (role.IsStatic) { - throw new UserFriendlyException("CannotDeleteAStaticRole"); + throw new UserFriendlyException(L("CanNotDeleteStaticRole")); } var users = await _userManager.GetUsersInRoleAsync(role.NormalizedName);