# Problem freezing svenfuchs-i18n gem

**URL:** <https://www.ruby-forum.com/t/problem-freezing-svenfuchs-i18n-gem/182760>\
**Category:** Rails I18n\
**Created:** [February 2, 2010, 1:13pm UTC](https://www.ruby-forum.com/t/problem-freezing-svenfuchs-i18n-gem/182760 "2010-02-02T13:13:44Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![cmaxvv](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/85f322/32.png) [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Post date:** [February 2, 2010, 1:13pm UTC](https://www.ruby-forum.com/t/problem-freezing-svenfuchs-i18n-gem/182760/1 "2010-02-02T13:13:44Z")

</div>

Hi all, i’m having a problem with i18n gem.

First, I froze rails into the vendor folder: that worked fine.

For i18n, i installed a gem called svenfuchs-i18n:

gem list | grep i18n  
=\>svenfuchs-i18n (0.2.0)

I then froze it into my vendor folder, this worked fine:  
Unpacked gem:  
‘/home/max/work/millionaire\_container/millionaire/vendor/gems/svenfuchs-i18n-0.2.0’

I reference it in my environment.rb thus:

config.gem “svenfuchs-i18n”, :version =\> ‘0.2.0’

And that’s where the problem happens: trying to load the app in the  
console (just to check if the config stuff worked), i get

no such file to load – svenfuchs-i18n  
/usr/lib/ruby/1.8/rubygems/custom\_require.rb:31:in  
`gem_original_require' /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in`require’  
/home/max/work/millionaire\_container/millionaire/vendor/rails/activesupport/lib/active\_support/dependencies.rb:156:in  
`require’  
…etc

I don’t understand what i’m doing wrong here…i tried config.gem ‘i18n’  
but it complains that i don’t have the gem.

grateful for any advice - max

---

<div class="post-metadata">

**Author:** ![cmaxvv](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/85f322/32.png) [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Post date:** [February 2, 2010, 1:56pm UTC](https://www.ruby-forum.com/t/problem-freezing-svenfuchs-i18n-gem/182760/2 "2010-02-02T13:56:03Z")

</div>

Probably you should have:

config.gem “svenfuchs-i18n”, :version =\> ‘0.2.0’, :lib =\> ‘i18n’

but it won’t help you as rails only accept gem named ‘i18n’, and - if  
such gem exists in you gem path, Rails load its automatically,  
otherwise they use bundled i18n lib.

So you don’t need to specify its in your environment file and only  
need installed/bundled/freezed i18n gem.

Regards,  
KK

2010/2/2 Max W. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

---

<div class="post-metadata">

**Author:** ![cmaxvv](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/85f322/32.png) [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Post date:** [February 2, 2010, 2:03pm UTC](https://www.ruby-forum.com/t/problem-freezing-svenfuchs-i18n-gem/182760/3 "2010-02-02T14:03:32Z")

</div>

Thanks Krzysztof

I think you’re right. I took that line out of my environment.rb and  
started a console and i can still call the I18n.translate method.

cheers, max

---

<div class="post-metadata">

**Author:** ![cmaxvv](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/85f322/32.png) [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Post date:** [February 2, 2010, 6:54pm UTC](https://www.ruby-forum.com/t/problem-freezing-svenfuchs-i18n-gem/182760/4 "2010-02-02T18:54:47Z")

</div>

Also, you should be able to install from gemcutter instead of github:

[http://gemcutter.org/gems/i18n](http://gemcutter.org/gems/i18n)

---

<div class="post-metadata">

**Author:** ![cmaxvv](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/85f322/32.png) [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Post date:** [February 2, 2010, 7:03pm UTC](https://www.ruby-forum.com/t/problem-freezing-svenfuchs-i18n-gem/182760/5 "2010-02-02T19:03:58Z")

</div>

Sven F. wrote:

> Also, you should be able to install from gemcutter instead of github:
> 
> [RubyGems.org | your community gem host](http://gemcutter.org/gems/i18n)

ah, great, thanks sven.
