From a9cf03161251e555c353431e28c3e58510c63091 Mon Sep 17 00:00:00 2001 From: Halil ibrahim Kalkan Date: Wed, 4 Jul 2018 11:20:54 +0300 Subject: [PATCH] Localized all identity error messages --- .../Abp/Identity/Localization/Domain/en.json | 25 ++++++++++++++++++- .../Abp/Identity/Localization/Domain/tr.json | 25 ++++++++++++++++++- 2 files changed, 48 insertions(+), 2 deletions(-) diff --git a/modules/identity/src/Volo.Abp.Identity.Domain/Volo/Abp/Identity/Localization/Domain/en.json b/modules/identity/src/Volo.Abp.Identity.Domain/Volo/Abp/Identity/Localization/Domain/en.json index 284850e093..a1ee4371d4 100644 --- a/modules/identity/src/Volo.Abp.Identity.Domain/Volo/Abp/Identity/Localization/Domain/en.json +++ b/modules/identity/src/Volo.Abp.Identity.Domain/Volo/Abp/Identity/Localization/Domain/en.json @@ -1,7 +1,30 @@ { "culture": "en", "texts": { + "Identity.DefaultError": "An unknown failure has occurred.", + "Identity.ConcurrencyFailure": "Optimistic concurrency failure, object has been modified.", + "Identity.DuplicateEmail": "Email '{0}' is already taken.", + "Identity.DuplicateRoleName": "Role name '{0}' is already taken.", + "Identity.DuplicateUserName": "User name '{0}' is already taken.", + "Identity.InvalidEmail": "Email '{0}' is invalid.", + "Identity.InvalidPasswordHasherCompatibilityMode": "The provided PasswordHasherCompatibilityMode is invalid.", + "Identity.InvalidPasswordHasherIterationCount": "The iteration count must be a positive integer.", + "Identity.InvalidRoleName": "Role name '{0}' is invalid.", + "Identity.InvalidToken": "Invalid token.", + "Identity.InvalidUserName": "User name '{0}' is invalid, can only contain letters or digits.", + "Identity.LoginAlreadyAssociated": "A user with this login already exists.", + "Identity.PasswordMismatch": "Incorrect password.", + "Identity.PasswordRequiresDigit": "Passwords must have at least one digit ('0'-'9').", + "Identity.PasswordRequiresLower": "Passwords must have at least one lowercase ('a'-'z').", + "Identity.PasswordRequiresNonAlphanumeric": "Passwords must have at least one non alphanumeric character.", + "Identity.PasswordRequiresUpper": "Passwords must have at least one uppercase ('A'-'Z').", "Identity.PasswordTooShort": "Passwords must be at least {0} characters.", - "Identity.PasswordRequiresNonAlphanumeric": "Passwords must have at least one non alphanumeric character." + "Identity.RoleNotFound": "Role {0} does not exist.", + "Identity.UserAlreadyHasPassword": "User already has a password set.", + "Identity.UserAlreadyInRole": "User already in role '{0}'.", + "Identity.UserLockedOut": "User is locked out.", + "Identity.UserLockoutNotEnabled": "Lockout is not enabled for this user.", + "Identity.UserNameNotFound": "User {0} does not exist.", + "Identity.UserNotInRole": "User is not in role '{0}'." } } \ No newline at end of file diff --git a/modules/identity/src/Volo.Abp.Identity.Domain/Volo/Abp/Identity/Localization/Domain/tr.json b/modules/identity/src/Volo.Abp.Identity.Domain/Volo/Abp/Identity/Localization/Domain/tr.json index 2e3462386f..d2401b47a4 100644 --- a/modules/identity/src/Volo.Abp.Identity.Domain/Volo/Abp/Identity/Localization/Domain/tr.json +++ b/modules/identity/src/Volo.Abp.Identity.Domain/Volo/Abp/Identity/Localization/Domain/tr.json @@ -1,7 +1,30 @@ { "culture": "tr", "texts": { + "Identity.DefaultError": "Bilinmeyen bir hata oluştu.", + "Identity.ConcurrencyFailure": "İyimser eşzamanlılık hatası. Nesne değiştirilmiş.", + "Identity.DuplicateEmail": "'{0}' email adresi zaten alınmış.", + "Identity.DuplicateRoleName": "'{0}' rol ismi zaten alınmış.", + "Identity.DuplicateUserName": "'{0}' kullanıcı adı zaten alınmış.", + "Identity.InvalidEmail": "'{0}' email adresi hatalı.", + "Identity.InvalidPasswordHasherCompatibilityMode": "Belirtilen PasswordHasherCompatibilityMode geçersiz.", + "Identity.InvalidPasswordHasherIterationCount": "Iterasyon sayısı sıfırdan büyük bir sayı olmalı.", + "Identity.InvalidRoleName": "'{0}' rol ismi geçersizdir.", + "Identity.InvalidToken": "Geçersiz token.", + "Identity.InvalidUserName": "'{0}' kullanıcı adı geçersiz, sadece harf ve rakamlardan oluşmalı.", + "Identity.LoginAlreadyAssociated": "Bu giriş bilgilerine sahip bir kullanıcı zaten var.", + "Identity.PasswordMismatch": "Hatalı şifre.", + "Identity.PasswordRequiresDigit": "Şifre en az bir sayı içermeli ('0'-'9').", + "Identity.PasswordRequiresLower": "Şifre en az bir küçük harf içermeli ('a'-'z').", + "Identity.PasswordRequiresNonAlphanumeric": "Şifre en az bir sayı ya da harf olmayan karakter içermeli.", + "Identity.PasswordRequiresUpper": "Şifre en az bir büyük harf içermeli ('A'-'Z').", "Identity.PasswordTooShort": "Şifre en az {0} karakter uzunluğunda olmalı.", - "Identity.PasswordRequiresNonAlphanumeric": "Şifre en az bir sayı ya da harf olmayan karakter içermeli." + "Identity.RoleNotFound": "{0} rolü bulunamadı.", + "Identity.UserAlreadyHasPassword": "Kullanıcının zaten bir şifresi var.", + "Identity.UserAlreadyInRole": "Kullanıcı zaten '{0}' rolünde.", + "Identity.UserLockedOut": "Kullanıcı hesabı kilitlenmiş.", + "Identity.UserLockoutNotEnabled": "Bu kullanıcı için hesap kilitleme etkin değil.", + "Identity.UserNameNotFound": "{0} kullanıcısı bulunamadı.", + "Identity.UserNotInRole": "Kullanıcı '{0}' rolünde değil." } } \ No newline at end of file