Merging locales

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 Fri, Nov 5, 2010 at 00:25, Hans M.
[email protected]wrote:

  1. 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: Helps you update Rails i18n YAML files programmatically. · GitHub

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 M.
St: Larsgatan 50, 58224 Linkping, Sweden
Phone: +46708371202

5 nov 2010 kl. 08.39 skrev Henrik N.:

Hi,

maybe it’s not exactly what you want but there exist tool for managing
locales under ruby.
Try look at:

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 M.
St: Larsgatan 50, 58224 Linkping, Sweden
Phone: +46708371202

5 nov 2010 kl. 08.39 skrev Henrik N.: