How to prevent players username to translate when Auto Localization is set to true?

How to prevent players username translating when Auto Localization is set to true?

English (Original)

German (Translated)

Keyboard Keycode translating to German might be a bug? also happens to other languages.
#bug-reports

Translating Dynamic Content was the only thing i could find about this, but i couldn’t understand it.

I have looked everywhere and couldn’t find any solutions.

1 Like

The most I could find is the .AutoLocalize property of the ProximityPrompt, that excludes itself from being automatically translated. I don’t think Roblox supports excluding only the ObjectText or ActionText being excluded from Localization.

I could but I need people to understand what the action text means. If you can, you can read this guide that i couldn’t understand maybe you could understand it? https://create.roblox.com/docs/production/localization/translating-dynamic-content#translating-substrings

2 Likes

Hey, I’m so sorry for this late reply! I got really confused and started to just experiment with LocalisationService, and I believe to have found a quick fix to your situation. I’ll still be going over what the guide had to say.


Not necessarily your solution, but still good to know:

Basically, the Doc you attached is for translating certain parts of a string.

To exclude a string from being automatically translated, all you had to do was to place curly prackets {} around a string and use Translator:FormatByKey() to manually translate the strings that were wrapped in the curly brackets.

This whole complicated process had to be done by:

  • Downloading a spreadsheet and adding the Key value to a certain translation so you could reference it using Translator:FormatByKey(),
  • and THEN using Scripts to manually detect the parameters in the string and replace them with the actual translations.
Spreadsheet in Localisation Page

Editing the spreadsheet


Your Solution:

To put it simply, just wrap your whole ObjectText in curly brackets. That’ll automatically exclude it from being translated:

image

3 Likes

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