Author Topic: Can't get localization to recognize a CSV.  (Read 4025 times)

catlard

  • Newbie
  • *
  • Thank You
  • -Given: 7
  • -Receive: 0
  • Posts: 24
    • View Profile
Can't get localization to recognize a CSV.
« on: September 15, 2014, 03:14:17 AM »
Hey...I've got a localization file that, when I put it in the Resources folder, doesn't get recognized by NGUI, or can't be found in some way. I know the Resources folder is working because I'm using it elsewhere, to load prefabs.

I've never used the localization functions with NGUI before, so I might be doing something else incorrectly. Here's my localization file. Is there anything wrong with it? Why might Unity not be finding it? It's called "Localization.csv".

https://docs.google.com/spreadsheets/d/1SZy-vKIyu1hon74iMbPB7a5S1THv4NlHbW1iwjzDdsQ/edit?usp=sharing

And here is a screenshot of the Unity situation:

http://i.imgur.com/17fn5Au.jpg

S
« Last Edit: September 15, 2014, 03:21:42 AM by catlard »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Can't get localization to recognize a CSV.
« Reply #1 on: September 15, 2014, 04:29:56 AM »
NGUI comes with a file called "Localization.txt" located in NGUI's Resources folder. If you didn't delete that one, then you have two files named the same, and it's not clear which one will be loaded.

catlard

  • Newbie
  • *
  • Thank You
  • -Given: 7
  • -Receive: 0
  • Posts: 24
    • View Profile
Re: Can't get localization to recognize a CSV.
« Reply #2 on: September 15, 2014, 09:42:41 AM »
Thanks! I'm not sure what happened, but it appears to have been resolved. I had two copies of the localization csv, and even though they were the same, I guess it didn't use the first one, but instead didn't find any, if that makes sense. Working well now, though! Cheers.

Cheers,

S