Browse Source

fix(settings): Fixed some Settings localization errors

pull/1165/head
colin 1 year ago
parent
commit
578050a250
  1. 3
      aspnet-core/modules/account/LINGYUN.Abp.Account.Application.Contracts/LINGYUN/Abp/Account/Localization/Resources/en.json
  2. 3
      aspnet-core/modules/account/LINGYUN.Abp.Account.Application.Contracts/LINGYUN/Abp/Account/Localization/Resources/zh-Hans.json
  3. 2
      aspnet-core/modules/localization-management/LINGYUN.Abp.LocalizationManagement.Domain/LINGYUN/Abp/LocalizationManagement/AbpLocalizationManagementOptions.cs
  4. 4
      aspnet-core/modules/settings/LINGYUN.Abp.SettingManagement.Application/LINGYUN/Abp/SettingManagement/Localization/Resources/en.json
  5. 4
      aspnet-core/modules/settings/LINGYUN.Abp.SettingManagement.Application/LINGYUN/Abp/SettingManagement/Localization/Resources/zh-Hans.json
  6. 6
      aspnet-core/modules/settings/LINGYUN.Abp.SettingManagement.HttpApi/LINGYUN/Abp/SettingManagement/AbpSettingManagementHttpApiModule.cs

3
aspnet-core/modules/account/LINGYUN.Abp.Account.Application.Contracts/LINGYUN/Abp/Account/Localization/Resources/en.json

@ -49,6 +49,7 @@
"ProfileTab:Session": "Sessions",
"ProfileTab:TwoFactor": "TwoFactor",
"ProfileTab:Authenticator": "Authenticator",
"ProfileTab:SecurityLog": "Security Log"
"ProfileTab:SecurityLog": "Security Log",
"PhoneNumberChangedMessage": "Your mobile number has been successfully changed."
}
}

3
aspnet-core/modules/account/LINGYUN.Abp.Account.Application.Contracts/LINGYUN/Abp/Account/Localization/Resources/zh-Hans.json

@ -49,6 +49,7 @@
"ProfileTab:Session": "会话管理",
"ProfileTab:TwoFactor": "双因素身份验证",
"ProfileTab:Authenticator": "身份验证程序",
"ProfileTab:SecurityLog": "安全日志"
"ProfileTab:SecurityLog": "安全日志",
"PhoneNumberChangedMessage": "您的手机号码已成功更改."
}
}

2
aspnet-core/modules/localization-management/LINGYUN.Abp.LocalizationManagement.Domain/LINGYUN/Abp/LocalizationManagement/AbpLocalizationManagementOptions.cs

@ -5,7 +5,7 @@ public class AbpLocalizationManagementOptions
/// <summary>
/// 保存本地化文本到数据库
/// </summary>
public bool SaveStaticLocalizationsToDatabase { get; set; }
public bool SaveStaticLocalizationsToDatabase { get; set; } = true;
public AbpLocalizationManagementOptions()
{

4
aspnet-core/modules/settings/LINGYUN.Abp.SettingManagement.Application/LINGYUN/Abp/SettingManagement/Localization/Resources/en.json

@ -22,6 +22,10 @@
"Description:Providers": "A list of allowed providers to get/set value of this setting, An empty list indicates that all providers are allowed.",
"DisplayName:ExtraProperties": "Properties",
"Description:ExtraProperties": "Can be used to get/set custom properties for this setting definition.",
"DisplayName:Abp.Account.IsSelfRegistrationEnabled": "Is self-registration enabled",
"Description:Abp.Account.IsSelfRegistrationEnabled": "Whether a user can register the account by him or herself.",
"DisplayName:Abp.Account.EnableLocalLogin": "Authenticate with a local account",
"Description:Abp.Account.EnableLocalLogin": "Indicates if the server will allow users to authenticate with a local account.",
"Definition:AddNew": "Add New",
"DeleteOrRestore": "Delete/Restore",
"ItemWillBeDeleteOrRestoreMessage": "If you have changed the Settings, you will revert to the default Settings. Otherwise, the custom Settings are removed.",

4
aspnet-core/modules/settings/LINGYUN.Abp.SettingManagement.Application/LINGYUN/Abp/SettingManagement/Localization/Resources/zh-Hans.json

@ -22,6 +22,10 @@
"Description:Providers": "允许提供程序获取/设置此设置的值的列表,空列表表示允许所有提供程序.",
"DisplayName:ExtraProperties": "扩展属性",
"Description:ExtraProperties": "可用于获取/设置此设置定义的自定义属性.",
"DisplayName:Abp.Account.IsSelfRegistrationEnabled": "是否启用了自行注册",
"Description:Abp.Account.IsSelfRegistrationEnabled": "用户是否可以自己注册账户。",
"DisplayName:Abp.Account.EnableLocalLogin": "使用本地账户进行身份验证",
"Description:Abp.Account.EnableLocalLogin": "表示服务器是否允许用户使用本地账户进行身份验证。",
"Definition:AddNew": "添加新设置",
"DeleteOrRestore": "删除/还原",
"ItemWillBeDeleteOrRestoreMessage": "如果已改变设置, 将还原到默认设置项。否则会删除自定义设置.",

6
aspnet-core/modules/settings/LINGYUN.Abp.SettingManagement.HttpApi/LINGYUN/Abp/SettingManagement/AbpSettingManagementHttpApiModule.cs

@ -1,6 +1,8 @@
using Localization.Resources.AbpUi;
using Microsoft.Extensions.DependencyInjection;
using Volo.Abp.Account.Localization;
using Volo.Abp.AspNetCore.Mvc;
using Volo.Abp.Identity.Localization;
using Volo.Abp.Localization;
using Volo.Abp.Modularity;
using Volo.Abp.SettingManagement.Localization;
@ -28,7 +30,9 @@ public class AbpSettingManagementHttpApiModule : AbpModule
options.Resources
.Get<AbpSettingManagementResource>()
.AddBaseTypes(
typeof(AbpUiResource)
typeof(AbpUiResource),
typeof(IdentityResource),
typeof(AccountResource)
);
});
}

Loading…
Cancel
Save