Chad has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/101232


Change subject: Localize change password form
......................................................................

Localize change password form

Change-Id: I47351b3f431c318bc8e57c4a4e84d66352e29aa9
---
M data/i18n/en.php
M data/templates/user/changePassword.html
2 files changed, 10 insertions(+), 5 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/wikimedia/wikimania-scholarships 
refs/changes/32/101232/1

diff --git a/data/i18n/en.php b/data/i18n/en.php
index 54f9294..044488b 100644
--- a/data/i18n/en.php
+++ b/data/i18n/en.php
@@ -183,4 +183,9 @@
        'by-region' => "By region",
        'change-password' => "Change password",
        'logout' => "Logout",
+
+       'old-password' => "Old password:",
+       'new-password' => "New password:",
+       'new-password-again' => "New password (again):",
+       'save-password' => "Save password",
 );
diff --git a/data/templates/user/changePassword.html 
b/data/templates/user/changePassword.html
index b9c477d..eb71880 100644
--- a/data/templates/user/changePassword.html
+++ b/data/templates/user/changePassword.html
@@ -5,21 +5,21 @@
 <form action="{{ urlFor( 'user_changepassword_post' ) }}" method="post">
   <input type="hidden" name="id" value="{{ user.id }}" />
   <fieldset>
-    <legend>Change Password</legend>
+    <legend>{{ wgLang.message( 'change-password' ) }}</legend>
     <p>Username: <strong>{{ user.username }}</strong></p>
     <ul>
-      <li><label for="oldpw">Old Password:</label>
+      <li><label for="oldpw">{{ wgLang.message( 'old-password' ) }}</label>
         <input type="password" name="oldpw" id="oldpw" value="" 
required="required"/>
       </li>
-      <li><label for="newpw1">New Password:</label>
+      <li><label for="newpw1">{{ wgLang.message( 'new-password' ) }}</label>
         <input type="password" name="newpw1" id="newpw1" value="" 
required="required"/>
       </li>
-      <li><label for="newpw2">New Password (again):</label>
+      <li><label for="newpw2">{{ wgLang.message( 'new-password-again' ) 
}}</label>
         <input type="password" name="newpw2" id="newpw2" value="" 
required="required"/>
       </li>
     </ul>
   </fieldset>
-  <p><input type="submit" value="save" />
+  <p><input type="submit" value="{{ wgLang.message( 'save-password' ) }}" />
 </form>
 {% endspaceless %}
 {% endblock content %}

-- 
To view, visit https://gerrit.wikimedia.org/r/101232
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I47351b3f431c318bc8e57c4a4e84d66352e29aa9
Gerrit-PatchSet: 1
Gerrit-Project: wikimedia/wikimania-scholarships
Gerrit-Branch: master
Gerrit-Owner: Chad <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to