Hi I am trying to find some rake task that supports the managing of locales. I have many unused keys, there are missing keys and there are each locale have old and new locale-files. I have found some rake tasks that support this kind of managing but I also need 1. I am trying to merge two en-locales to one file. Anyone that knows how to do that or knows about a plugin, code snippet etc that does the job 2. I also want to add a I18n key with a value e.g. views. help: Hjlp to the correct position in a locale file Anyone that knows how to do that or knows about a plugin, code snippet etc that does the job
on 2010-11-05 00:26

on 2010-11-05 08:40

On Fri, Nov 5, 2010 at 00:25, Hans Marmolin <hans.marmolin@klockholm.se>wrote: > > 2. I also want to add a I18n key with a value e.g. views. help: Hjlp to > the correct position in a locale file > Anyone that knows how to do that or knows about a plugin, code snippet etc > that does the job > This might be helpful: https://gist.github.com/293581
on 2010-11-05 08:59

Henry Thanks This seems to solve one of my problems, but I am still looking for a solution of the problem of merging locale fies ____________________________________________ Hans Marmolin St: Larsgatan 50, 58224 Linkping, Sweden Phone: +46708371202 5 nov 2010 kl. 08.39 skrev Henrik Nyh:
on 2010-11-05 09:08

henry Looking through your code again I realize that it could be used also for merging files if the file to be merged are transformed to a serie of key - value lines, and I have found some code that I could refactor for that purpose (see git://gist.github.com/583424.git), if no one has a more simple solution ____________________________________________ Hans Marmolin St: Larsgatan 50, 58224 Linkping, Sweden Phone: +46708371202 5 nov 2010 kl. 08.39 skrev Henrik Nyh:
on 2010-11-08 16:05

Hi, maybe it's not exactly what you want but there exist tool for managing locales under ruby. Try look at: https://github.com/pejuko/i18n-translators-tools