# Invalid Interpolation Keys/ Broken by update

**URL:** https://meta.discourse.org/t/invalid-interpolation-keys-broken-by-update/82117
**Category:** Support
**Created:** [March 3, 2018, 10:11am UTC](https://meta.discourse.org/t/invalid-interpolation-keys-broken-by-update/82117 "2018-03-03T10:11:35Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![\_fuchs](https://avatars.discourse-cdn.com/v4/letter/_/5f9b8f/32.png) [@\_fuchs](https://meta.discourse.org/u/_fuchs)
#### Post date: [March 3, 2018, 10:11am UTC](https://meta.discourse.org/t/invalid-interpolation-keys-broken-by-update/82117/1 "2018-03-03T10:11:35Z")

</div>

We want to modify `user_notifications.reply_by_email` to achieve something similar to this:

> [@Customize email notification footer with links to reply privately and see user profiles](https://meta.discourse.org/t/email-notification-footer-with-links-for-reply-privately-sender-profile-and-user-profile/50305):
>
> To help transition listserv and email users to the online forum, I added the following footer to the reply-by-email notification. I thought I would share. The email footer View Thread or reply to this email. Your response will be posted to the site and emailed to the group. Reply to sender privately about this topic. Visit sender’s profile for more info. Update your profile and set your email preferences. View Email Tips for help on posting by email. How to implement Admin → Customize →…

While this worked fine editing the text is now impossible because `topic_title_url_encoded` and `username` are invalid now:

> The following interpolation key(s) are invalid: “username, topic\_title\_url\_encoded”

I suppose that this has to do with the validation (see [Bulk Invite from File resets the Invite Forum Mailer customized text - #16 by tgxworld](https://meta.discourse.org/t/bulk-invite-from-file-resets-the-invite-forum-mailer-customized-text/67606/16)). However i am not sure why username and the title url should not be in the e-mail response.

Additionally, `topic_title_url_encoded` should be [whitelisted](https://github.com/discourse/discourse/blob/1c2d1682ae29c36190c959b827d07e162acccffe/app/models/translation_override.rb#L5-L12) but is still “invalid”.

By the way: Is there a list of (valid?) Interpolation keys?

Thank you very much

---

<div class="post-metadata">

### Author: ![\_fuchs](https://avatars.discourse-cdn.com/v4/letter/_/5f9b8f/32.png) [@\_fuchs](https://meta.discourse.org/u/_fuchs)
#### Post date: [March 13, 2018, 9:41pm UTC](https://meta.discourse.org/t/invalid-interpolation-keys-broken-by-update/82117/3 "2018-03-13T21:41:29Z")

</div>

Workaround:

TL;DR: Just Overreide the value in the Database

##### 1. Make shure the user\_notifications.reply\_by\_email has been customized in some way. (Just add gibblish)

##### 2. Create a Backup just to make shure

##### 3 Modify the Value in the Database

For a Docker Installation acces the Database using

`docker exec -it --user postgres [name of Docker Container] psql discourse`

Obviously replacing the name

Then run

```
UPDATE public.translation_overrides SET value =
'[Desired Text using all Interpolation Keys you want]'
WHERE translation_key = 'user_notifications.reply_by_email' AND locale = 'de';

```

The locale should match obviously.

That’s it. Interpolation keys work fine as long as you dont hit edit for user\_notifications.reply\_by\_email.

---

<div class="post-metadata">

### Author: ![tomtjes](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tomtjes/32/131271_2.png) [@tomtjes](https://meta.discourse.org/u/tomtjes)
#### Post date: [February 11, 2019, 5:46pm UTC](https://meta.discourse.org/t/invalid-interpolation-keys-broken-by-update/82117/4 "2019-02-11T17:46:42Z")

</div>

Once I figured out `[name of Docker Container]` is `app` for standard installations, this worked great.

Question: On the command line, how do you enter linefeeds in the `[Desired Text using all Interpolation Keys you want]`?

I also have an issue with `topic_title_url_encoded`: It doesn’t work as intended in the subject line. Screenshot: ![17](https://global.discourse-cdn.com/meta/original/3X/e/a/ea58a471c569cf2f4a2cc40cca8a6c44be15283f.png)

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [March 1, 2022, 6:37am UTC](https://meta.discourse.org/t/invalid-interpolation-keys-broken-by-update/82117/5 "2022-03-01T06:37:47Z")

</div>


