# How can i lock the language change in widget?

**URL:** <https://forums.unrealengine.com/t/how-can-i-lock-the-language-change-in-widget/472318>\
**Category:** UI\
**Tags:** boolean, language, unreal-engine, Blueprint, question, UMG\
**Created:** [October 2, 2020, 7:25pm UTC](https://forums.unrealengine.com/t/how-can-i-lock-the-language-change-in-widget/472318 "2020-10-02T19:25:19Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shedels](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/shedels/32/1121823_2.png) [@Shedels](https://forums.unrealengine.com/u/Shedels)\
**Post date:** [October 2, 2020, 7:25pm UTC](https://forums.unrealengine.com/t/how-can-i-lock-the-language-change-in-widget/472318/1 "2020-10-02T19:25:19Z")

</div>

_ **Hello, how can i make player use only one language while player writing message in widget? Without the possibility of changing ofc.** _

---

<div class="post-metadata">

**Author:** ![Tuerer](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tuerer/32/1008648_2.png) [@Tuerer](https://forums.unrealengine.com/u/Tuerer)\
**Post date:** [October 2, 2020, 9:55pm UTC](https://forums.unrealengine.com/t/how-can-i-lock-the-language-change-in-widget/472318/2 "2020-10-02T21:55:53Z")

</div>

I don’t think UE can override the operating system’s input, but you can only allow certain symbols in your text boxes. For instance, by doing something like this:

 ![317041-chars.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/2/f/a2fc495ca3789762f8d127a92584817e9c9d388e.png)

Hope it makes sense what’s going on there. If not, don’t hesitate to ask about anything.

Edit: I don’t know if there’s a native way to mask strings via blueprints, I couldn’t find anything about it.

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [October 2, 2020, 10:04pm UTC](https://forums.unrealengine.com/t/how-can-i-lock-the-language-change-in-widget/472318/3 "2020-10-02T22:04:24Z")

</div>

I’m actually curious what you mean by this. Can you produce an example? As in, I can no longer type in English and _must_ use Danish instead? So the word _bread_ is not accepted but _brød_ is?

I assume you’re after forcing a language restriction in a chat? You’d need to compare each word against a dictionary I guess. In which case you could load a dictionary into a data table and fetch-compare onCommited’s results and then reject / ignore them.

But you can’t possibly mean what I think you mean…

---

<div class="post-metadata">

**Author:** ![Shedels](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/shedels/32/1121823_2.png) [@Shedels](https://forums.unrealengine.com/u/Shedels)\
**Post date:** [October 3, 2020, 4:45am UTC](https://forums.unrealengine.com/t/how-can-i-lock-the-language-change-in-widget/472318/4 "2020-10-03T04:45:48Z")

</div>

I assume you’re after forcing a language restriction in a chat? - yes, almost right.  
Player open the widget and can type in only one language, that’s all i mean.  
But i believe there is another way, maybe just lock the buttons on the keyboard?

---

<div class="post-metadata">

**Author:** ![Shedels](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/shedels/32/1121823_2.png) [@Shedels](https://forums.unrealengine.com/u/Shedels)\
**Post date:** [October 3, 2020, 2:14pm UTC](https://forums.unrealengine.com/t/how-can-i-lock-the-language-change-in-widget/472318/5 "2020-10-03T14:14:05Z")

</div>

Thank you, that helped!
