Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Translations of the resources used in Administrate #319

Closed
schaternik opened this issue Dec 11, 2015 · 2 comments
Closed

Translations of the resources used in Administrate #319

schaternik opened this issue Dec 11, 2015 · 2 comments

Comments

@schaternik
Copy link

Hi there,

I would like to use translations for resources that used in Administrate.
So, where should I place them?
Thank you in advance for the answer.

P.S.
I've tried to place them in my local config/locales/administrate.ru.yml, kinda:

---
ru:
  administrate:
    actions:
      confirm: Вы уверены?
      destroy: Удалить
      edit: Редактировать
      show: Показать
    controller:
      create:
        success: "%{resource} был успешно создан."
      destroy:
        success: "%{resource} был успешно удален."
        not_the_last: "Невозможно удалить последний %{resource}."
      update:
        success: "%{resource} был успешно обновлен."
    fields:
      has_many:
        more: "%{count} из %{total_count}"
        none: Нет
      polymorphic:
        not_supported: Полиморфные отношения в формах не поддерживаются.
      has_one:
        not_supported: HasOne отношения в формах не поддерживаются.
    activerecord:
      models:
        cartoon:
          one: Мультик
          other: Мультики

Also I tried to add this into ru.yml:

ru:
  activerecord:
    models:
      cartoon:
        one: Мультик
        other: Мультики

But this doesn't help :(.

@schaternik
Copy link
Author

sorry, i missed feature with localizations was released in v.0.1.2, so I just updated the administrate gem I used.

@c-lliope
Copy link
Contributor

@nastia-shaternik glad you got it working! For reference, we discussed and added that feature in #298 and #180.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants