rails-i18n translations not loading the exact data -


i using ruby 1.8.7 , i18n gem version 0.4.2 , in view page have used

<h4><b><%= " #{t('date')} </b>:"%></h4> 

and @ en.yml

en: # locale   net: "net"   amount_paid: "paid amount"   date: "date" 

when executed got

snapshot

why not getting exact translation

if have here, rails-i18n has date key defined overriding definition. try change date key or nested under key:

en: # locale   general:    net: "net"    amount_paid: "paid amount"    date: "date" 

also note "#{}" in view not necessary:

<h4><b><%= t('general.date') </b>:"%></h4> 

Comments

Popular posts from this blog

android - Pass an Serializable object in AIDL -

How to provide Authorization & Authentication using Asp.net, C#? -

How to use Authorization & Authentication in Asp.net, C#? -