# Gettext and Mailer and localized templates

**URL:** <https://www.ruby-forum.com/t/gettext-and-mailer-and-localized-templates/120988>\
**Category:** Rails\
**Created:** [November 22, 2007, 12:59pm UTC](https://www.ruby-forum.com/t/gettext-and-mailer-and-localized-templates/120988 "2007-11-22T12:59:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Beate\_P](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/eb8c5e/32.png) [@Beate\_P](https://www.ruby-forum.com/u/Beate_P)\
**Post date:** [November 22, 2007, 12:59pm UTC](https://www.ruby-forum.com/t/gettext-and-mailer-and-localized-templates/120988/1 "2007-11-22T12:59:46Z")

</div>

Hi,

my gettext in Edge Rails worked very well, until i localised my Mailer  
templates and renamed them like told here:  
[http://www.yotabanana.com/hiki/ruby-gettext-howto-rails.html](http://www.yotabanana.com/hiki/ruby-gettext-howto-rails.html)  
(Localized templates for Views/ActionMailer).

My other templates were localized via \_(), not by name.

But then, Rails looked at each action for localized templates, not  
only in the mailer.  
(“Couldn’t find template file for users/\_user\_de in …”)

So I reverted everything, but it didn’t work either, rails is still  
looking for localized templates.

Does anyone know, how I can manage localized templates only for the  
mailer?

Thanks,  
Beate
