Welcome, Guest
Username: Password: Remember me

TOPIC: multiple spreadsheet files

multiple spreadsheet files 11 months 1 week ago #2500

  • simon
  • simon's Avatar
  • Offline
  • New Member
  • Posts: 1
  • Karma: 0

i have a couple of games that all have base terms that are the same for all apps ("game over", "next level", etc.). additionaly every game has its own specific terms.
would it be possible to refere multiple spreadsheet files? So the app "App1" will have "I2 Loc Base Localization" and "I2 Loc App1 Localization" and "App2" "I2 Loc Base Localization" and "I2 Loc App2 Localization".

That would be very handy.

The administrator has disabled public write access.

multiple spreadsheet files 11 months 1 week ago #2503

  • Frank
  • Frank's Avatar
  • Offline
  • Administrator
  • Posts: 1123
  • Thank you received: 240
  • Karma: 70
Yes, you can use multiple Languages Sources.

There are two ways of doing that:
1- Keep I2Languages.prefab for your global terms (i.e. terms used everywhere), and add an object to your scenes with a LanguageSource component.
That is the method used in the Example scenes. The terms inside those language source will only be available in those scenes, so you can add to them, only the things you need there.
And you can have different spreadsheets for each of them.

2- Create more global sources.
By default I2Languages.perfab is the only global source. It is loaded at startup and it is available in all scenes. But you can add more sources by adding their name to the Assets\I2\Localization\Scripts\LocalizationManager.cs line 210

For example, to add the source "I2Languages_Base.prefab", modify the GlobalSources array like this:
public static string[] GlobalSources = { "I2Languages", "I2Languages_Base" };

Then, duplicate the I2Languages.prefab and rename it.
At startup, both will be loaded.

Hope that helps,
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
Last Edit: 11 months 1 week ago by Frank.
The administrator has disabled public write access.
The following user(s) said Thank You: simon
Time to create page: 0.197 seconds