# User incorrectly translated a substitution variable name

**URL:** https://meta.discourse.org/t/user-incorrectly-translated-a-substitution-variable-name/100392
**Category:** Support
**Created:** [October 24, 2018, 8:43pm UTC](https://meta.discourse.org/t/user-incorrectly-translated-a-substitution-variable-name/100392 "2018-10-24T20:43:36Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)
#### Post date: [October 24, 2018, 8:43pm UTC](https://meta.discourse.org/t/user-incorrectly-translated-a-substitution-variable-name/100392/1 "2018-10-24T20:43:37Z")

</div>

This issue looks similar to [this issue](https://meta.discourse.org/t/translation-for-system-message-not-being-used/82912), the message override is not being used. On Discourse 2.1.2.

 ![image](https://global.discourse-cdn.com/meta/original/3X/8/e/8e43855d0ad2e77e71cf2a28f127ed952b8446b6.jpeg)

---

<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: [October 25, 2018, 12:32am UTC](https://meta.discourse.org/t/user-incorrectly-translated-a-substitution-variable-name/100392/2 "2018-10-25T00:32:29Z")

</div>

Any thoughts @gerhard?

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [October 25, 2018, 8:29am UTC](https://meta.discourse.org/t/user-incorrectly-translated-a-substitution-variable-name/100392/3 "2018-10-25T08:29:24Z")

</div>

I know @gerhard fixed a bunch of issues with translation overrides recently. Might already been fixed in **2.2.0**.

---

<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: [October 25, 2018, 8:51am UTC](https://meta.discourse.org/t/user-incorrectly-translated-a-substitution-variable-name/100392/4 "2018-10-25T08:51:42Z")

</div>

The problem is that the interpolation key `%{month_year}` has been translated with `%{maand_jaar}`, which makes the translation override invalid. There are checks that should prevent this from happening, so my guess is that the user created the override before we added those checks.

---

<div class="post-metadata">

### Author: ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)
#### Post date: [October 25, 2018, 4:21pm UTC](https://meta.discourse.org/t/user-incorrectly-translated-a-substitution-variable-name/100392/5 "2018-10-25T16:21:47Z")

</div>

Thanks!

The only thing I don’t understand - `%{maand_jaar}` seems to be working well - the text _is_ being replaced with the month and year.

---

<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: [October 25, 2018, 4:41pm UTC](https://meta.discourse.org/t/user-incorrectly-translated-a-substitution-variable-name/100392/6 "2018-10-25T16:41:08Z")

</div>

No, it isn’t. Look at the screenshot of the email you posted. It’s using the English text where it finds the correct interpolation key.

---

<div class="post-metadata">

### Author: ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)
#### Post date: [October 25, 2018, 5:39pm UTC](https://meta.discourse.org/t/user-incorrectly-translated-a-substitution-variable-name/100392/7 "2018-10-25T17:39:18Z")

</div>

You’re - of course - completely right.

---

<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: [October 26, 2018, 12:02am UTC](https://meta.discourse.org/t/user-incorrectly-translated-a-substitution-variable-name/100392/8 "2018-10-26T00:02:39Z")

</div>


