It should be possible to do that by adding dictionary items for the different parts where it reads @library:GetDictionaryItem("ForgotPassword") for instance. In the settings section you can create a "ForgotPassword" dictionary item in the "Dictionary" folder.
I've managed to localize the default text, as above, but what I've not been able to localize, is the error-text, when a wrong username and/or password is intered.
It is the default "Invalid username or password".
The same with the validation-messages. Can't figure out how to localize them.
It seems that the error messages are hardcoded in the controller, and I don't think it's possible to translate/change it unless you're making your own build of the umbraco source code.
But perhaps you can use a javascript approach and then have the translatble text stored in a data-* attribute.
Localize Html.BeginUmbracoForm<UmbLoginController>("HandleLogin"))
Is it possible, and how, to localize the default Umbraco loginform ?
This is based on the default Umbraco Loginform-snippet, but have changed the layout
Hi Synergi
It should be possible to do that by adding dictionary items for the different parts where it reads @library:GetDictionaryItem("ForgotPassword") for instance. In the settings section you can create a "ForgotPassword" dictionary item in the "Dictionary" folder.
Is this what you have in mind?
/Jan
Oh I can see that my quiestion is unclear.
I've managed to localize the default text, as above, but what I've not been able to localize, is the error-text, when a wrong username and/or password is intered.
It is the default "Invalid username or password".
The same with the validation-messages. Can't figure out how to localize them.
Hi Kristoffer
Why are you posting from 2 accounts? :)
It seems that the error messages are hardcoded in the controller, and I don't think it's possible to translate/change it unless you're making your own build of the umbraco source code.
But perhaps you can use a javascript approach and then have the translatble text stored in a data-* attribute.
Hope this makes sense.
/Jan
Oh...One account is our Company account, so we can track our quiestions on Our.
And then when I answer them, I forget to logout out of my own, and use our Company instead :-)
I will have a look at the data-attribute approach.
Thank you.
is working on a reply...