Browse Source

Refactor normalizations.

pull/206/head
Halil İbrahim Kalkan 8 years ago
parent
commit
f4f49bb935
  1. 5
      src/Volo.Abp.AspNetCore.Mvc.UI.Bootstrap/Localization/Resources/AbpBootstrap/AbpBootstrapResource.cs
  2. 5
      src/Volo.Abp.AspNetCore.Mvc.UI.Bootstrap/Localization/Resources/AbpBootstrap/en.json
  3. 7
      src/Volo.Abp.AspNetCore.Mvc.UI.Bootstrap/Localization/Resources/AbpBootstrap/tr.json
  4. 7
      src/Volo.Abp.Identity.Web/Localization/Resources/AbpIdentity/IdentityResource.cs
  5. 9
      src/Volo.Abp.Identity.Web/Localization/Resources/AbpIdentity/en.json
  6. 7
      src/Volo.Abp.MultiTenancy.Web/Localization/Resources/AbpMultiTenancy/AbpMultiTenancyResource.cs
  7. 4
      src/Volo.Abp.MultiTenancy.Web/Localization/Resources/AbpMultiTenancy/en.json
  8. 2
      src/Volo.Abp.MultiTenancy.Web/Pages/MultiTenancy/Tenants/Index.cshtml

5
src/Volo.Abp.AspNetCore.Mvc.UI.Bootstrap/Localization/Resources/AbpBootstrap/AbpBootstrapResource.cs

@ -1,5 +1,8 @@
namespace Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.Localization.Resources.AbpBootstrap using Volo.Abp.Localization;
namespace Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.Localization.Resources.AbpBootstrap
{ {
[ShortLocalizationResourceName("AbpBootstrap")]
public class AbpBootstrapResource public class AbpBootstrapResource
{ {
} }

5
src/Volo.Abp.AspNetCore.Mvc.UI.Bootstrap/Localization/Resources/AbpBootstrap/en.json

@ -3,6 +3,9 @@
"texts": { "texts": {
"Close": "Close", "Close": "Close",
"Save": "Save", "Save": "Save",
"SavingWithThreeDot": "Saving..." "SavingWithThreeDot": "Saving...",
"Actions": "Actions",
"Delete": "Delete",
"Edit": "Edit"
} }
} }

7
src/Volo.Abp.AspNetCore.Mvc.UI.Bootstrap/Localization/Resources/AbpBootstrap/tr.json

@ -1,8 +1,11 @@
{ {
"culture": "tr", "culture": "tr",
"texts": { "texts": {
"Close": "Kapat", "Close": "Kapat",
"Save": "Kaydet", "Save": "Kaydet",
"SavingWithThreeDot": "Kaydediliyor..." "SavingWithThreeDot": "Kaydediliyor...",
"Actions": "İşlemler",
"Delete": "Sil",
"Edit": "Düzenle"
} }
} }

7
src/Volo.Abp.Identity.Web/Localization/Resources/AbpIdentity/IdentityResource.cs

@ -1,10 +1,13 @@
using Volo.Abp.Localization; using Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.Localization.Resources.AbpBootstrap;
using Volo.Abp.Localization;
using Volo.Abp.Localization.Resources.AbpValidation; using Volo.Abp.Localization.Resources.AbpValidation;
namespace Volo.Abp.Identity.Web.Localization.Resources.AbpIdentity namespace Volo.Abp.Identity.Web.Localization.Resources.AbpIdentity
{ {
[InheritResource(
typeof(AbpValidationResource),
typeof(AbpBootstrapResource))]
[ShortLocalizationResourceName("AbpIdentity")] [ShortLocalizationResourceName("AbpIdentity")]
[InheritResource(typeof(AbpValidationResource))]
public class IdentityResource //TODO: Rename to AbpIdentityResource public class IdentityResource //TODO: Rename to AbpIdentityResource
{ {

9
src/Volo.Abp.Identity.Web/Localization/Resources/AbpIdentity/en.json

@ -3,23 +3,16 @@
"texts": { "texts": {
"Users": "Users", "Users": "Users",
"NewUser": "New user", "NewUser": "New user",
"Actions": "Actions",
"UserName": "User name", "UserName": "User name",
"EmailAddress": "Email address", "EmailAddress": "Email address",
"PhoneNumber": "Phone number", "PhoneNumber": "Phone number",
"UserInformations": "User informations", "UserInformations": "User informations",
"Roles": "Roles", "Roles": "Roles",
"Close": "Close",
"Delete": "Delete",
"Edit": "Edit",
"Save": "Save",
"Password": "Password", "Password": "Password",
"UserDeletionConfirmationMessage": "User '{0}' will be deleted. Do you confirm that?", "UserDeletionConfirmationMessage": "User '{0}' will be deleted. Do you confirm that?",
"TwoFactorVerification": "Two factor verification", "TwoFactorVerification": "Two factor verification",
"AccountLockoutOnFailedLoginAttempts": "Locking account after failed login attempts", "AccountLockoutOnFailedLoginAttempts": "Locking account after failed login attempts",
"NewRole": "New role", "NewRole": "New role",
"RoleName": "Role name", "RoleName": "Role name"
"CreationTime": "Creation time"
} }
} }

7
src/Volo.Abp.MultiTenancy.Web/Localization/Resources/AbpMultiTenancy/AbpMultiTenancyResource.cs

@ -1,10 +1,13 @@
using Volo.Abp.Localization; using Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.Localization.Resources.AbpBootstrap;
using Volo.Abp.Localization;
using Volo.Abp.Localization.Resources.AbpValidation; using Volo.Abp.Localization.Resources.AbpValidation;
namespace Volo.Abp.MultiTenancy.Web.Localization.Resources.AbpMultiTenancy namespace Volo.Abp.MultiTenancy.Web.Localization.Resources.AbpMultiTenancy
{ {
[InheritResource(
typeof(AbpValidationResource),
typeof(AbpBootstrapResource))]
[ShortLocalizationResourceName("AbpMultiTenancy")] [ShortLocalizationResourceName("AbpMultiTenancy")]
[InheritResource(typeof(AbpValidationResource))]
public class AbpMultiTenancyResource public class AbpMultiTenancyResource
{ {

4
src/Volo.Abp.MultiTenancy.Web/Localization/Resources/AbpMultiTenancy/en.json

@ -1,7 +1,9 @@
{ {
"culture": "en", "culture": "en",
"texts": { "texts": {
"Tenants": "Tenants",
"NewTenant": "New tenant", "NewTenant": "New tenant",
"TenantName": "Tenant name" "TenantName": "Tenant name",
"TenantDeletionConfirmationMessage": "Tenant '{0}' will be deleted. Do you confirm that?"
} }
} }

2
src/Volo.Abp.MultiTenancy.Web/Pages/MultiTenancy/Tenants/Index.cshtml

@ -37,7 +37,7 @@
<thead> <thead>
<tr> <tr>
<th>@L["Actions"]</th> <th>@L["Actions"]</th>
<th>@L["Name"]</th> <th>@L["TenantName"]</th>
</tr> </tr>
</thead> </thead>
</table> </table>

Loading…
Cancel
Save