hi
I am using custom error messages. but I only get the translation of
the base_locale (en)
validates_presence_of :email, :message =>
I18n.t(:"validations.no_valid_email")
The way to get other translations looks like bullshit:
I tried to solve it that way:
validates_presence_of :email, :message =>
I18n.t(:"validations.no_valid_email", :locale => "en-US") , :if =>
Proc.new { |c| I18n.locale.to_s == "en" }
validates_presence_of :email, :message =>
I18n.t(:"validations.no_valid_email", :locale => "de-DE") , :if =>
Proc.new { |c| I18n.locale.to_s == "de" }
is there a nicer way to get the translations in correct language?
thanks for help
florian
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"rails-i18n" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rails-i18n?hl=en
-~----------~----~----~----~------~----~------~--~---