views:

9

answers:

0

Hi , I am using translations for the validation messages . We have lightbox where we have a form like fill this . We coded like if that box is not filled it will show a message like the field should not be blank.

For this i have added translations I18n.t('str_field_notblank') like validates_presence_of :field1, :message => I18n.t('str_field_notblank')

The above works fine in English. BUt when i choose other language this thing is not coming in other language instead showing it in English only..

why so ?? Please give suggestions..