rails/rails — Issue #4593: value of @virtual_path changed?
Author: conanite
Created: 2012-01-21 23:50:59+00:00
State: open

My i18n yml in 3.0.3 looks like this:

```yml
en:
users:
index:
title: User List
```

In 3.2.0, TranslationsHelper seems to expect this:

```yml
en:
users:
index:
html:
title: User List
```

In other words, `t(".title")` in `users/index.html.haml` now causes a lookup of `en.users.index.html.title`, whereas previously it caused a lookup of `en.users.index.title`

Browsing the code, it seems that the value assigned to `@virtual_path` in TranslationsHelper is responsible for this; I haven't figured out where the change happened.

While it can be useful to distinguish between `show.html` and `show.pdf` in i18n dictionaries, this makes upgrading a pain. Is there a way to suppress the `.html` segment of the key so I don't have to adjust a whole bunch of yml?