--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/bb956f27-c699-4039-9cea-ebc93ab6da41%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
en.yml
2017-08-24 20:33 GMT-03:00 fugee ohu <fuge...@gmail.com>:
config/locales/en.rb
en:
hello: "Hello world"
Rails complains unexpected : expecting end of input at the first :
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-ta...@googlegroups.com.
To post to this group, send email to rubyonra...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/bb956f27-c699-4039-9cea-ebc93ab6da41%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
That's not a valid answer Moderator please remove his answer
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-ta...@googlegroups.com.
To post to this group, send email to rubyonra...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/5e9d3922-0a87-4ada-a800-bc86dc60fa8f%40googlegroups.com.
So not the answer has been a bad one but your question was.
I've never used I18N and L21N in rails. So I can't help you with that.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/8c44bc48-a5a8-46db-9a16-012111163153%40googlegroups.com.
Rails guides say this
> You may use YAML (.yml) or plain Ruby (.rb) files for storing your translations in SimpleStore
So it seems as if you just need to write a script that modifies some simple store called thing, you might try to find documentation about that.
The very same guides do also state that yaml is preferred but has downsides...
You may use YAML (.yml
) or plain Ruby (.rb
)
files for storing your translations in SimpleStore. YAML is the
preferred option among Rails developers. However, it has one big
disadvantage. YAML is very sensitive to whitespace and special
characters, so the application may not load your dictionary properly.
Ruby files will crash your application on first request, so you may
easily find what's wrong. (If you encounter any "weird issues" with YAML
dictionaries, try putting the relevant portion of your dictionary into a
Ruby file.)
If your translations are stored in YAML files, certain keys must be escaped. They are: