diff --git a/aspnet-core/modules/account/LINGYUN.Abp.Account.Application.Contracts/LINGYUN/Abp/Account/Localization/Resources/en.json b/aspnet-core/modules/account/LINGYUN.Abp.Account.Application.Contracts/LINGYUN/Abp/Account/Localization/Resources/en.json index 3fac4ec96..43a9ef871 100644 --- a/aspnet-core/modules/account/LINGYUN.Abp.Account.Application.Contracts/LINGYUN/Abp/Account/Localization/Resources/en.json +++ b/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." } } \ No newline at end of file diff --git a/aspnet-core/modules/account/LINGYUN.Abp.Account.Application.Contracts/LINGYUN/Abp/Account/Localization/Resources/zh-Hans.json b/aspnet-core/modules/account/LINGYUN.Abp.Account.Application.Contracts/LINGYUN/Abp/Account/Localization/Resources/zh-Hans.json index a550172c7..7800b78e6 100644 --- a/aspnet-core/modules/account/LINGYUN.Abp.Account.Application.Contracts/LINGYUN/Abp/Account/Localization/Resources/zh-Hans.json +++ b/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": "您的手机号码已成功更改." } } \ No newline at end of file diff --git a/aspnet-core/modules/localization-management/LINGYUN.Abp.LocalizationManagement.Domain/LINGYUN/Abp/LocalizationManagement/AbpLocalizationManagementOptions.cs b/aspnet-core/modules/localization-management/LINGYUN.Abp.LocalizationManagement.Domain/LINGYUN/Abp/LocalizationManagement/AbpLocalizationManagementOptions.cs index e2b7988b7..c9fe5f701 100644 --- a/aspnet-core/modules/localization-management/LINGYUN.Abp.LocalizationManagement.Domain/LINGYUN/Abp/LocalizationManagement/AbpLocalizationManagementOptions.cs +++ b/aspnet-core/modules/localization-management/LINGYUN.Abp.LocalizationManagement.Domain/LINGYUN/Abp/LocalizationManagement/AbpLocalizationManagementOptions.cs @@ -5,7 +5,7 @@ public class AbpLocalizationManagementOptions /// /// 保存本地化文本到数据库 /// - public bool SaveStaticLocalizationsToDatabase { get; set; } + public bool SaveStaticLocalizationsToDatabase { get; set; } = true; public AbpLocalizationManagementOptions() { diff --git a/aspnet-core/modules/settings/LINGYUN.Abp.SettingManagement.Application/LINGYUN/Abp/SettingManagement/Localization/Resources/en.json b/aspnet-core/modules/settings/LINGYUN.Abp.SettingManagement.Application/LINGYUN/Abp/SettingManagement/Localization/Resources/en.json index 6ecc5729d..1e68342c1 100644 --- a/aspnet-core/modules/settings/LINGYUN.Abp.SettingManagement.Application/LINGYUN/Abp/SettingManagement/Localization/Resources/en.json +++ b/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.", diff --git a/aspnet-core/modules/settings/LINGYUN.Abp.SettingManagement.Application/LINGYUN/Abp/SettingManagement/Localization/Resources/zh-Hans.json b/aspnet-core/modules/settings/LINGYUN.Abp.SettingManagement.Application/LINGYUN/Abp/SettingManagement/Localization/Resources/zh-Hans.json index 8c94b28a8..ec57aa9ce 100644 --- a/aspnet-core/modules/settings/LINGYUN.Abp.SettingManagement.Application/LINGYUN/Abp/SettingManagement/Localization/Resources/zh-Hans.json +++ b/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": "如果已改变设置, 将还原到默认设置项。否则会删除自定义设置.", diff --git a/aspnet-core/modules/settings/LINGYUN.Abp.SettingManagement.HttpApi/LINGYUN/Abp/SettingManagement/AbpSettingManagementHttpApiModule.cs b/aspnet-core/modules/settings/LINGYUN.Abp.SettingManagement.HttpApi/LINGYUN/Abp/SettingManagement/AbpSettingManagementHttpApiModule.cs index b86d79496..d84a01574 100644 --- a/aspnet-core/modules/settings/LINGYUN.Abp.SettingManagement.HttpApi/LINGYUN/Abp/SettingManagement/AbpSettingManagementHttpApiModule.cs +++ b/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() .AddBaseTypes( - typeof(AbpUiResource) + typeof(AbpUiResource), + typeof(IdentityResource), + typeof(AccountResource) ); }); }