Welcome, Guest
Username: Password: Remember me

TOPIC: Translations disappear in playmode

Translations disappear in playmode 2 months 1 week ago #3094

  • _kiu_
  • _kiu_'s Avatar
  • Offline
  • New Member
  • Posts: 4
  • Karma: 0
I'm confused... just added Chinese Language to my app. Fonts and Translations are swapped beautifully in Editor Mode.

Every time I enter playmode however, all translations but German (2nd Language) disappear from the language source, as well as the font settings (which are also only left for German). When I stop, everything is back again. Something seems to be corrupted, but I don't know what to do...

The Language Source is connected to google docs for maintenance reasons but set to never update.
Using Unity 2018.1.1 and latest I2 Localisation version (maybe something went wrong with the update?)

Best,
-martin
The administrator has disabled public write access.

Translations disappear in playmode 2 months 1 week ago #3095

  • Frank
  • Frank's Avatar
  • Offline
  • Administrator
  • Posts: 1110
  • Thank you received: 234
  • Karma: 68
That's the correct behavior.

When you start playing, I2 Localization unloads all languages from memory, and only keeps loaded the one you are using. Thats why you see all translations to be gone except for the one you need.
Then, if you change language, the plugin automatically loads the new language and unloads the previous one.

Said that, if you download 2.8.7 from the beta folder, it tries to avoid this confusion by only doing that in the devices, and not in the editor. In the Languages Tab there is now a new setting that controls that. By default is "OnlyInDevice", but can be changed to "InEditorAndDevice" or "Never". 'Never' just skips the unloading and always keeps the languages in memory.
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.

Translations disappear in playmode 2 months 1 week ago #3097

  • _kiu_
  • _kiu_'s Avatar
  • Offline
  • New Member
  • Posts: 4
  • Karma: 0
Thank you for the quick answer. The problem was that at the same time, the translation wasn't working (no text was displayed) and I was desperately searching for reasons.

The culprit: The Chinese Font ran a tad bit higher than the western counterparts, so the translation would disappear in each Text field that wasn't set to overflow.

Keep up the good work, your plugin is the one I use in pretty much every project and it runs pretty stable.

Best,
-martin
The administrator has disabled public write access.
Time to create page: 0.250 seconds
Colors