# Change to using %{inviter\_name} in locale files may have broken email templates

**URL:** https://meta.discourse.org/t/change-to-using-inviter-name-in-locale-files-may-have-broken-email-templates/75882
**Category:** Bug
**Created:** [12.Декабрь.2017 17:17:23 UTC](https://meta.discourse.org/t/change-to-using-inviter-name-in-locale-files-may-have-broken-email-templates/75882 "2017-12-12T17:17:23Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![pacharanero](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pacharanero/32/500583_2.png) [@pacharanero](https://meta.discourse.org/u/pacharanero)
#### Post date: [12.Декабрь.2017 17:17:23 UTC](https://meta.discourse.org/t/change-to-using-inviter-name-in-locale-files-may-have-broken-email-templates/75882/1 "2017-12-12T17:17:23Z")

</div>

I’m not entirely sure when I did my last update (so I don’t know when this issue started), but I was contacted by one of our moderators today to say that some of the people she’d invited recently had messaged her to say that the invitation read just:

`translation missing: en.invite_forum_mailer.text_body_template`

I hadn’t changed my mailing templates for some weeks so I had to do a bit of research on Meta, and turned up [this thread](https://meta.discourse.org/t/discobot-translation-missing-error/64429/2) which suggested that the templating system will reoprt this error if it can’t find the right key in the locale files.

When I looked at and did some test edits on my email templates, I got the error:

 ![image](https://global.discourse-cdn.com/meta/original/3X/b/f/bf9a5209b195b02518f517193afa4a42491701fe.png)

And I know that %{invitee\_name} has only just been changed to %{inviter\_name} because I [reported it as an issue](https://meta.discourse.org/t/render-invitee-name-as-full-name-only/62412/2) and I saw the commit last week:

[https://github.com/discourse/discourse/commit/248ad5466d5009476fb7170e878096a3e343ec1c](https://github.com/discourse/discourse/commit/248ad5466d5009476fb7170e878096a3e343ec1c)

So if you are getting weird locale/translation missing errors on your invitations it could be caused by this. It’s easily fixed by changing %{invitee\_name} to %{invit **er** \_name} in all your invite templates (‘Invite Forum Mailer’, ‘Invite Mailer’, ‘Custom Invite Forum Mailer’, and ‘Custom Invite Mailer’).

It may only affect people who have edited their stock invite templates, as I have.

I’m on [v1.9.0.beta15 +167](https://github.com/discourse/discourse/compare/1be32bf4cf56c693642796afd5106a1667d9b7cb...tests-passed)

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [12.Декабрь.2017 18:56:02 UTC](https://meta.discourse.org/t/change-to-using-inviter-name-in-locale-files-may-have-broken-email-templates/75882/2 "2017-12-12T18:56:02Z")

</div>

@techAPJ is there something we can do to help people here, or will they simply need to update their templates manually?

---

<div class="post-metadata">

### Author: ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)
#### Post date: [12.Декабрь.2017 20:02:10 UTC](https://meta.discourse.org/t/change-to-using-inviter-name-in-locale-files-may-have-broken-email-templates/75882/3 "2017-12-12T20:02:10Z")

</div>

Maybe we should remove invalid translation overrides after upgrading Discourse.  
Bonus: Notify admins about the removed translation overrides.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [13.Декабрь.2017 02:26:29 UTC](https://meta.discourse.org/t/change-to-using-inviter-name-in-locale-files-may-have-broken-email-templates/75882/4 "2017-12-13T02:26:29Z")

</div>

We should fix this @techAPJ

---

<div class="post-metadata">

### Author: ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)
#### Post date: [13.Декабрь.2017 12:52:47 UTC](https://meta.discourse.org/t/change-to-using-inviter-name-in-locale-files-may-have-broken-email-templates/75882/6 "2017-12-13T12:52:47Z")

</div>

Fixed via:

[https://github.com/discourse/discourse/commit/895cc0666bdea937d8144626bd334751df01818f](https://github.com/discourse/discourse/commit/895cc0666bdea937d8144626bd334751df01818f)

Thanks for reporting this issue @pacharanero 👍

---

<div class="post-metadata">

### Author: ![pacharanero](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pacharanero/32/500583_2.png) [@pacharanero](https://meta.discourse.org/u/pacharanero)
#### Post date: [13.Декабрь.2017 15:12:40 UTC](https://meta.discourse.org/t/change-to-using-inviter-name-in-locale-files-may-have-broken-email-templates/75882/7 "2017-12-13T15:12:40Z")

</div>

Thanks for fixing it so quickly @techAPJ! :discourse:

---

<div class="post-metadata">

### Author: ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)
#### Post date: [14.Декабрь.2017 12:30:02 UTC](https://meta.discourse.org/t/change-to-using-inviter-name-in-locale-files-may-have-broken-email-templates/75882/8 "2017-12-14T12:30:02Z")

</div>

This topic was automatically closed after 23 hours. New replies are no longer allowed.
