# I18n in ruby scripts

**URL:** <https://www.ruby-forum.com/t/i18n-in-ruby-scripts/186355>\
**Category:** Rails\
**Created:** [April 5, 2010, 6:21pm UTC](https://www.ruby-forum.com/t/i18n-in-ruby-scripts/186355 "2010-04-05T18:21:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![CiriusMex](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/90ced4/32.png) [@CiriusMex](https://www.ruby-forum.com/u/CiriusMex)\
**Post date:** [April 5, 2010, 6:21pm UTC](https://www.ruby-forum.com/t/i18n-in-ruby-scripts/186355/1 "2010-04-05T18:21:06Z")

</div>

Hello, I created a ruby script for my RubyOnRails application that  
send a mail to my application users. This script is executed using a  
cron job everyday at midnight. Ok so that part works just great. My  
problem is that I have to use RubyOnRails I18n system to translate a  
large part of the emails sent and it doesn’t seems to work  
(translation is not done). I’m using the RubyOnRails built in I18n  
system (no plugin or anything else).  
Anyone have a solution?

Thanks for the help,  
Olivier Rouhaud.
