Every repository with this icon (
Every repository with this icon (
Run the following if you haven't already:
gem sources -a http://gems.github.com
Install the gem(s):
sudo gem install arton-nlize
Home
Welcome to the nlize wiki!
NLize is Ruby extended library that changes the most error message into native language with Ruby-GetText.
goal
NLize makes novice users become familiar to read Ruby’s error messages for understanding what causes the exception.
how to enable NLize
NLize starts conversion automaticaly. So you only put the line – require ‘nlize’ on top of the script, or simply add command line argument ‘-rnlize’ .
restriction
Currently NLize can only support i386. It replaces original vsnprintf function with its code to convert the format string. So it deeply depends on the native machine language.
example
c:\home\test>irb -rubygems
irb(main):001:0> require 'nlize'
=> true
irb(main):002:0> x
NameError: 'x'はmain:Objectの未定義のローカル変数かメソッドです
from (irb):2
from c:/PROGRA~2/ruby-1.8/lib/ruby/gems/1.8/specifications/gettext-1.92.
0.gemspec:11
irb(main):003:0> Integer(3,2,1)
ArgumentError: 引数の数が不正です(3は1であるべきです)
from (irb):3:in `Integer'
from (irb):3
from c:/PROGRA~2/ruby-1.8/lib/ruby/gems/1.8/specifications/gettext-1.92.
0.gemspec:11
How to setup
If you would like to help me, please pull the repositry, then run Rake with ‘init_po’ task with LANG setting.
ie) rake init_po LANG=ja
Then, you can get po/your-lang/rubymsg.po file for translationg.
After you finish the translation, then again with rake, ‘rake make_mo LANG=’, it creates mo file into data/locale//LC_MESSAGES/rubymsg.mo .
Then you can install it with setup.rb or make Gem with ‘rake’ without task spcification.
Help
If you can push your translation, I pull it in the master repositry.





