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

Translations turn "yes" and "no" into "true" and "false" #15

Closed
karlhe opened this issue Jun 11, 2010 · 2 comments
Closed

Translations turn "yes" and "no" into "true" and "false" #15

karlhe opened this issue Jun 11, 2010 · 2 comments

Comments

@karlhe
Copy link

karlhe commented Jun 11, 2010

Whenever the lowercase word "yes" appears in the Rails language yaml (e.g. en.yml), and rake i18n:export is run, the resulting javascript translation will replace the word with "true". The same applies for "no" becoming false.

en:
    yes: yes
    no: no
    other: Yes

becomes

{"en":{"true":"true","false":"false","other":"Yes"}
@fnando
Copy link
Owner

fnando commented Jun 12, 2010

That's a yaml feature. You should quote those words.

@karlhe
Copy link
Author

karlhe commented Jul 21, 2010

Thanks, didn't realize YAML did that.

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

2 participants