Author Topic: Localization.instance.Get and currentLanguage in 3.6.6?  (Read 6788 times)

laurentl

  • Full Member
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 188
    • View Profile
    • McDROID
Localization.instance.Get and currentLanguage in 3.6.6?
« on: July 01, 2014, 03:12:55 AM »
What are they replaced with?

(Attempting to upgrade from 2.7.0 to 3.6.6.)

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Localization.instance.Get and currentLanguage in 3.6.6?
« Reply #1 on: July 01, 2014, 04:50:45 AM »
Localization.Get, Localization.currentLanguage.

Just get rid of the 'instance' part.

laurentl

  • Full Member
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 188
    • View Profile
    • McDROID
Re: Localization.instance.Get and currentLanguage in 3.6.6?
« Reply #2 on: July 01, 2014, 05:11:29 AM »
Gotchat, I'm almost there, no more script errors and now time to fix the entire NGUI, and it's completely broken, the proportions didn't autofix apparently. Any suggestion?

Also, now that Localize is an abstract class, how do I tell it what file correspond to what language?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Localization.instance.Get and currentLanguage in 3.6.6?
« Reply #3 on: July 02, 2014, 03:19:48 AM »
NGUI can only auto-fix active game objects that are present in the scene, so you will need to drag in every prefab you have and make sure it's enabled, let NGUI do its thing (and use the upgrade tools to replace old sprites with new ones), then Apply the changes.