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

Error with n_() causes crash when 3rd argument is nil #8

Open
graaff opened this issue Jan 25, 2011 · 0 comments
Open

Error with n_() causes crash when 3rd argument is nil #8

graaff opened this issue Jan 25, 2011 · 0 comments

Comments

@graaff
Copy link

graaff commented Jan 25, 2011

undefined method `_' for GetText::TextDomainManager:Module

gettext (2.1.0) lib/gettext/runtime/textdomain_manager.rb:153:in `translate_plural_message'
gettext (2.1.0) lib/gettext.rb:180:in `n_'

This crash happens in a Rails application when the 3rd argument to n_() is nil. Line 153 should trigger a translated error, but instead I get the undefined method _() error.

Easily fixed in my code by not providing nil, but would be nice to get a proper error message.

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