Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: KirbyRawr on August 01, 2014, 08:26:49 PM
-
Hi, i have all updated (NGUI and Unity) to the latest version, i'm working with a localization file for my game in .csv
It was working perfect, but i don't know if it was the version control or the update, now it's not loading properly.
I debugged the localization (internal script) and it's getting the file, but in the UILocalize script it shows a x, it was working perfectly, maybe i'm missing anything but i bet it's a bug.
I don't have any localization script more ( i deleted the one from ngui folder )
So i don't know what more i need to do, i renamed it, deleted it, redownload it check it for errors but nothing it's wrong.
Cheers
-
You don't have any localization script because you deleted it? Not sure why you did that. Did you mean you deleted Localization.txt? That's the actual data file where localization is stored, and the file you should be updating. Copy the contents from your CSV into that file. The localization file won't get reloaded until you hit Play then stop the game.
-
You don't have any localization script because you deleted it? Not sure why you did that. Did you mean you deleted Localization.txt? That's the actual data file where localization is stored, and the file you should be updating. Copy the contents from your CSV into that file. The localization file won't get reloaded until you hit Play then stop the game.
Hi ArenMook, thanks for the reply, i have the localization scripts, i deleted the localization.txt and the resources folder, and i'm using a .csv file, when i import your txt it works good(i can get the keys from your txt) but it doesn't work with .csv and i don't know why : /
-
Hi ArenMook, thanks for the reply, i have the localization scripts, i deleted the localization.txt and the resources folder, and i'm using a .csv file, when i import your txt it works good(i can get the keys from your txt) but it doesn't work with .csv and i don't know why : /
Okey i fixed it by putting this: Localization.LoadCSV (myCSVFileVariable);
Now it loads the csv in the editor too, it's a little strange but it works so yeah :)
Thanks anyways!
-
Depending on your version of Unity, it may not load "CSV" extension files. It should recognize it if you rename it as TXT, and be sure to place it in the Resources folder.