a rails plugin that gives adds a facebook like translation system to your rails app
Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
config
generators/sanbit
lib
test
.gitignore
MIT-LICENSE
README.textile
Rakefile
init.rb
sanbit_translations.gemspec

README.textile

sanbit_translations rails plugin

This is a rails plugin that allows users of your site to contribute translations like facebook.

Usage

Clone the repo as a plugin into your Rails app.

More details at http://jtoy.net/2009/10/07/facebook-like-translations-for-your-rails-app.html

When using the Translation Key Controller, you must implement an admin_required method.
Jquery is required along with the jquery rightclick plugin.

The javascript code for rightclicking is used like:

if(typeof($.fn.rightClick) == 'function'){
  $('.translatable').rightClick(function(e){
    var p = { key: $(this).attr('key') }
    $.get("/translations/new",p, function(data){
      $.facebox(data);
    });
  });
}

Authors

License

MIT License. See the included MIT-LICENSE file.