# 我们绝对无法正确翻译 js.badges.granted\_on！

**URL:** https://meta.discourse.org/t/there-is-no-way-we-could-translate-js-badges-granted-on-correctly/88567
**Category:** Translations
**Created:** [2018 年5 月 28 日 07:20 UTC](https://meta.discourse.org/t/there-is-no-way-we-could-translate-js-badges-granted-on-correctly/88567 "2018-05-28T07:20:18Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### 作者： ![iamntz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/iamntz/32/114670_2.png) [@iamntz](https://meta.discourse.org/u/iamntz)
#### 发布日期： [2018 年5 月 28 日 07:20 UTC](https://meta.discourse.org/t/there-is-no-way-we-could-translate-js-badges-granted-on-correctly/88567/1 "2018-05-28T07:20:18Z")

</div>

I’m trying to translate `js.badges.granted_on` key, but there is a big issue.

In english, the text looks like this:

`granted_on: "Granted %{date}"`

Which can later on can become `Granted 7 days ago` or `Granted 7th april` or whatever. This makes sense.

However, in other languages - romanian in my case - thing doesn’t look that peachy, because we can’t get it right in any cases.

- `Granted 7 days ago` becomes `Acordat acum 19 z`, which is great,
- `Granted 7th april` becomes `Acordat acum 7 aprilie`, which can be roughly be translated back in english to `granted 7th april ago`. Which clearly isn’t _that_ great, because sounds… uhm… dumb 😃

I dug a bit in the code and although there is a `medium_with_ago` key, that doesn’t seems to be used in the badges mechanism.

So, it’s a bug or is something that i miss?

---

<div class="post-metadata">

### 作者： ![iamntz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/iamntz/32/114670_2.png) [@iamntz](https://meta.discourse.org/u/iamntz)
#### 发布日期： [2018 年8 月 21 日 09:31 UTC](https://meta.discourse.org/t/there-is-no-way-we-could-translate-js-badges-granted-on-correctly/88567/3 "2018-08-21T09:31:36Z")

</div>

Bumping this a bit just to mention that the very same issue is present on `User profile -> Seen XXX`, where XXX looks nice on small time period (up to weeks), but fails badly on months.

E.g.:

- `Văzut acum 5 zile` is ok (seen 5 days ago)
- `văzut acum 2 săptămâni` is ok (seen 2 weeks ag)
- `văzut acum 31 mai` is not ok (seen 31 may)

I _think_ this can be solved using a syntax similar to this: [Message Format support for localization](https://meta.discourse.org/t/message-format-support-for-localization/7035).

---

<div class="post-metadata">

### 作者： ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### 发布日期： [2024 年5 月 27 日 12:39 UTC](https://meta.discourse.org/t/there-is-no-way-we-could-translate-js-badges-granted-on-correctly/88567/5 "2024-05-27T12:39:54Z")

</div>

如果问题仍然存在，请重新打开
