Adds custom Globalize actions to Rails Admin.

this code is untested and need a good rewrite, but works. treat it as a prototype. Updated version from https://github.com/andreazaupa/rails_admin_globalize All credit goes to @andreazaupa, @benhutton & @dalpo

Usage:

Add the gem to your bundler:

  gem "rails_admin"
  gem "globalize"
  gem "rails_admin_globalized"

Add globalize to the list of actions in rails_admin's initializer:

  RailsAdmin.config do |config|

    config.actions do
      globalize 
    end

  end

At this point:

  • a translation Action appear in rails_admin near the edit button .
  • the configuration for the field was ereditated from edit action configuration .
  • has_many and has_one fields of translated models is included in the translations form .
  • the translation look for I18n.avaiable_locales
  • take this as a prototype and use as your own risk :-)
  • clone/fork/improve