# Email template titles not translated

**URL:** https://meta.discourse.org/t/email-template-titles-not-translated/55191
**Category:** Translations
**Created:** [2017年一月5日 00:15 UTC](https://meta.discourse.org/t/email-template-titles-not-translated/55191 "2017-01-05T00:15:38Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![claas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/claas/32/71725_2.png) [@claas](https://meta.discourse.org/u/claas)
#### Post date: [2017年一月5日 00:15 UTC](https://meta.discourse.org/t/email-template-titles-not-translated/55191/1 "2017-01-05T00:15:39Z")

</div>

I noticed two translation problems with the Email templates in the _Administration_ → _Customize_ → _Email templates_ section.

## 1. Titles of email templates are not translated:

Clarification: The title of an email template is _not_ its subject.

 ![](https://global.discourse-cdn.com/meta/original/3X/0/5/05679146ad15d2f416a73bfb302984efd8c61c91.png)

This is because the `AdminEmailTemplateSerializer` only “titleizes” the keys of the email templates (e.g. `system_messages.bulk_invite_failed` becomes _Bulk Invite Failed_) here:

> <https://github.com/discourse/discourse/blob/5dbd6a304bed5400be481d71061d3e3ebb4d6785/app/serializers/admin_email_template_serializer.rb#L8-L10>

## 2. Four email templates are missing in I18n:

- `system_messages.`[`email_reject_destination`](https://github.com/discourse/discourse/search?utf8=%E2%9C%93&q=email_reject_destination)
- `system_messages.`[`email_reject_post_error`](https://github.com/discourse/discourse/search?utf8=%E2%9C%93&q=email_reject_post_error)
- `system_messages.`[`email_reject_post_error_specified`](https://github.com/discourse/discourse/search?utf8=%E2%9C%93&q=email_reject_post_error_specified)
- `system_messages.`[`email_reject_trust_level`](https://github.com/discourse/discourse/search?utf8=%E2%9C%93&q=email_reject_trust_level)

**Update** : Looks like artifacts, as not referenced anywhere (added links to GitHub search).

 ![](https://global.discourse-cdn.com/meta/original/3X/c/c/cc3b5cb73cc6ae5a9e97ef059ba5cd67009bfdc3.png)

---

<div class="post-metadata">

### Author: ![claas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/claas/32/71725_2.png) [@claas](https://meta.discourse.org/u/claas)
#### Post date: [2017年一月5日 00:17 UTC](https://meta.discourse.org/t/email-template-titles-not-translated/55191/2 "2017-01-05T00:17:44Z")

</div>

Here’s the PR for solving the first problem:

[https://github.com/discourse/discourse/pull/4636](https://github.com/discourse/discourse/pull/4636)

---

<div class="post-metadata">

### Author: ![claas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/claas/32/71725_2.png) [@claas](https://meta.discourse.org/u/claas)
#### Post date: [2017年一月5日 14:26 UTC](https://meta.discourse.org/t/email-template-titles-not-translated/55191/3 "2017-01-05T14:26:01Z")

</div>

> [@claas](#):
>
> system\_messages.email\_reject\_destination

Was replaced by `email_reject_bad_destination_address` [here](https://github.com/discourse/discourse/commit/30836573587079c5e663d7b3122957fc8c70dafe#diff-aeb8651199334c1cb831e884ff85773aL1809).

> [@claas](#):
>
> system\_messages.email\_reject\_post\_error

Was removed [here](https://github.com/discourse/discourse/commit/30836573587079c5e663d7b3122957fc8c70dafe#diff-b090e52bc4ed8cfb075ca72c46b8552dL60).

> [@claas](#):
>
> system\_messages.email\_reject\_post\_error\_specified

Was replaced by ` email_reject_invalid_post_specified` here.

> [@claas](#):
>
> system\_messages.email\_reject\_trust\_level

Was replaced by `email_reject_insufficient_trust_level` [here](https://github.com/discourse/discourse/commit/30836573587079c5e663d7b3122957fc8c70dafe#diff-aeb8651199334c1cb831e884ff85773aL1747).

**In short** : We can remove these.

[https://github.com/discourse/discourse/pull/4638](https://github.com/discourse/discourse/pull/4638)

P.S.: [This advice](http://stackoverflow.com/questions/2700140/how-do-i-search-git-history-for-a-disappeared-line#2700156) helped.
