- if ( $cgi->param('new_password') ne $cgi->param('new_password2') ) {
- $error = "New passwords don't match";
+ my $oldpass = $cgi->param('_password');
+ my $newpass = $cgi->param('new_password');
+
+ if ( $newpass ne $cgi->param('new_password2') ) {
+ $error = mt("New passwords don't match");