[Rails]
GetText: Works with en_GB and en_US, but doesn't with de_DE!
Joshua Muheim
forum at josh.ch
Wed Jan 11 13:04:18 GMT 2006
Hi all
I'm trying to get GetText to work. I have the following folder
structure:
|-myapp.pot
|-de_DE/:
| `-myapp.po
|-en_GB/:
| `-myapp.po
|-en_US/:
` `-myapp.po
I run rake updatepo, and then rake makemo.
Now I set en-gb as default language in Firefox and run my app >> works!
Then I set en-us as default language in Firefox and run my app >> works,
too!
Last but not least I set de-de as default language in Firefox and run my
app >> Failure!
NoMethodError in Member#register
You have a nil object when you didn't expect it!
The error occured while evaluating nil.unpack
-----------------------------------
RAILS_ROOT: script/../config/..
Application Trace | Framework Trace | Full Trace
/usr/lib/ruby/gems/1.8/gems/gettext-1.1.0/lib/gettext/mo.rb:66:in
`load_from_stream'
/usr/lib/ruby/gems/1.8/gems/gettext-1.1.0/lib/gettext/mo.rb:229:in
`load_from_file'
/usr/lib/ruby/gems/1.8/gems/gettext-1.1.0/lib/gettext/mo.rb:229:in
`open'
/usr/lib/ruby/gems/1.8/gems/gettext-1.1.0/lib/gettext/mo.rb:229:in
`load_from_file'
/usr/lib/ruby/gems/1.8/gems/gettext-1.1.0/lib/gettext/mo.rb:38:in `open'
...
...
-----------------------------------
What's the problem?? I just don't get it to work... Any help is very
appreciated. :-)
Btw. how can I set a default language, so if the default language of the
browser is not supported it displays the page e.g. in german?
Thanks a lot.
Josh
--
Posted via http://www.ruby-forum.com/.
More information about the Rails
mailing list