# Overrulen vertaling blijft hangen na verpluraliseren

**URL:** https://meta.discourse.org/t/overridden-translation-sticking-after-being-pluralized/279377
**Category:** Bug
**Tags:** translation
**Created:** [18 september 2023 om 11:38 UTC](https://meta.discourse.org/t/overridden-translation-sticking-after-being-pluralized/279377 "2023-09-18T11:38:33Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Don](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/don/32/228726_2.png) [@Don](https://meta.discourse.org/u/Don)
#### Post date: [18 september 2023 om 11:38 UTC](https://meta.discourse.org/t/overridden-translation-sticking-after-being-pluralized/279377/1 "2023-09-18T11:38:33Z")

</div>

Hello 👋

This happened with me recently with `js.badges.awarded` string. My site is in Hungarian language.

When the `js.badges.awarded` was implemented I translated it on `/admin/customize/site_texts` and when the [pluralized version is overrided it](https://github.com/discourse/discourse/commit/1af33fdb713096e9d1b7aad8af9f1748995c3f65) the not pluralized version `js.badges.awarded` was stucked and was not findable on `/admin/customize/site_texts`.  
Because the available strings on `/admin/customize/site_texts` was only the `js.badges.awarded.one` and `js.badges.awarded.other`

I am not sure why it’s happened but maybe because the `js.badges.awarded` was not contains interpolation keys and the new pluralized one contains the `%{number}`. 🤔

So it seems if the text is overridden then the updated version will not replace this and the previously overridden text will keep.

I removed this in rails.

```ruby
TranslationOverride.where(translation_key: "js.badges.awarded").delete_all

```

By the way it’s usually works like if a string is translated and then the pluralized version comes then on Hungarian language it use the `other` format.

I am not sure it’s a bug? And that it happens with the pluralized version it’s maybe can happen without pluralized change. 🤔

Thank you 🙂

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [2 augustus 2024 om 07:02 UTC](https://meta.discourse.org/t/overridden-translation-sticking-after-being-pluralized/279377/2 "2024-08-02T07:02:21Z")

</div>

I think there’s been a bit of work on plurals recently that may have resolved this. Can you still repro?

---

<div class="post-metadata">

### Author: ![Don](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/don/32/228726_2.png) [@Don](https://meta.discourse.org/u/Don)
#### Post date: [2 augustus 2024 om 07:07 UTC](https://meta.discourse.org/t/overridden-translation-sticking-after-being-pluralized/279377/3 "2024-08-02T07:07:02Z")

</div>

Nope, but this is not something I can repro without those kind of changes but I think this issue is probably related with: [Issue with pluralized (count) translation override](https://meta.discourse.org/t/issue-with-pluralized-count-translation-override/316019) I think maybe that was the issue I couldn’t able to edit the plurals correctly. Now it works! 🙂

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [2 augustus 2024 om 07:10 UTC](https://meta.discourse.org/t/overridden-translation-sticking-after-being-pluralized/279377/4 "2024-08-02T07:10:00Z")

</div>

Awesome. 🙂 I’ll close this off for now as that sounds promising, but let us know if you hit it again and I’ll reopen it. 👍

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [2 augustus 2024 om 07:10 UTC](https://meta.discourse.org/t/overridden-translation-sticking-after-being-pluralized/279377/5 "2024-08-02T07:10:03Z")

</div>


