Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Translation models name in active admin

Tags:

activeadmin

I'm looking to a way for translating model name in an active admin application.

fr:
  activerecord:
    models:
      project: Projet
    attributes:
      project: 
        title: Titre

It's work for the attribute but it didn't for the model name. Any suggestion to fix it ?

like image 978
Awea Avatar asked Feb 14 '12 19:02

Awea


1 Answers

Try with the one and other keys:

fr:
  activerecord:
    models:
      project:
        one: Projet
        other: Projets
    attributes:
      project: 
        title: Titre
like image 137
bruno077 Avatar answered Oct 21 '22 13:10

bruno077