Skip to content

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

License

Notifications You must be signed in to change notification settings

jtoy/sanbit_translations

Repository files navigation

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.

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages