/sanbit_translations

a rails plugin that gives adds a facebook like translation system to your rails app

Primary LanguageRubyMIT LicenseMIT

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.