Skip to content
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

Open
furilo opened this issue Nov 18, 2014 · 7 comments
Open

Model data translation: Use Globalize? #21

furilo opened this issue Nov 18, 2014 · 7 comments

Comments

@furilo
Copy link
Member

furilo commented Nov 18, 2014

https://github.com/globalize/globalize

@jorgesancha
Copy link
Contributor

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

@furilo
Copy link
Member Author

furilo commented Nov 19, 2014

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.

@jorgesancha
Copy link
Contributor

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?

@furilo
Copy link
Member Author

furilo commented Nov 20, 2014

Yeah, I would not worry much for the time being (my concern was more on the side of me learning than anything else ;)

@ferblape ferblape self-assigned this Jan 18, 2015
@ferblape
Copy link

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.

@ferblape ferblape removed their assignment Jan 18, 2015
@furilo
Copy link
Member Author

furilo commented Jan 23, 2015

Now that I'm doing #15, we clearly something like this to be able to translate category names ;)

@ferblape
Copy link

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
wrote:

Now that I'm doing #15 #15,
we clearly something like this to be able to translate category names ;)


Reply to this email directly or view it on GitHub
#21 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants