# 为什么我会收到这条消息“\\\[缺少 {{votesCount}} 值\]”

**URL:** <https://meta.discourse.org/t/why-im-getting-this-message-missing-votescount-value/187393>\
**Category:** Support\
**Created:** [2021年四月19日 18:42 UTC](https://meta.discourse.org/t/why-im-getting-this-message-missing-votescount-value/187393 "2021-04-19T18:42:33Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ibrahim\_salem](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ibrahim_salem/32/217422_2.png) [@Ibrahim\_salem](https://meta.discourse.org/u/Ibrahim_salem)\
**Post date:** [2021年四月19日 18:42 UTC](https://meta.discourse.org/t/why-im-getting-this-message-missing-votescount-value/187393/1 "2021-04-19T18:42:33Z")

</div>

![Screen Shot 2021-04-19 at 8.41.43 PM](https://global.discourse-cdn.com/meta/original/3X/e/7/e77ab5d62bcf5cfd0c5ce0dc25570cf5ca9e7720.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:** [2021年四月23日 05:00 UTC](https://meta.discourse.org/t/why-im-getting-this-message-missing-votescount-value/187393/2 "2021-04-23T05:00:58Z")

</div>

也许翻译有误？

---

<div class="post-metadata">

**Author:** ![Ibrahim\_salem](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ibrahim_salem/32/217422_2.png) [@Ibrahim\_salem](https://meta.discourse.org/u/Ibrahim_salem)\
**Post date:** [2021年四月23日 14:05 UTC](https://meta.discourse.org/t/why-im-getting-this-message-missing-votescount-value/187393/3 "2021-04-23T14:05:07Z")

</div>

也许我不小心改动了，但我不记得了……不过……正确的格式应该是这样的：  
التصويتات المؤيدة %{voteCount}

是 voteCount 而不是 votesCount……而且不需要 {{ ……这不是翻译错误，而是格式错误，这里使用的变量也不对。

---

<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:** [2021年四月23日 15:31 UTC](https://meta.discourse.org/t/why-im-getting-this-message-missing-votescount-value/187393/4 "2021-04-23T15:31:57Z")

</div>

不过变量是翻译的一部分，因此如果翻译不正确，可能会包含错误的变量，从而导致此问题。

---

<div class="post-metadata">

**Author:** ![Ibrahim\_salem](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ibrahim_salem/32/217422_2.png) [@Ibrahim\_salem](https://meta.discourse.org/u/Ibrahim_salem)\
**Post date:** [2021年四月23日 16:05 UTC](https://meta.discourse.org/t/why-im-getting-this-message-missing-votescount-value/187393/5 "2021-04-23T16:05:44Z")

</div>

是的，我不得不从翻译部分进行修复……所以没错，这最终是糟糕的翻译。
