model - Rails - Database Translation static values -
i have model called house. in model have amenities such wi-fi, tv, air conditioning etc. these in english , checkbox. user clicks them , show them on home#show page disabled class as; <%= @home.amenities.each |amenity| %> ....
the thing users can select language locale variable web site turns in french instance. static texts, flash , error messages able translate , works fine.
but not know how should translate these model based values. website looks frenglish right now.
for internationalisation/translations of database data in rails, i'd highly recommend using globalize gem.
Comments
Post a Comment