# 英文区域缺少翻译？

**URL:** <https://meta.discourse.org/t/translation-missing-in-english-locale/84019>\
**Category:** Bug\
**Created:** [2018年三月28日 07:39 UTC](https://meta.discourse.org/t/translation-missing-in-english-locale/84019 "2018-03-28T07:39:00Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![tophee](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tophee/32/73406_2.png) [@tophee](https://meta.discourse.org/u/tophee)\
**Post date:** [2018年三月28日 07:39 UTC](https://meta.discourse.org/t/translation-missing-in-english-locale/84019/1 "2018-03-28T07:39:00Z")

</div>

I made some minor changes to the body (not the subject) of the `invite mailer` template (`admin/customize/email_templates/invite_mailer`) and saved them. Then I clicked on “revert changes”. Now the subject line of the template says

> translation missing: en.invite\_mailer.subject\_template

My site locale is English (and so is my user locale, if that matters). I’m on v2.0.0.beta4 +170

Edit: ~~I can’t seem to reproduce this. Not sure what happened.~~ I can’t reproduce this on my other discourse instance which is on v2.0.0.beta4 +104 🤷‍♂️

---

<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:** [2018年三月28日 08:49 UTC](https://meta.discourse.org/t/translation-missing-in-english-locale/84019/2 "2018-03-28T08:49:11Z")

</div>

I’ve noticed that bug too. Entering a valid translation and reverting it one more time usually fixes it.

I [tried fixing it in the past](https://github.com/discourse/discourse/pull/5208), but my solution had other side effects. It’s still on my list of things I’d like to fix.

---

<div class="post-metadata">

**Author:** ![wolftune](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/wolftune/32/103569_2.png) [@wolftune](https://meta.discourse.org/u/wolftune)\
**Post date:** [2018年四月19日 18:32 UTC](https://meta.discourse.org/t/translation-missing-in-english-locale/84019/3 "2018-04-19T18:32:45Z")

</div>

I’m seeing the same bug in v2.0.0.beta5 +6

I’m not able to fix it or find a workaround. I’m seeing this for _all_ customized text. “Revert” always turns it into a translation-missing message. So, I’m finding no simple way to revert to default text (since reversion isn’t working, I’m not even clear whether it’s _supposed_ to return to default text versus to the previously-saved edition).

---

<div class="post-metadata">

**Author:** ![tophee](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tophee/32/73406_2.png) [@tophee](https://meta.discourse.org/u/tophee)\
**Post date:** [2018年四月19日 19:17 UTC](https://meta.discourse.org/t/translation-missing-in-english-locale/84019/4 "2018-04-19T19:17:23Z")

</div>

> [@wolftune](#):
>
> I’m not even clear whether it’s supposed to return to default text versus to the previously-saved edition

“Revert” always reverts to default (or rather: it should).

---

<div class="post-metadata">

**Author:** ![wolftune](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/wolftune/32/103569_2.png) [@wolftune](https://meta.discourse.org/u/wolftune)\
**Post date:** [2018年四月19日 19:30 UTC](https://meta.discourse.org/t/translation-missing-in-english-locale/84019/5 "2018-04-19T19:30:56Z")

</div>

> [@tophee](#):
>
> “Revert” always reverts to default (or rather: it should).

Thanks, that’s what I’d expect (the other behavior I guessed about could be called “undo” instead of “revert” if it ever were to exist).

I assume as a workaround there’s some way to access / look-up the default for any entry and be able to just paste that in until the bug is fixed…?

---

<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:** [2018年四月19日 20:41 UTC](https://meta.discourse.org/t/translation-missing-in-english-locale/84019/6 "2018-04-19T20:41:31Z")

</div>

Restarting the Docker container should work and remove the cached translation errors.

---

<div class="post-metadata">

**Author:** ![sebastien](https://avatars.discourse-cdn.com/v4/letter/s/f475e1/32.png) [@sebastien](https://meta.discourse.org/u/sebastien)\
**Post date:** [2018年五月24日 05:27 UTC](https://meta.discourse.org/t/translation-missing-in-english-locale/84019/7 "2018-05-24T05:27:25Z")

</div>

Hi Guys,

When I try to revert a change on a text field, I get an error saying “translation missing: en.js.trust\_level”

 ![image](https://global.discourse-cdn.com/meta/original/3X/1/d/1ddb0cb08f400dd1fb9999d2a3f377e0b925c75c.png)

If I click on “Save”, it saves “translation missing: en.js.trust\_level.”

Not really big deal.

---

<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:** [2018年五月24日 05:37 UTC](https://meta.discourse.org/t/translation-missing-in-english-locale/84019/8 "2018-05-24T05:37:25Z")

</div>

Is this happening for all the translations or is it specific to `js.trust_level`? Also what’s your site locale?

---

<div class="post-metadata">

**Author:** ![sebastien](https://avatars.discourse-cdn.com/v4/letter/s/f475e1/32.png) [@sebastien](https://meta.discourse.org/u/sebastien)\
**Post date:** [2018年五月24日 05:37 UTC](https://meta.discourse.org/t/translation-missing-in-english-locale/84019/9 "2018-05-24T05:37:53Z")

</div>

Our site is in english and it is happening on all settings.

---

<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:** [2018年五月24日 05:39 UTC](https://meta.discourse.org/t/translation-missing-in-english-locale/84019/10 "2018-05-24T05:39:13Z")

</div>

Are you on latest Discourse version? If not can you update your site from server console:

```plaintext
cd /var/discourse
./launcher rebuild app

```

I can’t repro this issue on my local dev environment.

---

<div class="post-metadata">

**Author:** ![sebastien](https://avatars.discourse-cdn.com/v4/letter/s/f475e1/32.png) [@sebastien](https://meta.discourse.org/u/sebastien)\
**Post date:** [2018年五月24日 05:39 UTC](https://meta.discourse.org/t/translation-missing-in-english-locale/84019/11 "2018-05-24T05:39:36Z")

</div>

Tried that already 🙂

![image](https://global.discourse-cdn.com/meta/optimized/3X/2/1/218e70dd2e5cd95457d73e22a6aeaadb97c445db_2_690x36.png)

---

<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:** [2018年五月24日 05:47 UTC](https://meta.discourse.org/t/translation-missing-in-english-locale/84019/12 "2018-05-24T05:47:36Z")

</div>

Are you seeing any relevant errors in `/logs`? Also, when you edit the field to “Trust Level” and click Save Changes, are the changes getting saved correctly?

---

<div class="post-metadata">

**Author:** ![sebastien](https://avatars.discourse-cdn.com/v4/letter/s/f475e1/32.png) [@sebastien](https://meta.discourse.org/u/sebastien)\
**Post date:** [2018年五月24日 07:15 UTC](https://meta.discourse.org/t/translation-missing-in-english-locale/84019/13 "2018-05-24T07:15:29Z")

</div>

Hum I can’t find interesting logs. Here is a short screen capture

 ![issue](https://global.discourse-cdn.com/meta/original/3X/7/6/76f86cac8e558dc62b3c845c9664dc3b11ee82c9.gif)

---

<div class="post-metadata">

**Author:** ![nawthor](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nawthor/32/71115_2.png) [@nawthor](https://meta.discourse.org/u/nawthor)\
**Post date:** [2018年五月24日 07:59 UTC](https://meta.discourse.org/t/translation-missing-in-english-locale/84019/14 "2018-05-24T07:59:53Z")

</div>

This happened to as well. If you just revert it and refresh the page it should go back to the default.

---

<div class="post-metadata">

**Author:** ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)\
**Post date:** [2018年五月24日 15:52 UTC](https://meta.discourse.org/t/translation-missing-in-english-locale/84019/15 "2018-05-24T15:52:41Z")

</div>

I assume this is related:

> [@Translation missing in english locale?](https://meta.discourse.org/t/translation-missing-in-english-locale/84019):
>
> I made some minor changes to the body (not the subject) of the invite mailer template (admin/customize/email\_templates/invite\_mailer) and saved them. Then I clicked on “revert changes”. Now the subject line of the template says translation missing: en.invite\_mailer.subject\_template My site locale is English (and so is my user locale, if that matters). I’m on v2.0.0.beta4 +170 Edit: I can’t seem to reproduce this. Not sure what happened. I can’t reproduce this on my other discourse instance …

I can reproduce this on my hosted Discourse forum. I’ve never seen the issue in my development environment.

---

<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:** [2018年十月1日 15:48 UTC](https://meta.discourse.org/t/translation-missing-in-english-locale/84019/16 "2018-10-01T15:48:23Z")

</div>

Should be fixed by [FIX: async reload of locales could result in missing translations · discourse/discourse@e2770bc · GitHub](https://github.com/discourse/discourse/commit/e2770bc1c41742abaa976e366beb02a88c63708f)

---

<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:** [2018年十月3日 15:48 UTC](https://meta.discourse.org/t/translation-missing-in-english-locale/84019/17 "2018-10-03T15:48:26Z")

</div>

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
