# Change to dashboard/config/locales/en.yml

**URL:** <https://discourse.openondemand.org/t/change-to-dashboard-config-locales-en-yml/2003>\
**Category:** Get Help\
**Tags:** question\
**Created:** [April 7, 2022, 1:11pm UTC](https://discourse.openondemand.org/t/change-to-dashboard-config-locales-en-yml/2003 "2022-04-07T13:11:03Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![bennet](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/bennet/32/333_2.png) [@bennet](https://discourse.openondemand.org/u/bennet)\
**Post date:** [April 7, 2022, 1:11pm UTC](https://discourse.openondemand.org/t/change-to-dashboard-config-locales-en-yml/2003/1 "2022-04-07T13:11:03Z")

</div>

We have some local customizations we would like to make to `/var/www/ood/apps/sys/dashboard/config/locales/en.yml`, but we would rather not modify that file from it’s RPM original but, instead, just override the few text fields we would like to change.

Is that possible to do from `/etc/ood/config/apps/dashboard`? I tried putting `en.yml` there and putting it under `/etc/ood/config/apps/dashboard/config/locales`, but neither succeeded.

Here’s a short, tongue-in-cheek example of what we would like to override, if that helps any.

```nohighlight
en:
  dashboard:
    welcome_html: |
      %{logo_img_tag}
      <p class="lead">OnDemand provides much grooviness.</p>

```

Thanks!

---

<div class="post-metadata">

**Author:** ![travert](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/travert/32/3074_2.png) [@travert](https://discourse.openondemand.org/u/travert)\
**Post date:** [April 7, 2022, 2:45pm UTC](https://discourse.openondemand.org/t/change-to-dashboard-config-locales-en-yml/2003/2 "2022-04-07T14:45:46Z")

</div>

I think you may be able to do this just by changing the path you used.

Instead of `/etc/ood/config/apps/dashboard/config/locales` for the location of your `en.custom.yml` try `/etc/ood/config/locales`.

---

<div class="post-metadata">

**Author:** ![jeff.ohrstrom](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/jeff.ohrstrom/32/136_2.png) [@jeff.ohrstrom](https://discourse.openondemand.org/u/jeff.ohrstrom)\
**Post date:** [April 7, 2022, 2:49pm UTC](https://discourse.openondemand.org/t/change-to-dashboard-config-locales-en-yml/2003/3 "2022-04-07T14:49:56Z")

</div>

Be sure it’s `/etc/ood/config/locales/en.yml`. I think the filename is important, i.e., `en` is the English locale you’re using (as a pose to `fr` or `de`). I dont’ think it’d like `en.custom.yml`.

---

<div class="post-metadata">

**Author:** ![bennet](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/bennet/32/333_2.png) [@bennet](https://discourse.openondemand.org/u/bennet)\
**Post date:** [April 7, 2022, 3:32pm UTC](https://discourse.openondemand.org/t/change-to-dashboard-config-locales-en-yml/2003/4 "2022-04-07T15:32:53Z")

</div>

> [@bennet](#):
>
> ```auto
> en:
> dashboard:
> welcome_html: |
> %{logo_img_tag}
> <p class="lead">OnDemand provides much grooviness.</p>
> 
> ```

Yes, and super cool! Creating `/etc/ood/config/locales/en.yml` and putting in the override elements seems to work. I had to restart both apache and nginx, so if anyone else tries this and it doesn’t work, try that.

One last question related to this. There is an entry in the `en.yml` file for OnDemand 2,

```auto
shell_app_title: "%{cluster_title} Shell Access"

```

In which file in `/etc/ood/config` should that be set? The `cluster_name.yml` file? We have

```auto
v2:
  metadata:
    title: "greatlakes"

```

in ours, but that doesn’t seem to be right.

I hope that last made sense, and thanks, as always, for the great help!

---

<div class="post-metadata">

**Author:** ![travert](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/travert/32/3074_2.png) [@travert](https://discourse.openondemand.org/u/travert)\
**Post date:** [April 7, 2022, 3:36pm UTC](https://discourse.openondemand.org/t/change-to-dashboard-config-locales-en-yml/2003/5 "2022-04-07T15:36:21Z")

</div>

I gave it a try on and it does look like you can name that file `en.custom.yml` and the overrides work in case any future users want to partition the overrides with various names. What is important is the yaml stanzas in the file itself so that it is applied correctly to the language and namespace.

As @bennet pointed out, a restart is needed as well so thanks for pointing that out!

---

<div class="post-metadata">

**Author:** ![travert](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/travert/32/3074_2.png) [@travert](https://discourse.openondemand.org/u/travert)\
**Post date:** [April 7, 2022, 3:48pm UTC](https://discourse.openondemand.org/t/change-to-dashboard-config-locales-en-yml/2003/6 "2022-04-07T15:48:41Z")

</div>

For the `#{cluster_title}` you need the cluster config file in `/etc/ood/config/clusters.d/` with the appropriate cluster name and `.yml` extension.

Then, add the `cluster_name.yml` under `/etc/ood/config/clusters.d` as well and this should pick up the title correctly.

---

<div class="post-metadata">

**Author:** ![bennet](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/bennet/32/333_2.png) [@bennet](https://discourse.openondemand.org/u/bennet)\
**Post date:** [April 7, 2022, 4:06pm UTC](https://discourse.openondemand.org/t/change-to-dashboard-config-locales-en-yml/2003/7 "2022-04-07T16:06:06Z")

</div>

Travis,

We have an /etc/ood/config/clusters.d/greatlakes.yml, and in it we have in it

```auto
v2:
  metadata:
    title: "greatlakes"

```

Is that what you meant? The above will set %{cluster\_title} to ‘greatlakes’.

Or is there supposed to be an entry in that file that explicitly sets %{cluster\_title}?

Sorry for the confusion.

---

<div class="post-metadata">

**Author:** ![travert](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/travert/32/3074_2.png) [@travert](https://discourse.openondemand.org/u/travert)\
**Post date:** [April 7, 2022, 4:50pm UTC](https://discourse.openondemand.org/t/change-to-dashboard-config-locales-en-yml/2003/8 "2022-04-07T16:50:50Z")

</div>

I think that should work.

The main point is to have a file preferably with the cluster name in `/etc/ood/config/clusters.d/` and the `title` inside of that file is what should get picked up by `#{cluster_title}`.

One note, I don’t think the name will be picked up without the `login` also being provided as well.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/osc/original/2X/b/bae70bd0ed39a3ae769c2108155f4cb3e9da8385.png) [@system](https://discourse.openondemand.org/u/system)\
**Post date:** [October 4, 2022, 4:50pm UTC](https://discourse.openondemand.org/t/change-to-dashboard-config-locales-en-yml/2003/9 "2022-10-04T16:50:51Z")

</div>

Closed on October 4, 2022, 4:50pm UTC

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
