Commit 51575a6d authored by jplang's avatar jplang
Browse files

Removed hardcoded string (#3872).

git-svn-id: https://svn.redmine.org/redmine/trunk@12083 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 928e64d3
......@@ -95,7 +95,7 @@ class MyController < ApplicationController
if !@user.check_password?(params[:password])
flash.now[:error] = l(:notice_account_wrong_password)
elsif params[:password] == params[:new_password]
flash.now[:error] = 'Your new password must be different from your current password'
flash.now[:error] = l(:notice_new_password_must_be_different)
else
@user.password, @user.password_confirmation = params[:new_password], params[:new_password_confirmation]
@user.must_change_passwd = false
......
......@@ -1097,3 +1097,5 @@ ar:
label_visibility_roles: to these roles only
label_visibility_public: to any users
field_must_change_passwd: Must change password at next logon
notice_new_password_must_be_different: The new password must be different from the
current password
......@@ -1194,3 +1194,5 @@ az:
label_visibility_roles: to these roles only
label_visibility_public: to any users
field_must_change_passwd: Must change password at next logon
notice_new_password_must_be_different: The new password must be different from the
current password
......@@ -1095,3 +1095,5 @@ bg:
description_date_to: Въведете крайна дата
text_repository_identifier_info: 'Позволени са малки букви (a-z), цифри, тирета и _.<br />Промяна след създаването му не е възможна.'
field_must_change_passwd: Must change password at next logon
notice_new_password_must_be_different: The new password must be different from the
current password
......@@ -1110,3 +1110,5 @@ bs:
label_visibility_roles: to these roles only
label_visibility_public: to any users
field_must_change_passwd: Must change password at next logon
notice_new_password_must_be_different: The new password must be different from the
current password
......@@ -1099,3 +1099,5 @@ ca:
label_visibility_roles: to these roles only
label_visibility_public: to any users
field_must_change_passwd: Must change password at next logon
notice_new_password_must_be_different: The new password must be different from the
current password
......@@ -1101,3 +1101,5 @@ cs:
label_visibility_roles: to these roles only
label_visibility_public: to any users
field_must_change_passwd: Must change password at next logon
notice_new_password_must_be_different: The new password must be different from the
current password
......@@ -1114,3 +1114,5 @@ da:
label_visibility_roles: to these roles only
label_visibility_public: to any users
field_must_change_passwd: Must change password at next logon
notice_new_password_must_be_different: The new password must be different from the
current password
......@@ -1109,3 +1109,5 @@ de:
label_visibility_roles: to these roles only
label_visibility_public: to any users
field_must_change_passwd: Must change password at next logon
notice_new_password_must_be_different: The new password must be different from the
current password
......@@ -1097,3 +1097,5 @@ el:
label_visibility_roles: to these roles only
label_visibility_public: to any users
field_must_change_passwd: Must change password at next logon
notice_new_password_must_be_different: The new password must be different from the
current password
......@@ -1099,3 +1099,5 @@ en-GB:
label_visibility_roles: to these roles only
label_visibility_public: to any users
field_must_change_passwd: Must change password at next logon
notice_new_password_must_be_different: The new password must be different from the
current password
......@@ -181,6 +181,7 @@ en:
notice_issue_update_conflict: "The issue has been updated by an other user while you were editing it."
notice_account_deleted: "Your account has been permanently deleted."
notice_user_successful_create: "User %{id} created."
notice_new_password_must_be_different: The new password must be different from the current password
error_can_t_load_default_data: "Default configuration could not be loaded: %{value}"
error_scm_not_found: "The entry or revision was not found in the repository."
......
......@@ -1133,3 +1133,5 @@ es:
label_visibility_roles: solamente para estos roles
label_visibility_public: para cualquier usuario
field_must_change_passwd: Must change password at next logon
notice_new_password_must_be_different: The new password must be different from the
current password
......@@ -1110,3 +1110,5 @@ et:
label_visibility_roles: to these roles only
label_visibility_public: to any users
field_must_change_passwd: Must change password at next logon
notice_new_password_must_be_different: The new password must be different from the
current password
......@@ -1098,3 +1098,5 @@ eu:
label_visibility_roles: to these roles only
label_visibility_public: to any users
field_must_change_passwd: Must change password at next logon
notice_new_password_must_be_different: The new password must be different from the
current password
......@@ -1099,3 +1099,5 @@ fa:
label_visibility_roles: to these roles only
label_visibility_public: to any users
field_must_change_passwd: Must change password at next logon
notice_new_password_must_be_different: The new password must be different from the
current password
......@@ -1118,3 +1118,5 @@ fi:
label_visibility_roles: to these roles only
label_visibility_public: to any users
field_must_change_passwd: Must change password at next logon
notice_new_password_must_be_different: The new password must be different from the
current password
......@@ -196,6 +196,7 @@ fr:
notice_issue_update_conflict: "La demande a été mise à jour par un autre utilisateur pendant que vous la modifiez."
notice_account_deleted: "Votre compte a été définitivement supprimé."
notice_user_successful_create: "Utilisateur %{id} créé."
notice_new_password_must_be_different: Votre nouveau mot de passe doit être différent de votre mot de passe actuel
error_can_t_load_default_data: "Une erreur s'est produite lors du chargement du paramétrage : %{value}"
error_scm_not_found: "L'entrée et/ou la révision demandée n'existe pas dans le dépôt."
......
......@@ -1108,3 +1108,5 @@ gl:
label_visibility_roles: to these roles only
label_visibility_public: to any users
field_must_change_passwd: Must change password at next logon
notice_new_password_must_be_different: The new password must be different from the
current password
......@@ -1102,3 +1102,5 @@ he:
label_visibility_roles: to these roles only
label_visibility_public: to any users
field_must_change_passwd: Must change password at next logon
notice_new_password_must_be_different: The new password must be different from the
current password
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment