I don't know what could have modified the environment.. I did not
touch anything related to I18n..
testing in the console , I can see it's up and running , but something
is wrong in loading the yml files
( I tried with just one simple and basic yml file .. same issue),
where should I look for anything wrong ?
$ rails c
Loading development environment (Rails 3.0.3)
ruby-1.9.2-p0 > I18n.locale
=> :en
> I18n.back:Fallbacks)end(:include, I18n::Backend:
=> I18n::Backend::Simple
I18n.fallbacks.map('de' => 'en')
=> {"de"=>"en"}
BUT
ruby-1.9.2-p0 > I18n.t(:hello)
ArgumentError: syntax error on line 53, col 241: `'
from /Users/yves/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/syck.rb:
135:in `load'
from /Users/yves/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/syck.rb:
135:in `load'
from /Users/yves/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/syck.rb:
146:in `block in load_file'
from /Users/yves/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/syck.rb:
145:in `open'
from /Users/yves/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/syck.rb:
145:in `load_file'
from /Users/yves/.rvm/gems/ruby-1.9.2...@rails3/gems/i18n-0.5.0/lib/
i18n/backend/base.rb:170:in `load_yml'
from /Users/yves/.rvm/gems/ruby-1.9.2...@rails3/gems/i18n-0.5.0/lib/
i18n/backend/base.rb:156:in `load_file'
from /Users/yves/.rvm/gems/ruby-1.9.2...@rails3/gems/i18n-0.5.0/lib/
i18n/backend/base.rb:15:in `block in load_translations'
from /Users/yves/.rvm/gems/ruby-1.9.2...@rails3/gems/i18n-0.5.0/lib/
i18n/backend/base.rb:15:in `each'
...
I also tried the date translation :
today = Time.now
=> 2010-12-28 09:29:51 +0100
ruby-1.9.2-p0 > I18n.l(today)
ArgumentError: syntax error on line 53, col 241: `'
from /Users/yves/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/syck.rb:
135:in `load'
from /Users/yves/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/syck.rb:
135:in `load'
from /Users/yves/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/syck.rb:
146:in `block in load_file'
from /Users/yves/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/syck.rb:
145:in `open'
from /Users/yves/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/syck.rb:
145:in `load_file'
from /Users/yves/.rvm/gems/ruby-1.9.2...@rails3/gems/i18n-0.5.0/lib/
i18n/backend/base.rb:170:in `load_yml'
--
You received this message because you are subscribed to the Google Groups
"rails-i18n" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rails-i18n?hl=en.