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

Fix strange messages for rails g foo #21524

Merged
merged 1 commit into from
Sep 7, 2015
Merged

Fix strange messages for rails g foo #21524

merged 1 commit into from
Sep 7, 2015

Conversation

gfx
Copy link
Contributor

@gfx gfx commented Sep 7, 2015

On my environment, rails g foo says:

Could not find generator 'foo'. Maybe you meant 'job'と'task' or 'cell'
Run rails generate --help for more options.

The is and in Japanese Hiragana, meaning it tries to localize some messages but generates strange messages.

This pull-request fixes this issue by disabling localization by #to_sentence(), showing Maybe you meant 'job', 'task' or 'cell'.

@gfx gfx changed the title Fix curious messages for rails g foo Fix strange messages for rails g foo Sep 7, 2015
@amatsuda
Copy link
Member

amatsuda commented Sep 7, 2015

Confirmed the fix. Thanks!

amatsuda added a commit that referenced this pull request Sep 7, 2015
@amatsuda amatsuda merged commit 3f2267e into rails:master Sep 7, 2015
@gfx gfx deleted the do_not_localize_for_to_sentence branch September 8, 2015 01:18
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

Successfully merging this pull request may close these issues.

None yet

2 participants