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:find does not find interpolated strings in .rb files #146

Closed
ceres629 opened this issue Nov 25, 2015 · 2 comments
Closed

gettext:find does not find interpolated strings in .rb files #146

ceres629 opened this issue Nov 25, 2015 · 2 comments

Comments

@ceres629
Copy link

Not sure if this is an issue with gettext_i18n_rails or the getext gem but...
Running gettext:find doesn't seem to find interpolated strings in .rb files.

#In a .rb file
test = _("Test: this key is found by gettext")
test2 = "#{_("Test: this key is not found by gettext")}"

In .haml files however, the above examples both work fine and gettext:find correctly identifies both as being strings to be translated.

@grosser
Copy link
Owner

grosser commented Nov 25, 2015

more a bug with ruby-parser vs the finder implementation ... so I'd say fix
should go into gettext

On Wed, Nov 25, 2015 at 7:44 AM, Colin Browne notifications@github.com
wrote:

Not sure if this is an issue with gettext_i18n_rails but...
Running gettext:find doesn't seem to find interpolated strings in .rb
files.

#In a .rb file
test = ("Test: this key is found by gettext")
test2 = "#{
("Test: this key is not found by gettext")}"

In .haml files however, the above examples both work fine...


Reply to this email directly or view it on GitHub
#146.

@ceres629
Copy link
Author

Got it!
Thanks for the quick response!

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

2 participants