Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Question How to add 'Space' to AllowedSelectorChars?

Discussion in 'Localization Tools' started by RZGames_Jethro, Jun 8, 2023.

  1. RZGames_Jethro

    RZGames_Jethro

    Joined:
    Jul 6, 2017
    Posts:
    87
    i have a pattern "Room {room number}" which keeps throwing the error:

    Code (CSharp):
    1. ParsingErrors: The format string has 1 issue:
    2. '0x20': There are trailing operators in the selector
    3. In: "Room {room number}"
    on further investigation the space between room and number seems to be the one causing the error, so i added whitespace to the AllowedSelectorChars
    but somehow it doesn't take that into account, is there any special char that needs to be used for whitespace?
    upload_2023-6-8_14-20-35.png
     
  2. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    7,820
    We don't support whitespace in selector's, I suggest you add something to combine the words into 1, such as a hyphen. room-number
     
  3. RZGames_Jethro

    RZGames_Jethro

    Joined:
    Jul 6, 2017
    Posts:
    87
    could it be it was supported in 0.8?
    Problem is the system was implemented by a different programmer over a year ago, so i'm having trouble to find where the {room number} comes from... should it be in some string table or set on the prefab or...? :D
     
  4. RZGames_Jethro

    RZGames_Jethro

    Joined:
    Jul 6, 2017
    Posts:
    87
    ok found it in the localization sheet!
     
    karl_jones likes this.