Search Unity

Bug LocalizeStringEvent.RegisterChangeHandler() always overwrites StringReference.Arguments on 0.11

Discussion in 'Localization Tools' started by tomtanak, Apr 16, 2021.

  1. tomtanak

    tomtanak

    Joined:
    Mar 24, 2020
    Posts:
    30
    When a LocalizedString is set to LocalizeStringEvent.StringReference, its Arguments are always overwritten by LocalizeStringEvent.RegisterChangeHandler() on Localization 0.11 (perhaps since 0.10).
    LocalizeStringEvent.m_FormatArguments is private so that it cannot be set by C# scripts and there seems to be no way to format LocalizeStringEvent.StringReference with arguments passed by scripts.
    Is this an intentional change?
     
  2. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    8,297
    Hi,
    No this is a bug. We have already fixed it and it will be in the next release.
     
  3. tomtanak

    tomtanak

    Joined:
    Mar 24, 2020
    Posts:
    30
    Thank you, it's nice to hear that.
    Any plan of a patch release including its fix?
     
  4. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    8,297
    Yeah we have a few fixes we want to land and then will try and push out an earlier patch release.
     
  5. tomtanak

    tomtanak

    Joined:
    Mar 24, 2020
    Posts:
    30
    It's nice to hear again!
    I'm looking forward it.
    Thank you.
     
    karl_jones likes this.
  6. tomtanak

    tomtanak

    Joined:
    Mar 24, 2020
    Posts:
    30
    Hi.
    I updated the localization package to 0.11.1-preivew, but the code in question is still the same.
    Is 0.11.1 the patch release you mentioned above?
    Or are you planning any other patch?
     
  7. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    8,297
    No that fix will be on 0.12.0. The patch 0.11.1 was for a single fix
     
  8. tomtanak

    tomtanak

    Joined:
    Mar 24, 2020
    Posts:
    30
    I understand.
    I'll roll the package back to 0.10.0 to get around the problem.
    Thank you!