Closed (fixed)
Project:
Password Policy
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
16 Jan 2012 at 11:34 UTC
Updated:
16 Mar 2012 at 02:40 UTC
Jump to comment: Most recent file
Comments
Comment #1
taran2lPatch attached. Please review.
Comment #2
erikwebb commentedShouldn't we just be converting this to use Drupal.t() ? I'm not a JS guy, but I don't see this translate method recommended anywhere.
Comment #3
taran2lDrupal core user.js file uses the same technique for translation: provide an already translated strings via settings. Don't know why Drupal.t() is not being used in this scenario.
Also, you may notice, that other strings are being transferred to JS in settings too. My patch just follows this pattern.
Comment #4
erikwebb commentedAs long as the patch works, I'm okay with it for now. This module is in serious need of cleanup and that'll probably just wait until 7.x-2.x.
Comment #5
taran2lSorry, I've made a typo in previous patch (Weak and Good messages are mixed up).
Attached fixed version.
Comment #6
erikwebb commentedThis works good to me. Fixed and committed.
http://drupalcode.org/project/password_policy.git/commit/802aa0c