script/generate not recognizing I18n

Hi,

After creating a new, clean Rails-2.2.2 project and inserting

    I18n.default_locale = "de"

in config/environment.rb, the command

    script/generate

ends with

    .../config/environment.rb:76: uninitialized constant I18n (NameError)

This is strange since I18n of rails-2.2.2 worked fine for me in another project. Just `script/generate` complains.

Hints appreciated! Michael