app/helpers/admin/i18n_helper.rb
def create_defaults_for( i18n_object, base_object )

      {
        id: (base_object.present? and base_object.respond_to?(:id)) ? base_object.id : nil,
        'model_singular': i18n_object.human( count: 1,  capitalize: false ),
        'model_plural':   i18n_object.human( count: 99, capitalize: false ),
        'model_zero':     i18n_object.human( count: 0,  capitalize: false )
      }

    end
# Creates some defaults for a given internationalisable object
Creates some defaults for a given internationalisable object
Creates some defaults for a given internationalisable object
def create_defaults_for( i18n_object, base_object )
      {
        id: (base_object.present? and base_object.respond_to?(:id)) ? base_object.id : nil,
        'model_singular': i18n_object.human( count: 1,  capitalize: false ),
        'model_plural':   i18n_object.human( count: 99, capitalize: false ),
        'model_zero':     i18n_object.human( count: 0,  capitalize: false )
      }
    end
def create_defaults_for ( i18n_object , base_object ) { id : ( base_object . present? and base_object . respond_to? ( :id ) ) ? base_object . id : nil , 'model_singular' : i18n_object . human ( count : 1 , capitalize : false ) , 'model_plural' : i18n_object . human ( count : 99 , capitalize : false ) , 'model_zero' : i18n_object . human ( count : 0 , capitalize : false ) } end
Creates some defaults for a given internationalisable object
Creates some defaults for a given internationalisable object
i18n_object
base_object