[Problem] I18n dot lookup key & partials
Hi,
I've just installed Rubymine 3.0.1, and for what I've seen for the moment, it looks like a great tool.
But I encounter some of a problem :
In my rails project, I have a partial HAML view... such as _form.html.haml
.../views/model/_form.html.haml
On the other side I have a local file fr.yml
fr:
model:
form:
anykey: "value"
If in my _form partial I ask for displaying :
= t(".anykey")
Rubymine says it cannot find the key anykey.
If I replace my YML file with :
fr:
model:
_form:
anykey: "value"
Rubymine seems happy, but of course rails does not appreciate.
Is it a known rubymine problem ? Is the problem coming from me ?
Thanks.
Aurel
请先登录再写评论。
Hello Aurélien,
This problem is already fixed in RubyMine 3.1 EAP builds, you can have more information on RubyMine 3.1 EAP builds at: http://blogs.jetbrains.com/ruby/2011/01/introducing-rubymine-3-1-early-access-build-102-217/
Regards,
Oleg
Hi,
Thanks for the reply !
I'll probably have a look at the EAP so.
Aurel
I have the same problem with the new 4.0 version.
I try to write in _show.html.erb t(".keyword") and it tells me "Value '.keyword' is not a valid I18n property key".
What is the problem?