# A way to exclude a Widget from localization gathering?

**URL:** <https://forums.unrealengine.com/t/a-way-to-exclude-a-widget-from-localization-gathering/359958>\
**Category:** UI\
**Tags:** unreal-engine, translation, localization, Widget, question, UMG\
**Created:** [June 7, 2016, 1:33pm UTC](https://forums.unrealengine.com/t/a-way-to-exclude-a-widget-from-localization-gathering/359958 "2016-06-07T13:33:23Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![benui](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/benui/32/1145446_2.png) [@benui](https://forums.unrealengine.com/u/benui)\
**Post date:** [June 7, 2016, 1:33pm UTC](https://forums.unrealengine.com/t/a-way-to-exclude-a-widget-from-localization-gathering/359958/1 "2016-06-07T13:33:23Z")

</div>

I’m working on translating a game. We have a lot of widgets with placeholder text that is then replaced in-game. Currently all these placeholder strings are ending up in our .po file.

I know there’s a way of excluding entire directories from being gathered, but is there a way of marking specific Text widgets as “don’t gather” in the editor?

---

<div class="post-metadata">

**Author:** ![Jamie\_Dale](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jamie_dale/32/1165413_2.png) [@Jamie\_Dale](https://forums.unrealengine.com/u/Jamie_Dale)\
**Post date:** [June 8, 2016, 1:45pm UTC](https://forums.unrealengine.com/t/a-way-to-exclude-a-widget-from-localization-gathering/359958/2 "2016-06-08T13:45:45Z")

</div>

There’s no way to selectively mark text as “don’t gather”, however in 4.12 you’re able to set the namespace on a text property and we’ve used that in places to flag placeholder text so that the translators ignore it.

---

<div class="post-metadata">

**Author:** ![benui](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/benui/32/1145446_2.png) [@benui](https://forums.unrealengine.com/u/benui)\
**Post date:** [June 8, 2016, 2:32pm UTC](https://forums.unrealengine.com/t/a-way-to-exclude-a-widget-from-localization-gathering/359958/3 "2016-06-08T14:32:17Z")

</div>

Sounds like another reason to upgrade to 4.12 🙂

Is there a way to skip outputting strings with a certain namespace?  
I guess I could subclass the commandlet and use that to filter by namespace when outputting strings.

---

<div class="post-metadata">

**Author:** ![Jamie\_Dale](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jamie_dale/32/1165413_2.png) [@Jamie\_Dale](https://forums.unrealengine.com/u/Jamie_Dale)\
**Post date:** [June 8, 2016, 5:31pm UTC](https://forums.unrealengine.com/t/a-way-to-exclude-a-widget-from-localization-gathering/359958/4 "2016-06-08T17:31:35Z")

</div>

There’s no way to filter asset strings, although that’s not a bad idea (we allow it for meta-data), however I’d probably rather expose the ability to set the “culture-invariant” flag on the text (which means it would be considered unlocalisable and the gather would ignore it).

---

<div class="post-metadata">

**Author:** ![Jamie\_Dale](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jamie_dale/32/1165413_2.png) [@Jamie\_Dale](https://forums.unrealengine.com/u/Jamie_Dale)\
**Post date:** [August 12, 2016, 8:26pm UTC](https://forums.unrealengine.com/t/a-way-to-exclude-a-widget-from-localization-gathering/359958/5 "2016-08-12T20:26:41Z")

</div>

I have added a “Localized” option for text properties that can be used to set the “culture-invariant” flag. This will be part of 4.14.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_5cc732ea](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_5cc732ea](https://forums.unrealengine.com/u/anonymous_user_5cc732ea)\
**Post date:** [October 26, 2016, 1:44pm UTC](https://forums.unrealengine.com/t/a-way-to-exclude-a-widget-from-localization-gathering/359958/6 "2016-10-26T13:44:05Z")

</div>

Hey Jamie,

I’m not sure what the granularity of this “Localized” option will be,

will it enable me to, say, exclude 1 particular string from the .manifest

or

will it act at class level and not instance - i.e. if we have an FText property we realize we don’t want to localize, it will be easier to set this option than to change to FString, but that’s about it?

Thanks

---

<div class="post-metadata">

**Author:** ![Jamie\_Dale](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jamie_dale/32/1165413_2.png) [@Jamie\_Dale](https://forums.unrealengine.com/u/Jamie_Dale)\
**Post date:** [October 26, 2016, 2:14pm UTC](https://forums.unrealengine.com/t/a-way-to-exclude-a-widget-from-localization-gathering/359958/7 "2016-10-26T14:14:06Z")

</div>

It acts per-instance, each FText property/pin can be marked as not localized.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_5cc732ea](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_5cc732ea](https://forums.unrealengine.com/u/anonymous_user_5cc732ea)\
**Post date:** [October 26, 2016, 3:06pm UTC](https://forums.unrealengine.com/t/a-way-to-exclude-a-widget-from-localization-gathering/359958/8 "2016-10-26T15:06:12Z")

</div>

OK cool, thanks

---

<div class="post-metadata">

**Author:** ![Alan\_Walk](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Alan\_Walk](https://forums.unrealengine.com/u/Alan_Walk)\
**Post date:** [November 8, 2016, 3:29am UTC](https://forums.unrealengine.com/t/a-way-to-exclude-a-widget-from-localization-gathering/359958/9 "2016-11-08T03:29:31Z")

</div>

I had updated to 4.14. Can i set the default value of “Localized” to false?  
So many UMG 's text is a number or temp value.

---

<div class="post-metadata">

**Author:** ![Jamie\_Dale](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jamie_dale/32/1165413_2.png) [@Jamie\_Dale](https://forums.unrealengine.com/u/Jamie_Dale)\
**Post date:** [November 8, 2016, 11:26am UTC](https://forums.unrealengine.com/t/a-way-to-exclude-a-widget-from-localization-gathering/359958/10 "2016-11-08T11:26:46Z")

</div>

No, you can’t, and since it would affect all properties (not just those in UMG), it’s not a setting we’re likely to add either.

---

<div class="post-metadata">

**Author:** ![Alan\_Walk](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Alan\_Walk](https://forums.unrealengine.com/u/Alan_Walk)\
**Post date:** [November 9, 2016, 6:28am UTC](https://forums.unrealengine.com/t/a-way-to-exclude-a-widget-from-localization-gathering/359958/11 "2016-11-09T06:28:43Z")

</div>

Ok, thanks.
