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

GetText taking too long when translating in layout #2

Closed
sestren opened this issue Jun 9, 2009 · 0 comments
Closed

GetText taking too long when translating in layout #2

sestren opened this issue Jun 9, 2009 · 0 comments

Comments

@sestren
Copy link

sestren commented Jun 9, 2009

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 %>

This issue was closed.
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

1 participant