# Issue with badge translate

**URL:** <https://meta.discourse.org/t/issue-with-badge-translate/57518>\
**Category:** Support\
**Created:** [2017年二月17日 00:40 UTC](https://meta.discourse.org/t/issue-with-badge-translate/57518 "2017-02-17T00:40:00Z")\
**Posts on this page:** 14\
**Page:** 2

<div class="post-metadata">

**Author:** ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)\
**Post date:** [2017年二月18日 18:31 UTC](https://meta.discourse.org/t/issue-with-badge-translate/57518/21 "2017-02-18T18:31:40Z")

</div>

I went to Admin → Customize → Text and changed “Anniversary” to “TestName”

 ![](https://global.discourse-cdn.com/meta/original/3X/4/8/484965539508827f11f0a9efb23df3c206ccfe10.png)

I then changed Icon back to `fa-clock-o` and the name back to “Anniversary”

The icon changed back OK, but the name is still “TestName” on the public Badges page even though the Admin page shows the value as “Anniversary”

I’m not sure which, but I think either a scheduled sidekiq job will need to run or a rebuild will need to be run. Else it’s a Bug (though I did not see any error messages in the console and the network pane didn’t have any fail headers)

---

<div class="post-metadata">

**Author:** ![YesYesiAmKamil](https://avatars.discourse-cdn.com/v4/letter/y/6a8cbe/32.png) [@YesYesiAmKamil](https://meta.discourse.org/u/YesYesiAmKamil)\
**Post date:** [2017年二月18日 18:37 UTC](https://meta.discourse.org/t/issue-with-badge-translate/57518/22 "2017-02-18T18:37:47Z")

</div>

Nah, i cannot change name of badge even if i trying to name it in english. I think this a bug. I’m trying to rebuild app and clear my cache but there is no effect:(

---

<div class="post-metadata">

**Author:** ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)\
**Post date:** [2017年二月18日 18:50 UTC](https://meta.discourse.org/t/issue-with-badge-translate/57518/23 "2017-02-18T18:50:29Z")

</div>

IIRC, this seems oddly familiar to the YAML issues I found prior with the Topic/Post Reply buttons, where due to keys missing the saving of said translation fails.

@Falco, do you think that may be the case here? My sandbox server is down right now and I’ve got to be running out soon so I really don’t have time to throw something up to validate my thoughts this weekend.

---

<div class="post-metadata">

**Author:** ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)\
**Post date:** [2017年二月18日 19:17 UTC](https://meta.discourse.org/t/issue-with-badge-translate/57518/24 "2017-02-18T19:17:35Z")

</div>

> [@cpradio](#):
>
> due to keys missing the saving of said translation fails.

That sounds like a probable cause.

@YesYesiAmKamil if you try changing the name for “editor” which has all 3 translations - `name`, `description` and `long_description` does that work?

---

<div class="post-metadata">

**Author:** ![YesYesiAmKamil](https://avatars.discourse-cdn.com/v4/letter/y/6a8cbe/32.png) [@YesYesiAmKamil](https://meta.discourse.org/u/YesYesiAmKamil)\
**Post date:** [2017年二月18日 19:24 UTC](https://meta.discourse.org/t/issue-with-badge-translate/57518/25 "2017-02-18T19:24:35Z")

</div>

No, i’m trying to change “Editor” to “Editor 1” in Russian translate and this is not working.  
P.S. I’ve already edit the icon of Editor badge a few days ago. As i say — there is a sirious dependence between the fact that you edit default icon to custom and the fact that you try to change a badge title after that.

---

<div class="post-metadata">

**Author:** ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)\
**Post date:** [2017年二月18日 20:22 UTC](https://meta.discourse.org/t/issue-with-badge-translate/57518/26 "2017-02-18T20:22:19Z")

</div>

Yes, I think it is a Bug.

- changed the locale to Russian
- changed the Editor Badge Icon
- changed the Editor Badge Name
- did _not_ change the First Mention Badge Icon
- changed the First Mention Badge Name

 ![](https://global.discourse-cdn.com/meta/original/3X/4/9/497e3cfabe14663650c1d745c75123203e66763d.png)

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

 ![](https://global.discourse-cdn.com/meta/original/3X/1/6/16a282cd9da9c9e14005deecf1ac644a9acd1770.png)

---

<div class="post-metadata">

**Author:** ![YesYesiAmKamil](https://avatars.discourse-cdn.com/v4/letter/y/6a8cbe/32.png) [@YesYesiAmKamil](https://meta.discourse.org/u/YesYesiAmKamil)\
**Post date:** [2017年二月18日 20:26 UTC](https://meta.discourse.org/t/issue-with-badge-translate/57518/27 "2017-02-18T20:26:03Z")

</div>

That’s a good news! What i should do know? It’s a bug of translation?

---

<div class="post-metadata">

**Author:** ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)\
**Post date:** [2017年二月18日 21:13 UTC](https://meta.discourse.org/t/issue-with-badge-translate/57518/28 "2017-02-18T21:13:18Z")

</div>

I’d hold off on doing anything more until someone more familiar with the code has a chance to look into it.

I doubt if your situation is all that common so the problem has not surfaced before.  
i.e.

- non-default locale
- Badge Icon changed
- attempt to change Badge Name

But there is definitely something going on. I went to see if I could repro in Spanish and discovered the Russian has become “stuck”

 ![](https://global.discourse-cdn.com/meta/original/3X/7/9/7986e2c1432e3400238556696f85e68fbd4fb0e4.png) 

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

---

<div class="post-metadata">

**Author:** ![YesYesiAmKamil](https://avatars.discourse-cdn.com/v4/letter/y/6a8cbe/32.png) [@YesYesiAmKamil](https://meta.discourse.org/u/YesYesiAmKamil)\
**Post date:** [2017年二月18日 21:16 UTC](https://meta.discourse.org/t/issue-with-badge-translate/57518/29 "2017-02-18T21:16:14Z")

</div>

Thank you!  
I hope that developers will make a fix.

---

<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:** [2017年二月20日 13:40 UTC](https://meta.discourse.org/t/issue-with-badge-translate/57518/31 "2017-02-20T13:40:21Z")

</div>

Thanks @YesYesiAmKamil for the report and @Mittineague for the reproduction steps.

This fixes both issues 🍒

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

As it turns out, if you’ve changed the default locale in the site settings, changing any of the system badges would overwrite their “`name`” with the localized name which breaks all the translation overrides (because we use the name of the badge as the key of the translation string).

---

<div class="post-metadata">

**Author:** ![YesYesiAmKamil](https://avatars.discourse-cdn.com/v4/letter/y/6a8cbe/32.png) [@YesYesiAmKamil](https://meta.discourse.org/u/YesYesiAmKamil)\
**Post date:** [2017年二月20日 13:48 UTC](https://meta.discourse.org/t/issue-with-badge-translate/57518/32 "2017-02-20T13:48:03Z")

</div>

Sorry, i’m absolule dummy in all that things. You sent a page from Github, so what i should do now?  
This issue will be fixed in one of the next release of Discourse or i should do some changes through the Terminal?

---

<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:** [2017年二月20日 13:54 UTC](https://meta.discourse.org/t/issue-with-badge-translate/57518/33 "2017-02-20T13:54:18Z")

</div>

You will need to rebuild your Discourse.

SSH into your server and then do

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

```

---

<div class="post-metadata">

**Author:** ![YesYesiAmKamil](https://avatars.discourse-cdn.com/v4/letter/y/6a8cbe/32.png) [@YesYesiAmKamil](https://meta.discourse.org/u/YesYesiAmKamil)\
**Post date:** [2017年二月20日 13:57 UTC](https://meta.discourse.org/t/issue-with-badge-translate/57518/34 "2017-02-20T13:57:12Z")

</div>

Wow, thanks! I will try to do that.

---

<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:** [2017年二月20日 19:41 UTC](https://meta.discourse.org/t/issue-with-badge-translate/57518/35 "2017-02-20T19:41:22Z")

</div>

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

[上一頁](https://meta.discourse.org/t/issue-with-badge-translate/57518.md?page=1)
