Search Unity

Bug Localize string event component keeps resetting

Discussion in 'Localization Tools' started by Lavaeolous, Dec 21, 2022.

  1. Lavaeolous

    Lavaeolous

    Joined:
    Sep 12, 2017
    Posts:
    5
    Hello,
    i have a weird issue with localized strings. I'm following this tutorial (https://phrase.com/blog/posts/localizing-unity-games-official-localization-package/) and got the localization of strings working for some default buttons without a problem last week.

    This week i wanted to explore this further, but now everytime i pick a string, the component resets to a blank state.

    I've tested the following, all without resolving the issue:
    1. Try it on a blank canvas with a default TMP text
    2. Trying it in a new blank scene, a new canvas and a default TMP text
    3. Re-creating locales and/or table collections
    4. Reverting to a prior commit where the localization worked
    5. Reverting to a commit before i added localization and re-installing everything
    In the screencast you can see me picking a string, which is then shown correctly in the component. But as soon as i close the window, the component resets.



    Any help would be greatly appreciated.

    Unity 2021.3.5f1
    Localization Package 1.3.2
     
  2. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    8,293
    Could you try updating to 1.4.2?
    You may need to modify the manifest.json file in the Packages folder to set the version manually.
    If that doesn't work try changing it to use the legacy selector by going into the preferences.
     
  3. Lavaeolous

    Lavaeolous

    Joined:
    Sep 12, 2017
    Posts:
    5

    Attached Files:

  4. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    8,293
    It's in the preferences, not project settings.
     
  5. Lavaeolous

    Lavaeolous

    Joined:
    Sep 12, 2017
    Posts:
    5
    I've looked there as well, but there is nothing named legacy selector.
    upload_2022-12-21_11-55-18.png

    If you mean the search selector, thats already set to classic:
    upload_2022-12-21_12-0-2.png
     
  6. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    8,293
    The string search picker. Disable that
     
  7. Lavaeolous

    Lavaeolous

    Joined:
    Sep 12, 2017
    Posts:
    5
    Ah, thank you! That's working!
     
  8. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    8,293
  9. Lavaeolous

    Lavaeolous

    Joined:
    Sep 12, 2017
    Posts:
    5
    Hm, i was too eager, it does set the string reference without resetting the component, but the localization in play mode is not happening.

    For testing purposes i made a completely new project and set that up.
    The error persists even there. I'll try and see if updating to the current LTS version helps.

    Edit: The localization not working after disabling `String Search Picker` was a user error on my end, as i forgot to reset the update string box.

    For the issue regarding the component resetting when `String Search Picker` is activated i'm currently uploading a bug report. This persisted even after uninstalling Unity, reinstalling everything and creating a blank sample scene with one localized element, so i've attached this sample project to the bug report.
     
    Last edited: Dec 21, 2022
    karl_jones likes this.