Author Topic: Problem with Password plugin and Cpanel in spanish  (Read 5203 times)

Offline elbek

  • Newbie
  • *
  • Posts: 6
Problem with Password plugin and Cpanel in spanish
« on: March 21, 2010, 10:08:38 PM »
Hi. I hope you can help me. Sorry bad english

Currently have roundcube 0.3.1 working and password plugin enabled and working but there is a little problem. Im using Cpanel with spanish language and when change password it works but says: "Could not save new password" try and password was changed.

Reading post and post found something about language problem and thats the problem. If I put Cpanel in english works perfectly.

Maybe you will say that use english in cpanel but Id like to know if its posible to fix it.

Thank you so much.

Pd. Read about change a line in a file but didnt work.

Offline elbek

  • Newbie
  • *
  • Posts: 6
Problem with Password plugin and Cpanel in spanish
« Reply #1 on: March 25, 2010, 02:42:59 PM »
I dont have idea about why "Password" plugin doesnt work with Cpanel in Spanish but this is what I did.

Go to plugin password directory and edit password.php

At the end of file comment 3 lines:

 switch ($result) {
      case PASSWORD_SUCCESS:
        return;
      case PASSWORD_CRYPT_ERROR;
        return $this->gettext('crypterror');
      case PASSWORD_CONNECT_ERROR;
        return $this->gettext('connecterror');
     //case PASSWORD_ERROR:
      //default:
        //return $this->gettext('internalerror');

    }
  }

}

?>

Thats all and now it works with Cpanel in spanish. At this moment roundcube working nice.