# How to use \_() in a class that isn't a child of application

**URL:** <https://www.ruby-forum.com/t/how-to-use-in-a-class-that-isnt-a-child-of-application/130264>\
**Category:** Rails\
**Created:** [February 26, 2008, 9:47pm UTC](https://www.ruby-forum.com/t/how-to-use-in-a-class-that-isnt-a-child-of-application/130264 "2008-02-26T21:47:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sayoyo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ba8739/32.png) [@sayoyo](https://www.ruby-forum.com/u/sayoyo)\
**Post date:** [February 26, 2008, 9:47pm UTC](https://www.ruby-forum.com/t/how-to-use-in-a-class-that-isnt-a-child-of-application/130264/1 "2008-02-26T21:47:09Z")

</div>

Hi,

Does someone know how to use gettext() or \_() in a class which is not a  
child class of application controller?

Thanks you very much

Sayoyo
