About Translations with tolk engine

Hello,

I have implemented tolk engine by dhh to add translations and then
create
.yml files from it. It works well for text.

Now what I want is same behavior over images.

I create follwing structure in my en.yml file -

images:
logo: “/images/en/logo.png”

and for hi

images:
logo: "/images/hi/logo.png

and in my views, I have - <%= t(“images.logo”) %>

This also works for showing different images depending on locale.

But I want to add these translations via tolk engine, so that I can
directly
upload images from there, and they will stored in respective folders.
Also
when yml files will be created, that will include structures like above.

Is there any tolk fork already doing this ? or people prefer
different approach for image translations(replace as per locals) than
this ?

Thanks.


Ratnadeep Deshmane.
http://rtdptech.com

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs