mitsaki Posted May 13, 2016 Share Posted May 13, 2016 Currently, I am trying to change the error messages in the registration form. The message now says, for example: passwd is required. and I would like to say: Password is required. I looked into translations and authcontroller.php, but it doesn't seem to work. Do you have any solution for that? Link to comment Share on other sites More sharing options...
erouvier29 Posted May 14, 2016 Share Posted May 14, 2016 These messages are automatically formatted from field names. BO > Localization > Translations > Field name translations Link to comment Share on other sites More sharing options...
vekia Posted May 14, 2016 Share Posted May 14, 2016 translations there are related to visible "labels" of fields they arent related to real variable names, unfortunately. Link to comment Share on other sites More sharing options...
erouvier29 Posted May 15, 2016 Share Posted May 15, 2016 translations there are related to visible "labels" of fields they arent related to real variable names, unfortunately. ? Field translations are used for both labels and error messages about fields, aren't they? At least on PS 1.6.1, I did a test and I confirm Link to comment Share on other sites More sharing options...
vekia Posted May 15, 2016 Share Posted May 15, 2016 so, on register account form you see label named "passwd" or "password" ? :-) Link to comment Share on other sites More sharing options...
erouvier29 Posted May 15, 2016 Share Posted May 15, 2016 After having translated field name in FR, I get "Mot de passe" and no more "passwd" About error message formatting, cf. ObjectModel.php, line 1133 (PS 1.6.1.5) 1 Link to comment Share on other sites More sharing options...
mitsaki Posted May 17, 2016 Author Share Posted May 17, 2016 Thank you guys, I figured it out also myself, but erouvier29 was right: Localization > Translations > Field name translations Link to comment Share on other sites More sharing options...
vekia Posted May 18, 2016 Share Posted May 18, 2016 you were right erouvier29 my bad, thank you for enlightment Link to comment Share on other sites More sharing options...
erouvier29 Posted May 18, 2016 Share Posted May 18, 2016 @vekia You're welcome. Thanks to you by the way for being so active here. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now