Rename AbpDddResource to AbpDddApplicationContractsResource

resolves https://github.com/abpframework/abp/issues/2490
pull/2500/head^2
Yunus Emre Kalkan 5 years ago
parent dee0594e80
commit 9d65b6d848

@ -22,7 +22,7 @@ namespace Volo.Abp.Application
Configure<AbpLocalizationOptions>(options => Configure<AbpLocalizationOptions>(options =>
{ {
options.Resources options.Resources
.Add<AbpDddResource>("en") .Add<AbpDddApplicationContractsResource>("en")
.AddVirtualJson("/Volo/Abp/Application/Localization/Resources/AbpDdd"); .AddVirtualJson("/Volo/Abp/Application/Localization/Resources/AbpDdd");
}); });
} }

@ -35,7 +35,7 @@ namespace Volo.Abp.Application.Dtos
{ {
if (MaxResultCount > MaxMaxResultCount) if (MaxResultCount > MaxMaxResultCount)
{ {
var localizer = validationContext.GetRequiredService<IStringLocalizer<AbpDddResource>>(); var localizer = validationContext.GetRequiredService<IStringLocalizer<AbpDddApplicationContractsResource>>();
yield return new ValidationResult( yield return new ValidationResult(
localizer[ localizer[

@ -0,0 +1,10 @@
using Volo.Abp.Localization;
namespace Volo.Abp.Application.Localization.Resources.AbpDdd
{
[LocalizationResourceName("AbpDddApplicationContracts")]
public class AbpDddApplicationContractsResource
{
}
}

@ -1,10 +0,0 @@
using Volo.Abp.Localization;
namespace Volo.Abp.Application.Localization.Resources.AbpDdd
{
[LocalizationResourceName("AbpDdd")]
public class AbpDddResource
{
}
}
Loading…
Cancel
Save