From c085d70a4162dafbf0f1866316676904db18a685 Mon Sep 17 00:00:00 2001
From: Taran2L <Taran2L@473438.no-reply.drupal.org>
Date: Mon, 16 Jan 2012 13:35:47 +0200
Subject: [PATCH] Password stregth messsage is translatable now.

---
 password_policy.module |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/password_policy.module b/password_policy.module
index 978aace..d721035 100644
--- a/password_policy.module
+++ b/password_policy.module
@@ -1057,9 +1057,9 @@ function password_policy_add_policy_js($policy, $uid) {
   }
   $s .= "  msg = msg.length > 0 ? translate.needsMoreVariation +\"<ul><li>\"+ msg.join(\"</li><li>\") +\"</li></ul>\" : \"\";\n";
   $s .= " if(strength == 'high') { level = 100; } else { level = 10; } ";
-  $s .= " if(strength == 'high') { strength = 'High'; } ";
-  $s .= " if(strength == 'medium') { strength = 'Medium'; } ";
-  $s .= " if(strength == 'low') { strength = 'Low'; } ";  
+  $s .= " if(strength == 'high') { strength = translate.highStrength; } ";
+  $s .= " if(strength == 'medium') { strength = translate.mediumStrength; } ";
+  $s .= " if(strength == 'low') { strength = translate.lowStrength; } ";  
   $s .= "  return { strength: level, indicatorText: strength, message: msg };\n";
   $s .= "};\n";
   drupal_add_js($s, array('scope'=>'header','type' => 'inline', 'weight' => 10));
@@ -1067,8 +1067,8 @@ function password_policy_add_policy_js($policy, $uid) {
   drupal_add_js(array(
     'password_policy' => array_merge(array(
       'strengthTitle' => t('Password quality:'),
-      'lowStrength' => t('Bad'),
-      'mediumStrength' => t('Medium'),
+      'lowStrength' => t('Weak'),
+      'mediumStrength' => t('Fair'),
       'highStrength' => t('Good'),
       'needsMoreVariation' => t('The password does not include enough variation to be secure.'),
       'confirmSuccess' => t('Yes'),
