Base solution for your next web application
Open Closed

AbpIdentityResult not translated #2151


User avatar
0
samdev created

Hi,

I have a problem with an error message. When creating a user with special characters, i get the following error : "User name @-_test is invalid, can only contain letters or digits". But i cant get this error message being translated.

I have the correct translation for key "Identity.InvalidUserName" in french XML, but it seems it's never called because it uses AbpIdentityResult object.

Thanks in advance for your help,

Markdown is supported
Copy & paste or drag & drop images (max 30 MB per image)

3 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    I didn't have time to try this on a test project. Did you fix it ?

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    samdev created

    Hello, In order to fix it, I call the GetString method of the LocalizationManager with AbpZeroConsts.LocalizationSourcename as first parameter instead of the one of my project.

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    hakan created

    Great, I have the same problem I think!

    Do you have any sample code?

    Thanks in advance!

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)