Hi,

I was wondering how people manage their translation files ... I
googled around a lot for "merging translation files rails" etc. but
nothing seemed to come up ...

Here's my problem:

When writing a localised app, I write in English and I maintain the
en.yml translation file. Halfway through development, I ship out the
en.yml file to my translator, for say, French (fr.yml) ... he updates
the translations. Two weeks later, I have added lots of translations
to the en.yml file, so the fr.yml file is out of date. What do I do?

As I couldn't find anything out of the box, or on Google, I whipped up
a simple plugin to do this:

http://github.com/paulca/merge_translation/tree/master

Basically, it takes my en.yml, converts it to a Hash, does a deep
merge with the french translation and then outputs it again back to
YAML ...

... is this a problem that others have seen? Is it something worth
working on? At the moment, it doesn't retain the formatting of the
en.yml file, which is kind of annoying, and it doesn't work with .rb
translation files.

For now though, it solves my problem ... is there a more elegant
solution?

Thanks,

Paul

--~--~---------~--~----~------------~-------~--~----~
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