Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

BackEnd Exceptions in Spanish #5841


User avatar
0
mgarcia created

Hi! Currently im working on a website fully spanish, but when a BE exception is thrown I got it in english. Is it possible to get them in spanish?


11 Answer(s)
  • User Avatar
    0
    ryancyq created
    Support Team

    Hi, please share the code and exception stack trace.

    You can always localize the error message when constructing the exception in your code

  • User Avatar
    0
    mgarcia created

    Im talking about this general messages:

  • User Avatar
    0
    mgarcia created

    Another example:

    Is it possible to turn this to spanish automatically?

    thx so much for your help!

  • User Avatar
    0
    ryancyq created
    Support Team

    The error messages can be found at

    https://github.com/aspnetboilerplate/aspnetboilerplate/blob/e0ded5d8702f389aa1f5947d3446f16aec845287/src/Abp.ZeroCore/Zero/Localization/SourceExt/AbpZero.xml

    https://github.com/aspnetboilerplate/aspnetboilerplate/blob/dev/src/Abp.Web.Common/Web/Localization/AbpWebXmlSource/AbpWeb.xml

    you can extend these localizations by following the instructions here

  • User Avatar
    0
    ryancyq created
    Support Team

    also these error messages are translated by default as in

    https://github.com/aspnetboilerplate/aspnetboilerplate/blob/e0ded5d8702f389aa1f5947d3446f16aec845287/src/Abp.ZeroCore/Zero/Localization/SourceExt/AbpZero-es.xml

    https://github.com/aspnetboilerplate/aspnetboilerplate/blob/dev/src/Abp.Web.Common/Web/Localization/AbpWebXmlSource/AbpWeb-es.xml

    are you using different culture?

  • User Avatar
    0
    mgarcia created

    So, until now I have added this settings [spanish error messages] and EntityNotFound Exceptions to my language file "Masterpago-es.xml"

    But Im lost on how to set "Masterpago-es.xml" and my culture to "es" by default. Can you guide me?

  • User Avatar
    0
    mgarcia created

    I just did it! thx so much

  • User Avatar
    0
    mgarcia created

    Hi! Im having 2 issues with my reset password email.

    First Issue I setted up this language setting

    because my solutions should run in spanish language, but now when Im trying to get a reset password email on the method

    as you can see, those tags should be replace for this ones:

    but I keep receiving mail like this:

    Second Issue as you can see in the next image, I have set the logo url (file png) in the default logo variable

    but mail doesnt render the logo:

    Can you guide me?

    My DefaultSettingsCreator is set to spanish too... look:

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @mgarcia

    Have you tried to restart you app and try again ?

  • User Avatar
    0
    mgarcia created

    Have you tried to restart you app and try again ?

    Do you mean "to stop my webserver and start it all over again"?

    or running like the first time installing all in a new database?

    Is there other way we can keep talking about this but faster?

  • User Avatar
    0
    ismcagdas created
    Support Team

    @mgarcia

    Yes, "to stop my webserver and start it all over again".

    Is there other way we can keep talking about this but faster?

    No, this is the only technical support place for AspNet Zero. We will try to asnwer questions faster.