# Site goes blank if you override translation for js.groups.index.title

**URL:** <https://meta.discourse.org/t/site-goes-blank-if-you-override-translation-for-js-groups-index-title/54732>\
**Category:** Bug\
**Created:** [2016年十二月24日 05:28 UTC](https://meta.discourse.org/t/site-goes-blank-if-you-override-translation-for-js-groups-index-title/54732 "2016-12-24T05:28:54Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lutz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lutz/32/65103_2.png) [@Lutz](https://meta.discourse.org/u/Lutz)\
**Post date:** [2016年十二月24日 05:28 UTC](https://meta.discourse.org/t/site-goes-blank-if-you-override-translation-for-js-groups-index-title/54732/1 "2016-12-24T05:28:54Z")

</div>

The german translation of the menu entry was missing for the new groups directory. I changed the text for “js.groups.index.title” from “Groups” to “Gruppen” in the admin panel. After that, my page was just a blank white page. I solved the problem by deleting the row in the translation\_overrides table and restarting the app.

Changing enable\_group\_directory from true to false does not hide the menu item. If you click on the menu item after deactivating the group directory, an error message appears.

`Uncaught TypeError: Cannot create property 'title' on string 'Gruppen' Url: https://forum.mydomain.com/assets/ember_jquery-60dedd1dca1d8b8ce48b6d0087db3b96f3149b9b5af2d0c7c6357967d29031fb.js Line`

```
TypeError: Cannot create property 'title' on string 'Gruppen'
    at https://forum.mydomain.com/assets/application-6a15d48d4a3953d8f99e1334a510eb044b493a93411cd6e48c2f985894235425.js:42:3468
    at Array.forEach (native)
    at Object.initialize (https://forum.mydomain.com/assets/application-6a15d48d4a3953d8f99e1334a510eb044b493a93411cd6e48c2f985894235425.js:42:3145)
    at Object.test.n.initialize (https://forum.mydomain.com/assets/application-6a15d48d4a3953d8f99e1334a510eb044b493a93411cd6e48c2f985894235425.js:1:20924)
    at https://forum.mydomain.com/assets/ember_jquery-60dedd1dca1d8b8ce48b6d0087db3b96f3149b9b5af2d0c7c6357967d29031fb.js:4:28944
    at e.each (https://forum.mydomain.com/assets/ember_jquery-60dedd1dca1d8b8ce48b6d0087db3b96f3149b9b5af2d0c7c6357967d29031fb.js:4:13681)
    at e.topsort (https://forum.mydomain.com/assets/ember_jquery-60dedd1dca1d8b8ce48b6d0087db3b96f3149b9b5af2d0c7c6357967d29031fb.js:4:13176)
    at e.topsort (https://forum.mydomain.com/assets/ember_jquery-60dedd1dca1d8b8ce48b6d0087db3b96f3149b9b5af2d0c7c6357967d29031fb.js:4:12584)
    at i._runInitializer (https://forum.mydomain.com/assets/ember_jquery-60dedd1dca1d8b8ce48b6d0087db3b96f3149b9b5af2d0c7c6357967d29031fb.js:4:29123)
    at i.runInstanceInitializers (https://forum.mydomain.com/assets/ember_jquery-60dedd1dca1d8b8ce48b6d0087db3b96f3149b9b5af2d0c7c6357967d29031fb.js:4:28889)

```

---

<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:** [2016年十二月24日 05:53 UTC](https://meta.discourse.org/t/site-goes-blank-if-you-override-translation-for-js-groups-index-title/54732/2 "2016-12-24T05:53:26Z")

</div>

Is this related to your work @tgxworld?

---

<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:** [2016年十二月24日 13:03 UTC](https://meta.discourse.org/t/site-goes-blank-if-you-override-translation-for-js-groups-index-title/54732/3 "2016-12-24T13:03:09Z")

</div>

This is also a duplicate of  
[https://meta.discourse.org/t/using-a-in-customize-broke-discourse-even-after-restore/54620](https://meta.discourse.org/t/using-a-in-customize-broke-discourse-even-after-restore/54620)

---

<div class="post-metadata">

**Author:** ![claas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/claas/32/71725_2.png) [@claas](https://meta.discourse.org/u/claas)\
**Post date:** [2016年十二月27日 19:08 UTC](https://meta.discourse.org/t/site-goes-blank-if-you-override-translation-for-js-groups-index-title/54732/4 "2016-12-27T19:08:41Z")

</div>

> [@Lutz](#):
>
> js.groups.index.title

I reproduced this (by setting `js.groups.index.title` to “Gruppen” via the interface) and found:

```plaintext
$ rails c
$ I18n.t('js.groups.index', :locale => 'en')
=> {:title=>"Groups", :empty=>"There are no visible groups."}
$ I18n.t('js.groups.index.title', :locale => 'en')
=> "Groups"
$ I18n.t('js.groups.index', :locale => 'de')
=> "Gruppen"
I18n.t('js.groups.index.title', :locale => 'de')
=> "Gruppen"

```

---

<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:** [2016年十二月29日 06:10 UTC](https://meta.discourse.org/t/site-goes-blank-if-you-override-translation-for-js-groups-index-title/54732/5 "2016-12-29T06:10:16Z")

</div>

Can you try upgrading to latest? I can’t reproduce this so it might have been an error in one of the commits I made while working on the groups page.

---

<div class="post-metadata">

**Author:** ![Lutz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lutz/32/65103_2.png) [@Lutz](https://meta.discourse.org/u/Lutz)\
**Post date:** [2016年十二月29日 06:14 UTC](https://meta.discourse.org/t/site-goes-blank-if-you-override-translation-for-js-groups-index-title/54732/6 "2016-12-29T06:14:14Z")

</div>

Ok, seems to be resolved after Upgrading to v1.7.0.beta11 +2  
Thank you!

---

<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:** [2016年十二月29日 06:15 UTC](https://meta.discourse.org/t/site-goes-blank-if-you-override-translation-for-js-groups-index-title/54732/7 "2016-12-29T06:15:00Z")

</div>


