Commits

Anonymous committed 3de1a25 Draft

Fix translation problem in account manager

Add reference to bhtheme catalog in account manager templates

Comments (0)

Files changed (2)

bloodhound_theme/bhtheme/templates/bh_admin_users.html

                   <input id="username" type="text"
                          class="textwidget input-medium no-add-on"
                          name="username"
-                         value="${acctmgr.username}" placeholder="${_('e.g. myuser')}" />
+                         value="${acctmgr.username}" placeholder="${dgettext('bhtheme', 'e.g. myuser')}" />
                 </label>
               </div>
               <div class="field">
                     </span>
                     <input py:when="create_enabled or password_change_enabled"
                            type="password" class="textwidget input-medium"
-                           name="password" placeholder="${_('Type your password')}" />
+                           name="password" placeholder="${dgettext('bhtheme', 'Type your password')}" />
                     <input py:otherwise=""
                            type="password" class="textwidget input-medium"
-                           name="password" placeholder="${_('Type your password')}"
+                           name="password" placeholder="${dgettext('bhtheme', 'Type your password')}"
                            disabled="disabled" />
                   </div>
                 </label>
                     </span>
                     <input py:when="create_enabled or password_change_enabled"
                            type="password" class="textwidget input-medium"
-                           name="password_confirm" placeholder="${_('Must match password')}" />
+                           name="password_confirm" placeholder="${dgettext('bhtheme', 'Must match password')}" />
                     <input py:otherwise=""
                            type="password" class="textwidget input-medium"
-                           name="password_confirm" placeholder="${_('Must match password')}"
+                           name="password_confirm" placeholder="${dgettext('bhtheme', 'Must match password')}"
                            disabled="disabled" />
                   </div>
                 </label>
                 <label>Pre-/Surname (Nickname):<br />
                   <input type="text" class="textwidget input-medium no-add-on"
                          name="name" value="${acctmgr.name}"
-                         placeholder="${_('e.g. John Smith')}" />
+                         placeholder="${dgettext('bhtheme', 'e.g. John Smith')}" />
                 </label>
               </div>
               <div class="field">
                     </span>
                     <input type="text" class="textwidget input-medium"
                            name="email" value="${acctmgr.email}"
-                           placeholder="${_('user@domain.com')}" />
+                           placeholder="${dgettext('bhtheme', 'user@domain.com')}" />
                   </div>
                 </label>
               </div>

bloodhound_theme/bhtheme/templates/bh_prefs_account.html

                 <span class="add-on"><i class="icon-lock"></i></span>
                 <input type="password" id="password_rm"
                        class="textwidget input-large" name="password"
-                       placeholder="${_('Type your password')}" />
+                       placeholder="${dgettext('bhtheme', 'Type your password')}" />
               </div>
             </div>
           </div>
           </span>
           <input type="password" id="old_password_chg"
                  class="textwidget input-large" name="old_password"
-                 placeholder="${_('Type current password')}" />
+                 placeholder="${dgettext('bhtheme', 'Type current password')}" />
         </div>
       </div>
     </div>
           </span>
           <input type="password"  id="password_chg"
                  class="textwidget input-large"
-                 name="password" placeholder="${_('Type new password')}" />
+                 name="password" placeholder="${dgettext('bhtheme', 'Type new password')}" />
         </div>
       </div>
     </div>
           </span>
           <input type="password" id="password_confirm_chg"
                  class="textwidget input-large" name="password_confirm"
-                 placeholder="${_('Must match new password')}" />
+                 placeholder="${dgettext('bhtheme', 'Must match new password')}" />
         </div>
       </div>
     </div>