sanbit_translations
sanbit_translations copied to clipboard
a rails plugin that gives adds a facebook like translation system to your rails app
h1. sanbit_translations rails plugin
This is a rails plugin that allows users of your site to contribute translations like facebook.
h3. 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); }); }); }
h2. Authors
- "Jason Toy":http://jtoy.net
h2. License
MIT License. See the included MIT-LICENSE file.