Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: Strange Behavior (Translation missing on device)

Strange Behavior (Translation missing on device) 4 months 1 week ago #3150

  • adamliu
  • adamliu's Avatar
  • Offline
  • New Member
  • Posts: 14
  • Karma: 0
Hi. I am using the latest version of I2 Localization (2.8.7) and Unity 2018.1.6. Today I updated /added a few new terms to my game and it all works as expected in Unity Editor. However, when I deploy the game on device (both an iPhone 6s Plus and iPad Pro), the terms I modified/updated are missing all translations except the default language, while existing terms works just fine. For example I have add a new term which is a sprite type. When I changed the language in the game (with I2 's "I2.Loc.LocalizationManager.CurrentLanguageCode"), the UI Image with this term has changed to a plain white block, which is the same as when the sprite is missing.
What's more interesting is that if I keep the language as the one that has missing translations and force close the game then restart the game, the current translation of the term of this language will become correctly again, where other languages are still missing. So in a strange way, I can make all languages of the abnormal terms behave correctly by switching to that language and terminate the app and restart..... Also, some translations of the newly added terms are just not updated on device (still showing the translations before the update), as if there is some sort of "cache" that stores the old translations . This is very very strange and I cannot figure out why... Please help as it's affecting my soon to be updated game, thank you.
The administrator has disabled public write access.

Strange Behavior (Translation missing on device) 4 months 1 week ago #3151

  • Frank
  • Frank's Avatar
  • Offline
  • Administrator
  • Posts: 1139
  • Thank you received: 243
  • Karma: 72
Hi,
What you are describing looks like a setup issue with the Google Live Synchronization.

When the "Update Frequency" is set to anything other than NEVER in the Google Spreadsheet Tab, the plugin automatically checks the Spreadsheet at runtime to see if its different from the LanguageSource Data. If its different, then it downloads the spreadsheet in the device and uses that data instead of the one from the LanguageSource.

That allows you to change translations without having to do a build, and have all your players automatically download the new translations.
However, you have to be careful while developing. If you add terms to your LanguageSource or change translations, then you have to Export that data to the Spreadsheet, otherwise, the plugin will see the spreadsheet as out of sync and try downloading it.

Most likely you are also getting a warning in the console showing that the Spreadsheet is out of sync and need to be synchronized.

To solve the issue:
- Export your I2Languages.prefab to Google.
- (optional) Uninstall the game from your device to clear all the Downloaded data.
- Build and deploy the game again

It should work as expected.

Alternatively, you can set the Google Update Frequency to NEVER to skip the Google Live Synchronization feature.

Hope that helps,
Frank
Are you :-) Give I2L 5 stars!
Are you :-( Please lets us know how to improve it!
To get the betas as soon as they are ready, check this out
The administrator has disabled public write access.

Strange Behavior (Translation missing on device) 4 months 1 week ago #3153

  • adamliu
  • adamliu's Avatar
  • Offline
  • New Member
  • Posts: 14
  • Karma: 0
Hi Frank, thank you for your reply. When the problem happens, the Google Update Frequency is already set to "NEVER" (I have been using I2 Loc for a few years so I'm kinda aware of this caveat, so I set it to "NEVER" at the very first days of the development. My game was published online half a year ago and has been updated more than 5 times by far and the issue I described never happened until recently I updated to the latest version of I2 and Unity (2018)). However, I do notice that there is a new "Password" option for the Google Spreadsheet in the latest version of I2 and I filled the password in and Exported the translations to Google a few times (only to use Google Translate to save time. Maybe this new password option can be the source of the problem? (Maybe the plugin will still use the cached/online translation data before I added the password to the plugin in some unknown conditions even if the option is set to Never?)
The administrator has disabled public write access.

Strange Behavior (Translation missing on device) 4 months 4 days ago #3157

  • studenman
  • studenman's Avatar
  • Offline
  • Senior Member
  • Posts: 62
  • Thank you received: 1
  • Karma: 1
I'm getting similar reports from my users after updating to 2.8.7. Translations getting lost. Perhaps this is something to do with the auto-unloading of languages stuff?
Follow Tiny Bubbles Development:
Twitter | Facebook | Web
The administrator has disabled public write access.

Strange Behavior (Translation missing on device) 4 months 3 days ago #3158

  • studenman
  • studenman's Avatar
  • Offline
  • Senior Member
  • Posts: 62
  • Thank you received: 1
  • Karma: 1
I found a user with this problem and I'm about to send her a TestFlight build that's the same as her current build except the "unloading of languages" is disabled. Hopefully this will stop the crashing on her iPhone due to missing translations.

I've seen this once before when I had Google docs refresh enabled and devices started having missing translations. I ended up setting them to never refresh which seemed to fix the problem. I think something is broken with caching languages out to temporary files (on certain devices). To be honest, these features just don't seem bullet-proof enough yet for commercial products.
Follow Tiny Bubbles Development:
Twitter | Facebook | Web
The administrator has disabled public write access.

Strange Behavior (Translation missing on device) 4 months 2 days ago #3159

  • studenman
  • studenman's Avatar
  • Offline
  • Senior Member
  • Posts: 62
  • Thank you received: 1
  • Karma: 1
I can confirm from two testers that turning off Language Unloading has fixed the problems and I've submitted a new build to the App Store for review. This bug is causing problems for hundreds of users and the bad reviews are streaming in! Hopefully it won't cause any long-term damage to our review scores! :angry:
Follow Tiny Bubbles Development:
Twitter | Facebook | Web
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Time to create page: 0.194 seconds
Template by JoomlaShine