Hi,
When translating messages in a layout, GetText takes most of the request time to translate the message, because it seems that its domaintext isn't set (even if we force it with GetText.bindtextdomain).
For example, just rendering the following code in a layout takes more than 30s, where it takes less than a second when the code is in a view. Am I doing something wrong to have such difference between a layout and a view rendering?
Regards.
<% 1000.times.each do |i| %>
<%= _("toto #{i}") %>
<% end %>
I have the same problem 2.0.1 works, 2.0.3 does not.
Fixed.
Thanks for reporting and sorry for late.
And commited to github.