def him_or_her
if gender == "male"
h = I18n.t(:him)
else
h = I18n.t(:her)
end
h
end
Mickael Faivre-Maçon
On Thu, Jan 1, 2009 at 1:38 PM, Redd Vinylene <[email protected]> wrote:
>
> I got this in my person.rb:
>
> def him_or_her
> h = "him" if gender == "male"
> h = "her" if gender == "female"
> h
> end
>
> Is it possible to translate "him" and "her"?
>
> --
> http://www.home.no/reddvinylene
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---