New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Model data translation: Use Globalize? #21
Comments
I haven't used globalize but looks good. I guess that it makes sense if the goal is to make the site translatable by the users (which could be premature maybe?) - otherwise I'd just go with Rails I18n API which is really good and uses simple .yml files. Moving to globalize after shouldn't be too hard if that's what we'd decide |
Agreed that its premature... I was thinking on how we should translate description of projects for example. For the rest as you can see I've started using the ymls. So on hold for now. |
I hadn't thought of the project translations. A way to do this for the time being would be to serialize the project descriptions on the database. Essentially, you are storing a hash that contains all the descriptions, such as: { :es => "Wikipedia es un proyecto que...", :en => "Wikipedia is a project..." } In any case, if we are going to allow people to create their own projects, we can't really ask them to translate all the descriptions. We either curate this ourselves or assume for the time being that those descriptions will always be in the original language. Whatchuthink? |
Yeah, I would not worry much for the time being (my concern was more on the side of me learning than anything else ;) |
We can't work on this yet, because the gem doesn't work in 4.2: globalize/globalize#393 I'll move back the issue to the Backlog. |
Now that I'm doing #15, we clearly something like this to be able to translate category names ;) |
That will go with Globalize too. I'll take a look to the progress of the issue this weekend. On Fri, Jan 23, 2015 at 10:42 AM, Álvaro Ortiz notifications@github.com
|
https://github.com/globalize/globalize
The text was updated successfully, but these errors were encountered: