# How to fix translation errors

**URL:** https://meta.discourse.org/t/how-to-fix-translation-errors/64717
**Category:** Bug
**Created:** [June 18, 2017, 10:07pm UTC](https://meta.discourse.org/t/how-to-fix-translation-errors/64717 "2017-06-18T22:07:36Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![karasardelis](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/karasardelis/32/120699_2.png) [@karasardelis](https://meta.discourse.org/u/karasardelis)
#### Post date: [June 18, 2017, 10:07pm UTC](https://meta.discourse.org/t/how-to-fix-translation-errors/64717/1 "2017-06-18T22:07:36Z")

</div>

Hi there,  
I’m trying to install discourse and use it in my native language (Greek) but there are errors in the translation file which i would like to fix. The worst errors that i can’t find a way to fix are variable names (like the one used in the welcome message) which were translated to my language and now the welcome message (and not only) arrives broken.

Example:

 ![2017-06-19%20010617-karasardelis%20%20%20%20%20%20www.strouga.gr%20-%20mailstrouga.gr%20-zpsuc74ubyn](https://global.discourse-cdn.com/meta/original/4X/a/a/5/aa508a5363a4935a9ee3971079ef78adb5f11f3a.png)  
How do i fix translation errors in general?

---

<div class="post-metadata">

### Author: ![karasardelis](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/karasardelis/32/120699_2.png) [@karasardelis](https://meta.discourse.org/u/karasardelis)
#### Post date: [June 18, 2017, 10:11pm UTC](https://meta.discourse.org/t/how-to-fix-translation-errors/64717/2 "2017-06-18T22:11:21Z")

</div>

If i try to replace any variable with it’s original name in English, i get the following error message:

 ![2017-06-19%20011005-%20-zpshth0iwoi](https://global.discourse-cdn.com/meta/original/4X/d/5/c/d5ccad29db1af59ea63475b4bb08f0c04f74e28e.png)

---

<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: [June 18, 2017, 10:13pm UTC](https://meta.discourse.org/t/how-to-fix-translation-errors/64717/3 "2017-06-18T22:13:26Z")

</div>

That is because the keys have to be in English (the values in {}).

Good catch on adding this validation @tgxworld!

---

<div class="post-metadata">

### Author: ![karasardelis](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/karasardelis/32/120699_2.png) [@karasardelis](https://meta.discourse.org/u/karasardelis)
#### Post date: [June 18, 2017, 10:14pm UTC](https://meta.discourse.org/t/how-to-fix-translation-errors/64717/4 "2017-06-18T22:14:26Z")

</div>

> [@codinghorror](#):
>
> the keys have to be in English

Thanks for stepping in… yes i know that, but i can’t fix it. Can you help?

---

<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: [June 18, 2017, 11:33pm UTC](https://meta.discourse.org/t/how-to-fix-translation-errors/64717/5 "2017-06-18T23:33:59Z")

</div>

Sure @tgxworld can help.

---

<div class="post-metadata">

### Author: ![karasardelis](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/karasardelis/32/120699_2.png) [@karasardelis](https://meta.discourse.org/u/karasardelis)
#### Post date: [June 19, 2017, 12:44am UTC](https://meta.discourse.org/t/how-to-fix-translation-errors/64717/6 "2017-06-19T00:44:37Z")

</div>

OK i’ll wait for @tgxworld to step in and help…

---

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [June 19, 2017, 12:57am UTC](https://meta.discourse.org/t/how-to-fix-translation-errors/64717/7 "2017-06-19T00:57:52Z")

</div>

What are the keys that you’re having trouble translating?

---

<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: [June 19, 2017, 1:09am UTC](https://meta.discourse.org/t/how-to-fix-translation-errors/64717/8 "2017-06-19T01:09:45Z")

</div>

It is in the screenshot in the first post. Those substitution words should not be translated.

---

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [June 19, 2017, 1:14am UTC](https://meta.discourse.org/t/how-to-fix-translation-errors/64717/9 "2017-06-19T01:14:45Z")

</div>

I was requesting for the translation keys for the translation not the interpolation keys. Anyway I think I’ll just write a script to find all the broken translations.

---

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [June 19, 2017, 3:51am UTC](https://meta.discourse.org/t/how-to-fix-translation-errors/64717/10 "2017-06-19T03:51:44Z")

</div>

Ok I’ve added a test to check for translated interpolation keys in our translation files whenever we pull down new translations

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

All the broken translations have been fixed on Transifex as well.

---

<div class="post-metadata">

### Author: ![karasardelis](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/karasardelis/32/120699_2.png) [@karasardelis](https://meta.discourse.org/u/karasardelis)
#### Post date: [June 19, 2017, 5:43am UTC](https://meta.discourse.org/t/how-to-fix-translation-errors/64717/11 "2017-06-19T05:43:53Z")

</div>

> [@tgxworld](#):
>
> All the broken translations have been fixed on Transifex as well

This is good news @tgxworld Thanks!!! What should we do to fix our discourse installations now?

---

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [June 19, 2017, 5:45am UTC](https://meta.discourse.org/t/how-to-fix-translation-errors/64717/12 "2017-06-19T05:45:11Z")

</div>

Upgrade to the lastest version 🙂

---

<div class="post-metadata">

### Author: ![karasardelis](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/karasardelis/32/120699_2.png) [@karasardelis](https://meta.discourse.org/u/karasardelis)
#### Post date: [June 19, 2017, 5:46am UTC](https://meta.discourse.org/t/how-to-fix-translation-errors/64717/13 "2017-06-19T05:46:18Z")

</div>

I would also like to actively join the Greek translation team on Transifex… i already joined the team but at the moment i can only submit translated keys for review. Thanks.

---

<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: [June 19, 2017, 5:59am UTC](https://meta.discourse.org/t/how-to-fix-translation-errors/64717/14 "2017-06-19T05:59:13Z")

</div>

> [@karasardelis](#):
>
> i already joined the team but at the moment i can only submit translated keys for review.

I just promoted you to Reviewer for Greek (Greece) team. Thanks for keeping Greek translations up-to-date. ❤

---

<div class="post-metadata">

### Author: ![karasardelis](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/karasardelis/32/120699_2.png) [@karasardelis](https://meta.discourse.org/u/karasardelis)
#### Post date: [June 19, 2017, 6:07am UTC](https://meta.discourse.org/t/how-to-fix-translation-errors/64717/15 "2017-06-19T06:07:15Z")

</div>

I did the upgrade and although some keys seem to be fixed, “invite\_forum\_mailer.text\_body\_template” still have translated variables. Can you check that please?

---

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [June 19, 2017, 6:09am UTC](https://meta.discourse.org/t/how-to-fix-translation-errors/64717/16 "2017-06-19T06:09:16Z")

</div>

Which branch of DIscourse are you on?

---

<div class="post-metadata">

### Author: ![karasardelis](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/karasardelis/32/120699_2.png) [@karasardelis](https://meta.discourse.org/u/karasardelis)
#### Post date: [June 19, 2017, 6:10am UTC](https://meta.discourse.org/t/how-to-fix-translation-errors/64717/17 "2017-06-19T06:10:45Z")

</div>

I don’t know… how do i check that?

My version is v1.9.0.beta2 +86

---

<div class="post-metadata">

### Author: ![karasardelis](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/karasardelis/32/120699_2.png) [@karasardelis](https://meta.discourse.org/u/karasardelis)
#### Post date: [June 19, 2017, 8:36pm UTC](https://meta.discourse.org/t/how-to-fix-translation-errors/64717/18 "2017-06-19T20:36:10Z")

</div>

> [@tgxworld](#):
>
> Which branch of DIscourse are you on?

version: tests-passed

---

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [June 19, 2017, 11:41pm UTC](https://meta.discourse.org/t/how-to-fix-translation-errors/64717/19 "2017-06-19T23:41:38Z")

</div>

![](https://global.discourse-cdn.com/meta/original/3X/8/9/8994ae80917327cacd609208812b1f3d2f0b5aac.png)

Hmm I’m pretty sure the interpolation keys have been corrected. Maybe try rebuilding again?

---

<div class="post-metadata">

### Author: ![karasardelis](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/karasardelis/32/120699_2.png) [@karasardelis](https://meta.discourse.org/u/karasardelis)
#### Post date: [June 20, 2017, 12:16am UTC](https://meta.discourse.org/t/how-to-fix-translation-errors/64717/20 "2017-06-20T00:16:09Z")

</div>

> [@tgxworld](#):
>
> Maybe try rebuilding again

I rebuilded again but this template still has a problem…

 ![](https://global.discourse-cdn.com/meta/original/4X/2/0/8/208cd1420d429c0479390eb7755f94c3f1188ca4.png)

[Next page](https://meta.discourse.org/t/how-to-fix-translation-errors/64717.md?page=2)
