I'm using the I18n Gem from Sven Fuchs in my Ruby on Rails 3.2 Application and while the gem works great I came across a situation, which I don't know the solution to:
I have a seed file, which contains the basic translation for my MVC's and is seeded, when I install my application on a new machine. The problem is that when one of these translations changes, I have to go to my seed file, edit it, delete in the database and reseed it. Which is problem not the best way to do this.
Furthermore, my application can create complete MVC's on the fly, which of course need translations as well. These translations get only stored in the database. But it would be nice to store them in a real file, keep them under version control and import or export them if I need to.
So, basically what I'm looking for, is an intelligent connection between the translations in my database and the ones in my files. So I can populate one from the other or vica verca and keep them in sync.
And also I looked at solutions like Globalize3 or localeapp, but they don't seem to fit.
Summarized, what I have is:
- The I18n Gem from Sven Fuchs with a Backend I created myself
- A Seed File which changes sometimes and has to be edited manually but seeds the basic translations
- A database which contains translations that are created on the fly and are not under version control, nor stored in some file
What I want:
- A sync between translations in my seed file and my database
- A way to put my translations under version control
I'm sure I can't be the only one who needs this...
Thanks in regards!