[Bug 686737] Re: Untranslatable string: Passwords do not match

Curtis Hovey curtis.hovey at canonical.com
Fri Nov 11 21:20:31 UTC 2011


** No longer affects: null

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to ubiquity in Ubuntu.
https://bugs.launchpad.net/bugs/686737

Title:
  Untranslatable string: Passwords do not match

Status in OEM Priority Project:
  Fix Released
Status in Ubiquity:
  Invalid
Status in “ubiquity” package in Ubuntu:
  Fix Released

Bug description:
  The string "Passwords do not match" in the user setup page (oem-
  config) is not translated, and evidently not translatable.

  Seen in Ubuntu 10.10, ubiquity 2.4.8

  To reproduce: 
  1) Boot to oem-config
  2) Choose a non-English language such as Chinese
  3) Continue to the user setup page; enter different passwords in the password and 'confirm your password' text fields.

  Actual results:
  The string "Passwords do not match" is displayed in English

  Expected results:
  The string "Passwords do not match" is displayed in the language chosen by the user

  A cursory inspection of the code in ubi-usersetup.py (ubiquity 2.4.8)
  turns up the string in question, looks like it needs to templatized:

              if passw and (len(vpassw) / float(len(passw)) > 0.8):
                  # TODO Cache, use a custom string.
                  #txt = self.controller.get_string('user-setup/password-mismatch')
                  txt = '<small><span foreground="darkred"><b>Passwords do not match</b></span></small>'
                  self.password_error_label.set_markup(txt)
                  self.password_error_label.show()

To manage notifications about this bug go to:
https://bugs.launchpad.net/oem-priority/+bug/686737/+subscriptions




More information about the foundations-bugs mailing list