Forum: Rails I18n Merging locales

05c3f39db309047f28628a223a757bec?d=identicon&s=25 Hans Marmolin (marmolin)
on 2010-11-05 00:26
(Received via mailing list)
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
4a551074ddba4460f95d011c47190d0e?d=identicon&s=25 Henrik --- (malesca)
on 2010-11-05 08:40
(Received via mailing list)
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
05c3f39db309047f28628a223a757bec?d=identicon&s=25 Hans Marmolin (marmolin)
on 2010-11-05 08:59
(Received via mailing list)
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:
05c3f39db309047f28628a223a757bec?d=identicon&s=25 Hans Marmolin (marmolin)
on 2010-11-05 09:08
(Received via mailing list)
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:
A76578977c521c37c24055565196bc26?d=identicon&s=25 pejuko (Guest)
on 2010-11-08 16:05
(Received via mailing list)
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
This topic is locked and can not be replied to.