# Auto localization affects variables

**URL:** <https://forums.unrealengine.com/t/auto-localization-affects-variables/2111498>\
**Category:** Issues and Bug Reporting\
**Tags:** unreal-editor-for-fortnite, fortnite-creative, fortnite\
**Created:** [November 8, 2024, 3:32pm UTC](https://forums.unrealengine.com/t/auto-localization-affects-variables/2111498 "2024-11-08T15:32:41Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![GameExp](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/gameexp/32/1046494_2.png) [@GameExp](https://forums.unrealengine.com/u/GameExp)\
**Post date:** [November 8, 2024, 3:32pm UTC](https://forums.unrealengine.com/t/auto-localization-affects-variables/2111498/1 "2024-11-08T15:32:41Z")

</div>

### Summary

Auto localization localizes variables as well.

### Please select what you are reporting on:

Unreal Editor for Fortnite

### What Type of Bug are you experiencing?

Verse

### Steps to Reproduce

1. Create a customizable message, for example: `TimerMsg<localizes>(Time : string) : message = "{Time}"`
2. Build auto-localization
3. Launch a session

### Expected Result

The message should be in the expected language with the variable not affected: “01:25”

### Observed Result

The result is “{Temps}” (French example)

### Platform(s)

All

---

<div class="post-metadata">

**Author:** ![Mineblo](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mineblo/32/1203575_2.png) [@Mineblo](https://forums.unrealengine.com/u/Mineblo)\
**Post date:** [February 5, 2025, 4:45pm UTC](https://forums.unrealengine.com/t/auto-localization-affects-variables/2111498/3 "2025-02-05T16:45:22Z")

</div>

Seems to be a duplicate of this [Auto Translation translate verse text incorrectly](https://forums.unrealengine.com/t/auto-translation-translate-verse-text-incorrectly/2101567)

---

<div class="post-metadata">

**Author:** ![FinestCreative](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/finestcreative/32/1034971_2.png) [@FinestCreative](https://forums.unrealengine.com/u/FinestCreative)\
**Post date:** [February 5, 2025, 4:46pm UTC](https://forums.unrealengine.com/t/auto-localization-affects-variables/2111498/4 "2025-02-05T16:46:21Z")

</div>

Just spend 2 hours of my day enabling localization and auto translation on all projects and publishing them. Now gotta spend another 2h to revert after finding out this feature does not work. I don’t understand how Epic can push a feature that is incomplete. This blocks me from making my island more accessible (and I believe I am not the only creator having this issue), which is exactly what Fortnite wants us creators to do.

For me it ruins everything with text markup like HUD device messages and my leaderboard submission popup device text.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/9/6/39651419d48902ea3fe56e67f5609e9a492b3dd0.jpeg)

---

<div class="post-metadata">

**Author:** ![Mineblo](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mineblo/32/1203575_2.png) [@Mineblo](https://forums.unrealengine.com/u/Mineblo)\
**Post date:** [February 5, 2025, 4:49pm UTC](https://forums.unrealengine.com/t/auto-localization-affects-variables/2111498/5 "2025-02-05T16:49:05Z")

</div>

Would it be possible to put most of the text that shouldn’t be translated through a String To Message Function like the “\<Default\>” part etc. Since StringToMessage Functions do not get actually translated

---

<div class="post-metadata">

**Author:** ![FinestCreative](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/finestcreative/32/1034971_2.png) [@FinestCreative](https://forums.unrealengine.com/u/FinestCreative)\
**Post date:** [February 5, 2025, 4:52pm UTC](https://forums.unrealengine.com/t/auto-localization-affects-variables/2111498/6 "2025-02-05T16:52:40Z")

</div>

> [@Mineblo](#):
>
> unction like t

What do you mean? This is my verse now:  
Popup.SetDescriptionText(Message(“Key: {XorEncrypt(Score)} {IntToBitString(CurrentSaveDataVersion)}\</\>\nMap: {MapCode}\</\>\nName: “,Agent,”\nScore: {ScoreString}\</\>\n\nScreenshot this (Windows + Shift + R)”))

I have the same issue with HUDs

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/6/2/762ebb172bbdbf663747c8f041a5d5957682680b.jpeg)

---

<div class="post-metadata">

**Author:** ![Mineblo](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mineblo/32/1203575_2.png) [@Mineblo](https://forums.unrealengine.com/u/Mineblo)\
**Post date:** [February 5, 2025, 5:09pm UTC](https://forums.unrealengine.com/t/auto-localization-affects-variables/2111498/7 "2025-02-05T17:09:02Z")

</div>

Would something like this work? Where you put your Localized words ahead of time and use an StM function for all other aspects you don’t want altered

> [@FinestCreative](#):
>
> Popup.SetDescriptionText(Message(“Key: {XorEncrypt(Score)} {IntToBitString(CurrentSaveDataVersion)}\</\>\nMap: {MapCode}\</\>\nName: “,Agent,”\nScore: {ScoreString}\</\>\n\nScreenshot this (Windows + Shift + R)”))

Also I don’t see any kind of formatting elements on the comment aside from the \</\>

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/7/a/37a38509554ff76e28c3e6665c4875286dcc8b09.png)

---

<div class="post-metadata">

**Author:** ![Mineblo](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mineblo/32/1203575_2.png) [@Mineblo](https://forums.unrealengine.com/u/Mineblo)\
**Post date:** [February 5, 2025, 5:43pm UTC](https://forums.unrealengine.com/t/auto-localization-affects-variables/2111498/8 "2025-02-05T17:43:52Z")

</div>

Just tested with Formatting styles mixed and it seemed to work, Correctly translating the intended text while leaving the rest intact

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/3/c/03cc57aef559270311be07339841ebf304c7adea.jpeg)

Here’s the final code

```auto
MtM<localizes>(Mes:message,Mes2:message):message="{Mes}{Mes2}"
StM<localizes>(ABCDEF:string):message="{ABCDEF}"
operator'+'<public>(Message1:message,Message2:message):message=MtM(Message1,Message2)
StrKey<localizes>:message="Key"
StrMap<localizes>:message="Map"
StrName<localizes>:message="Name"
StrScore<localizes>:message="Score"
StrScreenshot<localizes>:message="Screenshot This"
track_manager := class(creative_device):

    OnBegin<override>()<suspends>:void=
        Test:message=StrKey+StM(":<Header2> 111111 101 </>\n")+StrMap+StM(":<Header2> 1111-1111-1111</>\n")+StrName+StM(":<Header2> NAMEHERE</>\n")+StrScore+StM(":<Header2> 00000</>\n\n<Default>")+StrScreenshot+StM("(Windows + Shift + R)</>")
        PopUp2.SetDescriptionText(Test)
        PopUp2.Show()

```

---

<div class="post-metadata">

**Author:** ![FinestCreative](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/finestcreative/32/1034971_2.png) [@FinestCreative](https://forums.unrealengine.com/u/FinestCreative)\
**Post date:** [February 5, 2025, 6:38pm UTC](https://forums.unrealengine.com/t/auto-localization-affects-variables/2111498/9 "2025-02-05T18:38:41Z")

</div>

Checking thx

---

<div class="post-metadata">

**Author:** ![FinestCreative](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/finestcreative/32/1034971_2.png) [@FinestCreative](https://forums.unrealengine.com/u/FinestCreative)\
**Post date:** [February 6, 2025, 5:20pm UTC](https://forums.unrealengine.com/t/auto-localization-affects-variables/2111498/10 "2025-02-06T17:20:18Z")

</div>

I just figured out the timer\_device has no SetText function so I think I have to scrap my plans. Do you know if there is a way to turn off localization. I turned everything off in the island settings but it stil translates

---

<div class="post-metadata">

**Author:** ![Mineblo](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mineblo/32/1203575_2.png) [@Mineblo](https://forums.unrealengine.com/u/Mineblo)\
**Post date:** [February 6, 2025, 5:31pm UTC](https://forums.unrealengine.com/t/auto-localization-affects-variables/2111498/11 "2025-02-06T17:31:47Z")

</div>

You can press the flag next to the box and disable localization

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/b/c/1bc51e02e5e2f2e37f370628d656aaa74d5f2e4b.png)

---

<div class="post-metadata">

**Author:** ![Bug-Reporter](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/bug-reporter/32/1223650_2.png) [@Bug-Reporter](https://forums.unrealengine.com/u/Bug-Reporter)\
**Post date:** [February 6, 2025, 7:54pm UTC](https://forums.unrealengine.com/t/auto-localization-affects-variables/2111498/12 "2025-02-06T19:54:00Z")

</div>

FORT-856247 has been ‘Closed’ as a duplicate of an existing known issue.
