$script/plugin install git://github.com/svenfuchs/rails-i18n.git
$cp config/locales/en.yml config/locales/es-ar.yml
config/environment.rb
config.time_zone = 'Buenos Aires'
config.i18n.default_locale = :"es-ar"
app/views/payment_operation/show.html.erb
<%= t('views.payment.show_title', :count => @foo.size, :bar => @foo.name) %>
config/locales/es-ar.yml
es-ar:
views:
payment:
show_title:
zero: "Mostrando operación de pago y {{bar}}."
one: "Mostrando operación de pago y {{bar}}."
many: "Mostrando operación de pago y {{bar}}."
No comments:
Post a Comment