# About Tutor patch

**URL:** <https://discuss.openedx.org/t/about-tutor-patch/7155>\
**Category:** Site Operators\
**Created:** [May 5, 2022, 7:23am UTC](https://discuss.openedx.org/t/about-tutor-patch/7155 "2022-05-05T07:23:49Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![guangyaw](https://avatars.discourse-cdn.com/v4/letter/g/b38774/32.png) [@guangyaw](https://discuss.openedx.org/u/guangyaw)\
**Post date:** [May 5, 2022, 7:23am UTC](https://discuss.openedx.org/t/about-tutor-patch/7155/1 "2022-05-05T07:23:49Z")

</div>

from tutor import hooks

## hooks.Filters.ENV\_PATCHES.add\_item( ( “openedx-lms-common-settings”, “FEATURES[‘SHOW\_HEADER\_LANGUAGE\_SELECTOR’] = True” ) )

Above is the code of the patch for Tutor maple.  
It could show correctly ,but it doesn’t work when I select another language.  
Is there something wrong in my patch?

 ![lang01](https://us1.discourse-cdn.com/flex020/uploads/openedx/original/2X/7/7dc9046695b1c8d8ba39c9284c969bc2ba72f15b.png)

---

<div class="post-metadata">

**Author:** ![sbernesto](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/sbernesto/32/90_2.png) [@sbernesto](https://discuss.openedx.org/u/sbernesto)\
**Post date:** [May 5, 2022, 7:28pm UTC](https://discuss.openedx.org/t/about-tutor-patch/7155/2 "2022-05-05T19:28:38Z")

</div>

hi,

try adding the languages in /admin/dark\_lang/darklangconfig/ and see if that displays the list

---

<div class="post-metadata">

**Author:** ![guangyaw](https://avatars.discourse-cdn.com/v4/letter/g/b38774/32.png) [@guangyaw](https://discuss.openedx.org/u/guangyaw)\
**Post date:** [May 6, 2022, 1:12am UTC](https://discuss.openedx.org/t/about-tutor-patch/7155/3 "2022-05-06T01:12:11Z")

</div>

![s1](https://us1.discourse-cdn.com/flex020/uploads/openedx/original/2X/e/eaba0b7b6e8778056c66532adafe7b4d8063bee4.png)  
I did . My setting is as above.

---

<div class="post-metadata">

**Author:** ![uetuluk](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/uetuluk/32/3015_2.png) [@uetuluk](https://discuss.openedx.org/u/uetuluk)\
**Post date:** [May 6, 2022, 4:34am UTC](https://discuss.openedx.org/t/about-tutor-patch/7155/4 "2022-05-06T04:34:58Z")

</div>

@guangyaw Can you share whether there are any errors in the DevTools Console (for Chrome) when you select a language?

The language select button works as a form that sends the selected language as input. If it fails to submit the form, you will see an error there.

---

<div class="post-metadata">

**Author:** ![guangyaw](https://avatars.discourse-cdn.com/v4/letter/g/b38774/32.png) [@guangyaw](https://discuss.openedx.org/u/guangyaw)\
**Post date:** [May 6, 2022, 5:58am UTC](https://discuss.openedx.org/t/about-tutor-patch/7155/5 "2022-05-06T05:58:21Z")

</div>

![info](https://us1.discourse-cdn.com/flex020/uploads/openedx/original/2X/d/d63d2e8f4d56a453861490a0290fa819e998bc6e.png)  
 ![warning](https://us1.discourse-cdn.com/flex020/uploads/openedx/original/2X/f/fd2acf1fd3adf6034b8cf070a52401a95f9b3326.png)

No error . But warning and information as above.

---

<div class="post-metadata">

**Author:** ![uetuluk](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/uetuluk/32/3015_2.png) [@uetuluk](https://discuss.openedx.org/u/uetuluk)\
**Post date:** [May 6, 2022, 6:59am UTC](https://discuss.openedx.org/t/about-tutor-patch/7155/6 "2022-05-06T06:59:51Z")

</div>

I am sorry but I cannot replicate your issue.

Your `darklangconfig` setting is correct and your plugin is also correct.

I have rewritten the plugin in this format, but I doubt it is a formatting issue.

```python
from tutor import hooks

hooks.Filters.ENV_PATCHES.add_item(
    (
        "openedx-lms-common-settings",
        '''FEATURES["SHOW_HEADER_LANGUAGE_SELECTOR"] = True'''
    )
)

```

---

<div class="post-metadata">

**Author:** ![guangyaw](https://avatars.discourse-cdn.com/v4/letter/g/b38774/32.png) [@guangyaw](https://discuss.openedx.org/u/guangyaw)\
**Post date:** [May 9, 2022, 3:53am UTC](https://discuss.openedx.org/t/about-tutor-patch/7155/7 "2022-05-09T03:53:59Z")

</div>

![e1](https://us1.discourse-cdn.com/flex020/uploads/openedx/original/2X/c/cd877ca5359dc2dd20ee40fa396f2bf8d12e3bbb.png)  
Yes. Even if I change as your sample . The problem is the same .  
Above is my plugins list for reference .
