Loading an entire translation set from a database column

71 views
Skip to first unread message

Steven Garcia

unread,
Jul 15, 2011, 8:41:41 AM7/15/11
to rails...@googlegroups.com
Is it at all possible for me to load the monolithic YAML from a database column, as opposed to using a file load path?

I'm working on a multi-site CMS and rather than have programmers tediously enter each translation in CRUD fashion, I just need them to be able to add to the existing locale on the fly.

I basically want a table of locales which only have one column, to hold the YAML text you'd normally put in the locale file.

Any ideas?

Andrés gutiérrez

unread,
Jul 15, 2011, 9:11:04 AM7/15/11
to rails...@googlegroups.com
Do you know Tolk?
https://github.com/dhh/tolk

2011/7/15 Steven Garcia <steven...@gmail.com>
--
You received this message because you are subscribed to the Google Groups "rails-i18n" group.
To view this discussion on the web visit https://groups.google.com/d/msg/rails-i18n/-/hUongszrlvMJ.
To post to this group, send email to rails...@googlegroups.com.
To unsubscribe from this group, send email to rails-i18n+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rails-i18n?hl=en.

Steven Garcia

unread,
Jul 15, 2011, 1:30:07 PM7/15/11
to rails...@googlegroups.com
Hmm that looks like it just might do the trick. Thanks andres, gonna give it a whirl

Steven Garcia

unread,
Jul 15, 2011, 1:34:41 PM7/15/11
to rails...@googlegroups.com
Yikes, that is one complex looking beast - definitely more than I need. Will probably just McGuyver up something myself

cheers tho!

Henrik Nyh

unread,
Jul 15, 2011, 1:40:50 PM7/15/11
to rails...@googlegroups.com
You can plug different backends into Rails i18n. Not sure what the
latest and greatest is, but this should get you started:

http://guides.rubyonrails.org/i18n.html#using-different-backends

http://stackoverflow.com/questions/1346939/rails-store-translations-in-database

> --
> You received this message because you are subscribed to the Google Groups
> "rails-i18n" group.
> To view this discussion on the web visit

> https://groups.google.com/d/msg/rails-i18n/-/v8hT9UbIfKsJ.

Translate Humans

unread,
Mar 13, 2012, 7:44:55 AM3/13/12
to rails...@googlegroups.com
Hey Steven,

In fact I also don’t have Idea but may be somebody know and respond us
for this postfix. I am also waiting for appropriate and ideal react.

http://www.translatebyhumans.com/human-translation

--
Posted via http://www.ruby-forum.com/.

Reply all
Reply to author
Forward
0 new messages