Developer forum

Forum » CMS - Standard features » Translate extranet errors

Translate extranet errors

Rune Skovbo
Reply

Hi

I can't seem to find the place to translate extranet error like "Incorrect username or password."
Where is that handled?

/Rune


Replies

 
Nicolai Høeg Pedersen
Reply

Hi Rune

With the login you can overrule the error message using these hidden fields:

<input type="hidden" name="ForgotPasswordConfirm" value="Your password has been sent">
<input type="hidden" name="ForgotPasswordEmailNotFound" value="Email not found on user - cannot send password">
<input type="hidden" name="ForgotPasswordConfirmUserNotActive" value="User is currently not active - password not send">

BR Nicolai

 
Rune Skovbo
Reply

Hi Nicolai

Ok, thanks!

How about "incorrect username or password" and "password expired"? Is there a complete list somewhere, or can you post it her? :-)

/Rune

 
Rune Skovbo
Reply

Hi again

Any news to this?

Our client really misses the ability to translate these error messages.

 
Nicolai Høeg Pedersen
Reply

Hi Rune

No news regarding this. You can do something like this in the template:

<!--@If Defined(DW_extranet_error_uk)-->
   <!--@Translate("ForgotUserNameOrPassword", "Glemt brugernavn eller kodeord")-->
<!--@EndIf-->

 
Rune Skovbo
Reply

Hi Nicolai

Yeah, that was my first thought as well, but the issue with that is, that I can't differentiate between "incorrect username or password" and "password expired".

 
Nicolai Høeg Pedersen
Reply
This post has been marked as an answer

Hi Rune

You can use <contains> in the conditional to see the difference:

http://templates.dynamicweb.com/TemplateTags/Dynamicweb-template-tags/General-tags/If-statements.aspx

I've noted a feature for being able to override these messages from the template.

BR Nicolai

Votes for this answer: 1
 
Rune Skovbo
Reply

Hi again.

Yeah, that would work, thanks.

Great that you've noted it as a feature though - would be nice :-)

Have a nice weekend.

/Rune

 

You must be logged in to post in the forum