Search Unity

Bug StringTableEntry IsSmart property does not behave like a boolean variable

Discussion in 'Localization Tools' started by eileensunblink, Oct 14, 2022.

  1. eileensunblink

    eileensunblink

    Joined:
    Apr 12, 2021
    Posts:
    13
    Problem 1: Set IsSmart = true two times, and the SmartFormatTag will be added twice.

    Problem2 :
    1. Set IsSmart = true two times
    2. Set IsSmart = false
    3. Access IsSmart's getter
    Result:
    IsSmart is still true
    Expect:
    setting IsSmart = false would cause the getter to return false

    I had a string importer that was programmatically importing strings, and it would set the IsSmart property on each string every import even if they were not new strings. I ended up with hundreds of SmartFormatTag on my string table entries.

    If there's a better place to post this bug, let me know
     
  2. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    8,288
  3. eileensunblink

    eileensunblink

    Joined:
    Apr 12, 2021
    Posts:
    13
  4. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    8,288
  5. eileensunblink

    eileensunblink

    Joined:
    Apr 12, 2021
    Posts:
    13
    Oops, I missed your first response before posting my last reply. I have filed a bug and the issue is IN-19839

    Hope it helps, and thank you very much for your engagement on this forum!
     
    karl_jones likes this.
  6. eileensunblink

    eileensunblink

    Joined:
    Apr 12, 2021
    Posts:
    13
    FYI @karl_jones , this just got resolved by Unity QA as "by design".... not sure how the incoming bug review process goes but thought I'd poke the thread just in case you care to take a look at that. I won't bother you further. Thanks!
     
  7. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    8,288
    That's strange. I fixed this a few weeks ago so it's likely just an issue in the bug tracker.