aboutsummaryrefslogtreecommitdiffstats
path: root/lib/irb/lc/ja/error.rb
diff options
context:
space:
mode:
authoryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-18 13:09:26 +0000
committeryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-18 13:09:26 +0000
commit5c1bd53c92f888f45f6a843f2ef70f2fcdac077f (patch)
tree5e59d6e126eff13c9e661aa12f0b33f5db20b6c8 /lib/irb/lc/ja/error.rb
parent52d481d8de7ee3e0dfaef7322d540f95223bf41b (diff)
downloadruby-5c1bd53c92f888f45f6a843f2ef70f2fcdac077f.tar.gz
* lib/irb/init.rb (IRB.opt_parse): (M17N) adds -U and -E as command
line options. [ruby-dev:37161]. Fixes #711. improved long optinos. * lib/irb/init.rb (IRB.set_encoding): new subroutine for IRB.opt_parse * lib/irb/input-method.rb (IRB::StdioInputMethod): (M17N) regards scripts that user types as encoded in the external_encoding. * lib/irb/input-method.rb (IRB::ReadlineInputMethod): ditto. * lib/irb/input-method.rb (IRB::FileInputMethod): (M17N) respects magic comment. * lib/irb/help.rb (IRB.print_usage): (M17N) respects magic comment in the resource file. * lib/irb/lc/help-message: adds -U and -E. * lib/irb/lc/ja/help-message: ditto. re-encoded from ISO-2022-JP into UTF-8. * lib/irb/lc/ja/encoding_aliases.rb: new file. provides Japanese specific character encoding name table for backward compatibility. * lib/irb/lc/ja/error.rb: re-eoncoded from ISO-2022-JP into UTF-8. magic comment. * lib/irb/locale.rb: integrated with Ruby 1.9's M17N support. * lib/irb/magic-file.rb: new file. utility to handle files with magic comment and opens in the correct encoding. * lib/irb/ruby-lex.rb (RubyLex#each_top_level_statement): recovers character encoding for a statement after it lexed so that irb can eval the statement in correct encoding. * lib/irb/src_encoding.rb: new file. utility. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20862 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/irb/lc/ja/error.rb')
-rw-r--r--lib/irb/lc/ja/error.rb23
1 files changed, 12 insertions, 11 deletions
diff --git a/lib/irb/lc/ja/error.rb b/lib/irb/lc/ja/error.rb
index 13cf180142..dc0345e6df 100644
--- a/lib/irb/lc/ja/error.rb
+++ b/lib/irb/lc/ja/error.rb
@@ -1,4 +1,4 @@
-#
+# -*- coding: utf-8 -*-
# irb/lc/ja/error.rb -
# $Release Version: 0.9.5$
# $Revision$
@@ -13,14 +13,15 @@ require "e2mmap"
module IRB
# exceptions
extend Exception2MessageMapper
- def_exception :UnrecognizedSwitch, '$B%9%$%C%A(B(%s)$B$,J,$j$^$;$s(B'
- def_exception :NotImplementedError, '`%s\'$B$NDj5A$,I,MW$G$9(B'
- def_exception :CantReturnToNormalMode, 'Normal$B%b!<%I$KLa$l$^$;$s(B.'
- def_exception :IllegalParameter, '$B%Q%i%a!<%?(B(%s)$B$,4V0c$C$F$$$^$9(B.'
- def_exception :IrbAlreadyDead, 'Irb$B$O4{$K;`$s$G$$$^$9(B.'
- def_exception :IrbSwitchedToCurrentThread, '$B%+%l%s%H%9%l%C%I$K@Z$jBX$o$j$^$7$?(B.'
- def_exception :NoSuchJob, '$B$=$N$h$&$J%8%g%V(B(%s)$B$O$"$j$^$;$s(B.'
- def_exception :CantShiftToMultiIrbMode, 'multi-irb mode$B$K0\$l$^$;$s(B.'
- def_exception :CantChangeBinding, '$B%P%$%s%G%#%s%0(B(%s)$B$KJQ99$G$-$^$;$s(B.'
- def_exception :UndefinedPromptMode, '$B%W%m%s%W%H%b!<%I(B(%s)$B$ODj5A$5$l$F$$$^$;$s(B.'
+ def_exception :UnrecognizedSwitch, 'スイッチ(%s)が分りません'
+ def_exception :NotImplementedError, '`%s\'の定義が必要です'
+ def_exception :CantReturnToNormalMode, 'Normalモードに戻れません.'
+ def_exception :IllegalParameter, 'パラメータ(%s)が間違っています.'
+ def_exception :IrbAlreadyDead, 'Irbは既に死んでいます.'
+ def_exception :IrbSwitchedToCurrentThread, 'カレントスレッドに切り替わりました.'
+ def_exception :NoSuchJob, 'そのようなジョブ(%s)はありません.'
+ def_exception :CantShiftToMultiIrbMode, 'multi-irb modeに移れません.'
+ def_exception :CantChangeBinding, 'バインディング(%s)に変更できません.'
+ def_exception :UndefinedPromptMode, 'プロンプトモード(%s)は定義されていません.'
end
+# vim:fileencoding=utf-8