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

Popular posts from this blog

ios - RestKit 0.20 — CoreData: error: Failed to call designated initializer on NSManagedObject class (again) -

laravel - PDOException in Connector.php line 55: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) -

java - Digest auth with Spring Security using javaconfig -