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

Bug Localization Not Updating After Some Strings Changed on Android Game Update

Discussion in 'Localization Tools' started by Only4gamers, Aug 19, 2020.

  1. Only4gamers

    Only4gamers

    Joined:
    Nov 8, 2019
    Posts:
    311
    Hello everyone,
    I added localization in my game and it's working correctly in my Android Game. But now when I am updated some localization strings and trying to update my game, changed strings are not changing and still showing old strings in my Android device. In Unity Editor it's showing new changed strings. I even cleared data of my game in Android device but it's not updating new strings.
    Please help.
     
  2. Lukas-Labaj

    Lukas-Labaj

    Joined:
    Nov 22, 2012
    Posts:
    36
    Did you update to new 0.8 version?
     
  3. Lukas-Labaj

    Lukas-Labaj

    Joined:
    Nov 22, 2012
    Posts:
    36
    @karl_jones I found there is the issue in file SmartFormatField.cs. In version 0.8 was removed marking Table as dirty (
    EditorUtility.SetDirty(Table);) in SetIsSmart() and SetValue()
     
    karl_jones likes this.
  4. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    7,845
    It sounds like you need to rebuild your Addressable assets. Try doing a full rebuild
     
    Only4gamers likes this.
  5. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    7,845
    Hmm.
    Thats because we should not need to set it dirty when using Undo.
    Let me check. This could be a SerializeRefernece bug :(
     
    Only4gamers likes this.
  6. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    7,845
    No. @Lukas-Labaj is correct. The tables are not being set dirty. Its a bug in Unity but we were working around it with the SetDirty. I'll try and get a fix out later today
     
    Only4gamers and Lukas-Labaj like this.
  7. Only4gamers

    Only4gamers

    Joined:
    Nov 8, 2019
    Posts:
    311
    Thanks. But which one I should use this time? New Build, Update a previous build or Clean Build?
     
  8. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    7,845
    Doing a New build should work however It sounds like its the bug with set dirty instead. You can either go down to 0.7.1 or wait for 0.8.1 which should be available in around an hour providing nothing goes wrong :rolleyes:
     
    Only4gamers likes this.
  9. Only4gamers

    Only4gamers

    Joined:
    Nov 8, 2019
    Posts:
    311
    But I am already using v0.7.1. And I am afraid my work may lost or I will start getting new bugs if I update.
     
  10. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    7,845
    I assume you are using source control? Make sure you have a backup, ideally in source control and then when 0.8.1 comes out do the update. The bug in 0.8.0 won't lose your old work, it just won't save any new changes you make. We have just pushed a fix for this in 0.8.1. 0.8.1 contains a lot of fixes to existing bugs in 0.7.1. Just happens that this one slipped through but we now have a test so it wont come back.

    Edit: 0.8.1 should now be available
     
    Last edited: Aug 19, 2020
    Only4gamers likes this.