No commit activity in last 3 years
No release in over 3 years
Rails Admin plugin to manage Globalize translations
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

Rails Admin Globalize custom action.

this code is untested and need a good rewrite, but work. treat it as a prototype.

Usage:

Add the gem to your bundler:

  gem "rails_admin"
  gem "globalize3"
  gem "rails_admin_globalize"

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

  RailsAdmin.config do |config|

    config.actions do
      dashboard do ; end
      globalize do ; end
      index do ; end
      new do ; end
      export do ; end
      bulk_delete do ; end
      show do ; end
      edit do ; end
      delete do ; end
      history_show do ; end
      show_in_app do ; end
    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