Rails 2.2 の国際化
Controller
flash[:notice] = I18n.t( :updated_success, :default => '{{model}} was successfully updated.', :model => Blog.human_name, :scope => [:railties, :scaffold] ) I18n.t 'date.formats.short' I18n.t 'short', :scope => 'date.formats'
View
<%= t( :editing, :default => "Editing {{model}}", :model => Blog.human_name, :scope => [:railties, :scaffold] ) %> <%=l article.created_at, :format => :short %>
参考
Rails 2.2の国際化(i18n)を試す(2) restful_authentication #1 - N7 - sandbox
国際化(i18n)の第一歩 - 『基礎 Ruby on Rails』の asagao を Rails 2.2 に対応させる - Ruby on Rails with OIAX
http://www.artweb-design.de/2008/7/18/the-ruby-on-rails-i18n-core-api
Module: I18n
gem install
gem install amatsuda-i18n_generators --remote
$ script/generate i18n ja $ script/generate i18n_locale ja $ script/generate i18n_translation ja # rake db:migrateしたあと $ script/generate i18n_scaffold blog name:string