I've done something like this to a project that I'm working in.

        The big question is that look for translations on database can be a 
pain for 
your app performance. So, on my project what I did is:

        I made a rake task that takes the translations on database and put it 
on a 
yml file (I splited the translation files into many others, so, I have files 
that are static and this one that is deleted and rebuilt by that rake task). 
And, after this rebuild, my cron calls another task that I created that sends 
a SIGALRM to the rails application that understand this and reload the 
languages. Of course, it must send the signal to all the instances of Rails. 

Hey! Wouldn't be nice if I put this into a plugin? If yes, I can do it easily 
do it :)

Bye!


On Monday 24 November 2008 07:35:08 HuhWhat? wrote:
> Hi Guys,
>
> I'm in need of a I18N engine much like the original Globalize
> (for-1.2).  I'd like to help make this happen if I can somehow muster
> the time and brain power.
>
> I've looked over the current work at
> http://github.com/joshmh/globalize2/tree/master
>
> It looks like everything must currently run through a file based
> static back-end.... this doesn't serve my needs well.
>
> I need things to pretty much go like this:
> 1) This is my string in my "default language"
> 2) Translate this string into klingon
> 3) Darn, I don't have that, let me make a note of that and ask someone
> to translate that...
> 4) Ah, here's the translation... it's live! (without restart of rails
> stack).
>
> Just so I don't duplicate work, or step on toes, are there things I
> should know, or guidelines from those "who know" as to how I should
> approach this?
>
> If I totally missed that the current static backend implementation can
> already do this, kindly let me know.  Otherwise, let me know how I can
> help all of us get moving along here...
>
> Jeff
>
> 

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"rails-i18n" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rails-i18n?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to