Removed hardcoded string (#3872).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@12083 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
fa51c8601d
commit
fbffe332e2
|
@ -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
|
||||
|
|
|
@ -1098,3 +1098,5 @@ hr:
|
|||
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
|
||||
|
|
|
@ -1116,3 +1116,5 @@
|
|||
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 @@ id:
|
|||
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
|
||||
|
|
|
@ -1096,3 +1096,5 @@ it:
|
|||
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
|
||||
|
|
|
@ -1125,3 +1125,5 @@ ja:
|
|||
label_visibility_roles: 以下のロールのみ
|
||||
label_visibility_public: すべてのユーザー
|
||||
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
|
||||
|
|
|
@ -1146,3 +1146,5 @@ ko:
|
|||
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
|
||||
|
|
|
@ -1156,3 +1156,5 @@ lt:
|
|||
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
|
||||
|
|
|
@ -1091,3 +1091,5 @@ lv:
|
|||
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 @@ mk:
|
|||
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 @@ mn:
|
|||
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
|
||||
|
|
|
@ -1079,3 +1079,5 @@ nl:
|
|||
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
|
||||
|
|
|
@ -1087,3 +1087,5 @@
|
|||
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
|
||||
|
|
|
@ -1119,3 +1119,5 @@ pl:
|
|||
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
|
||||
|
|
|
@ -1117,3 +1117,5 @@ pt-BR:
|
|||
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
|
||||
|
|
|
@ -1104,3 +1104,5 @@ pt:
|
|||
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
|
||||
|
|
|
@ -1092,3 +1092,5 @@ ro:
|
|||
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
|
||||
|
|
|
@ -1207,3 +1207,5 @@ ru:
|
|||
label_visibility_roles: только этим ролям
|
||||
label_visibility_public: всем пользователям
|
||||
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
|
||||
|
|
|
@ -1094,3 +1094,5 @@ sk:
|
|||
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 @@ sl:
|
|||
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
|
||||
|
|
|
@ -1093,3 +1093,5 @@ sq:
|
|||
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 @@ sr-YU:
|
|||
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 @@ sr:
|
|||
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
|
||||
|
|
|
@ -1135,3 +1135,5 @@ sv:
|
|||
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
|
||||
|
|
|
@ -1094,3 +1094,5 @@ th:
|
|||
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
|
||||
|
|
|
@ -1116,3 +1116,5 @@ tr:
|
|||
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
|
||||
|
|
|
@ -1092,3 +1092,5 @@ uk:
|
|||
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
|
||||
|
|
|
@ -1150,3 +1150,5 @@ vi:
|
|||
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
|
||||
|
|
|
@ -1178,3 +1178,5 @@
|
|||
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
|
||||
|
|
|
@ -1101,3 +1101,5 @@ zh:
|
|||
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
|
||||
|
|
Loading…
Reference in New Issue