Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Localization bug in menu, breadcrumbs, title #40

Open
arturtr opened this Issue · 1 comment

2 participants

@arturtr

In my locale file I have:

ru:
  mongoid:
    models:
      admin_user: Админ
      page: Страница
      photo: Фото
      work_item: Вид работ
    attributes:
      work_item:
        work_type: Вид услуг
        name: Наименование
      photo:
        title: Примечание
        image: Файл с фотографией

It work great, but header menu, breadcrumbs, system buttons ( Add ..., Edit ... tried to use ru.activerecord.models.*.

I can fix it with duplicating locale data for active record:

ru:
  activerecord:
    models:
      admin_user: Админ
      page: Страница
      photo: Фото
      work_item: Вид работ

But I think that is not so good. I tried to find the bug in the source code, but I found none.

@elia
Owner

This is a tricky one, as a temporary fix you could use yaml alias/anchor indicators like this:

ru:
  mongoid:
    models: &mongoid-models
      admin_user: Админ
      page: Страница
      photo: Фото
      work_item: Вид работ
  activerecord:
    models:
      <<*mongoid-models
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.