Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ruby on rails internationalization for Spanish

I'm creating a fast application with ruby on rails, and after doing a lot of scaffolding and validation I'm very happy with some of the features that are embeded in RoR... but I live in Mexico and all my users would love the application to be in Spanish of course. So, I noticed theres a lot of functions that write actual text in English for example time_ago_in_words and all the errors produced by the scaffolding and validation.

Before actually doing those things on my own (like I would in php for example) I wanted to know if theres some kind of language file I could edit (or even download one in Spanish). After all, the books I'm reading and the tutorials (and webcast) I'm following to learn this new framework are all in English (and fail to include this problem).

like image 658
DFectuoso Avatar asked Jan 28 '09 03:01

DFectuoso


2 Answers

Here you can find a nice sample app which demonstrates some basics of i18n (internationalization features) in Rails.

like image 92
Milan Novota Avatar answered Nov 03 '22 01:11

Milan Novota


This guide contains the most recent work on internationalization. A pretty decent reference: http://guides.rails.info/i18n.html

like image 23
assplecake Avatar answered Nov 03 '22 01:11

assplecake