Preferences/ConfigurationPages/MasterPasswordEntryDialog.py

branch
Py2 comp.
changeset 3484
645c12de6b0c
parent 3178
f25fc1364c88
parent 3190
a9a94491c4fd
child 3656
441956d8fce5
diff -r 96232974dcdb -r 645c12de6b0c Preferences/ConfigurationPages/MasterPasswordEntryDialog.py
--- a/Preferences/ConfigurationPages/MasterPasswordEntryDialog.py	Sun Mar 30 22:00:14 2014 +0200
+++ b/Preferences/ConfigurationPages/MasterPasswordEntryDialog.py	Thu Apr 03 23:05:31 2014 +0200
@@ -34,7 +34,7 @@
             self.currentPasswordEdit.setEnabled(False)
             if hasattr(self.currentPasswordEdit, "setPlaceholderText"):
                 self.currentPasswordEdit.setPlaceholderText(
-                    self.trUtf8("(not defined yet)"))
+                    self.tr("(not defined yet)"))
         
         self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(False)
     
@@ -49,22 +49,22 @@
             enable = verifyPassword(
                 self.currentPasswordEdit.text(), self.__oldPasswordHash)
             if not enable:
-                error = error or self.trUtf8("Wrong password entered.")
+                error = error or self.tr("Wrong password entered.")
         
         if self.newPasswordEdit.text() == "":
             enable = False
-            error = error or self.trUtf8("New password must not be empty.")
+            error = error or self.tr("New password must not be empty.")
         
         if self.newPasswordEdit.text() != "" and \
            self.newPasswordEdit.text() != self.newPasswordAgainEdit.text():
             enable = False
-            error = error or self.trUtf8("Repeated password is wrong.")
+            error = error or self.tr("Repeated password is wrong.")
         
         if self.currentPasswordEdit.isEnabled():
             if self.newPasswordEdit.text() == self.currentPasswordEdit.text():
                 enable = False
                 error = error or \
-                    self.trUtf8("Old and new password must not be the same.")
+                    self.tr("Old and new password must not be the same.")
         
         self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(enable)
         self.errorLabel.setText(error)

eric ide

mercurial