How to change to spanish language?

44 views
Skip to first unread message

Marco Rosas

unread,
Jun 12, 2013, 10:09:37 PM6/12/13
to rails...@googlegroups.com
I need to change the administration panel to spanish, any developer helps me??
Sorry for my bad english!
Thanks

ejmm320

unread,
Jun 13, 2013, 9:13:16 AM6/13/13
to rails...@googlegroups.com
Hi Marco, one solution is add a rails_admin.es.yml file under the folder "config/locales" in your rails project, also you must to include to your file "config/application.rb" the following:

config.i18n.default_locale = :es

I'm going to attach an example of the yml, maybe you have to change this file (if any translation is missing) and add new ones for other gems such as devise to get all working in spanish.

Best Regards.

===Spanish===
Hola Marco, una solución es agregar un archivo rails_admin.es.yml a la carpeta "config/locales" de tu proyecto rails, tambien es necesario que agregues a tu archivo "config/application.rb" lo siguiente:

config.i18n.default_locale = :es

Te adjunto un ejemplo del archivo yml, es probable que necesites modificarlo en caso de que alguna traducción no este incluida y agregar archivos de traducciones para otras gemas tales como devise para trabajar todo en Español.

Saludos.
rails_admin.es.yml

Marco Rosas

unread,
Jun 13, 2013, 7:59:59 PM6/13/13
to rails...@googlegroups.com
Muchas gracias, fue de mucha ayuda su post.
Saludos desde Chile
Reply all
Reply to author
Forward
0 new messages