# HG changeset patch # User HIROSE Yuuji # Date 1333280956 -32400 # Node ID 8803e5d526116a0efcc044461b2f5a0a9906a0f8 # Parent 163e3e2cf5d53a5717064dcdaa1d4f2b96df1603 Show guidance when wrong password entered. diff -r 163e3e2cf5d5 -r 8803e5d52611 after5.rb --- a/after5.rb Sun Apr 01 17:17:10 2012 +0900 +++ b/after5.rb Sun Apr 01 20:49:16 2012 +0900 @@ -2,10 +2,10 @@ # -*- coding: euc-jp -*- # # Associative Scheduling Table - after5 -# (C)2003, 2004, 2006, 2008, 2012 by HIROSE Yuuji [yuuji@gentei.org] +# (C)2003, 2004, 2006, 2008, 2012 by HIROSE Yuuji [yuujigentei.org] # $Id: after5.rb,v 1.18 2012/04/01 05:18:57 yuuji Exp yuuji $ # $HGid$ -# Last modified Sun Apr 1 16:41:56 2012 on firestorm +# Last modified Sun Apr 1 20:47:49 2012 on firestorm # See http://www.gentei.org/~yuuji/software/after5/ # このスクリプトはEUCで保存してください。 @@ -1121,6 +1121,8 @@ 'error' => ['エラー:', 'Error: '], 'mailerror' => ['メイルアドレスが違います', 'Invalid email address'], 'pswderror' => ['パスワードが違います', 'Password incorrect'], + 'forgotguide' => ['忘れた場合は %s と入力するよろし', + "Put \`%s' when you forgot password."], 'fmtdaysschedule'=> ['%s〜の予定', 'Schedule from %s'], 'schedtable' => ['予定表', 'Schedule Table'], 'noplan' => ['登録されている予定はありません', 'No plans'], @@ -1406,6 +1408,7 @@ throw :auth, nil else outputError(msg('pswderror')) + @O.print @H.p(sprintf(msg('forgotguide'), @opt['forgot'])) throw :auth, nil end elsif passwd == ''