# Discobot translation missing error

**URL:** <https://meta.discourse.org/t/discobot-translation-missing-error/64429>\
**Category:** Product Support\
**Created:** [13 ביוני,‏ 2017,‏ 3:21pm UTC](https://meta.discourse.org/t/discobot-translation-missing-error/64429 "2017-06-13T15:21:55Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)\
**Post date:** [14 ביוני,‏ 2017,‏ 12:22am UTC](https://meta.discourse.org/t/discobot-translation-missing-error/64429/11 "2017-06-14T00:22:07Z")

</div>

> [@codinghorror](#):
>
> the substitutions are at best optional parameters.

The substitutions are not optional in the case of translation strings with params.

> [@codinghorror](#):
>
> if it’s too hard to fix right

I don’t necessary think it should be called an error but I do think that `translation missing` message can be improved to display the keys that are missing. Also the error that the gem raises is named `I18n::MissingTranslationData` so the message should probable have been `translation data missing` instead of just `translation missing`.

I just re-read through the guides and a nice thing that we can add is to test the user’s customized string first before allowing it to be saved. We can do something like

```plaintext
[13] pry(main)> begin
[13] pry(main)* I18n.t('test.same_key', some: 'haha', raise: true)  
[13] pry(main)* rescue I18n::MissingTranslationData  
[13] pry(main)* puts "o noes you didn't customize the text correctly"  
[13] pry(main)* end  
o noes you didn't customize the text correctly

```

---

_[View the full topic](https://meta.discourse.org/t/discobot-translation-missing-error/64429)._
