translate_acts_as_translatable_models is a Ruby on Rails plugin for easy translation of your acts_as_translatable (lassebunk/acts_as_translatable) enabled models.
Installation¶ ↑
In your Gemfile:
gem 'translate_acts_as_translatable_models'
And run bundle install
.
Example¶ ↑
Translate the Category and Product models from English into Spanish:
$ rake translate_acts_as_translatable_models class=Category,Product from=en to=es app_id=<Your Bing API Application ID>
Have fun! Please send comments and suggestions to lassebunk@gmail.com, and issues here at GitHub, please :)
Todo’s¶ ↑
-
Encapsulate all translation logic in separate class
Thanks¶ ↑
Thanks to Ricky Elrod for his excellent and simple bing_translator gem!
Copyright © 2012 Lasse Bunk, released under the MIT license