This script parses CSV files to use with the new GUI, it’s based on the NGUI plugin but it doesn’t contain any piece of code of that (I wrote my own csv parser).
Actual Features:
-Accept CSV files (You can select the file you want, no need to be on a resources folder).
-Accept as many languages as you want.
-Very intuitive and clean.
-Preview system.
-Localization Functions (Like IkariLocalization.Get(nameOfKey)).
-You can change the language at runtime.
-The previews will remain even if you close the editor.
Screenshots:
-My CSV document in Google Docs:
-Gifs:
-Preview System:
I’m planning to release it to the asset store at low price (Like 5$ the first two weeks) let me know what do you guys think.
Updates:
-Now the scripts have the same name but they are using different namespaces Ikari.Localization.Static and Ikari.Localization.NoStatic.
-Now the default language if no language is set up will be the first one of the CSV Table.
-Now the static script will take the csv via Resources folder.
-Redesigned the methods for get values, now you will use IkariLocalization.Get(nameOfKey) or IkariLocalization.Get(nameOfKey,nameOfLanguage).
-Now it will search automatically for texts or other things of the UI.
-Now you can select the CSV you want in No Static version.
Well, the definition of plugin is: Something that extends the functionalities of a big program, in this case this script is extending the posibilities of the new GUI of Unity, but i will follow your advice and change the title : )
Changes:
-Delete the non static versions of the Ikari Localization system because of useless function and performance hit.
-Added the ability to select the csv you want, not needed to be into a resources folder anymore.
-Added a little organization on the inspector.
The thing i want to do when i release this is update to support multiple csv files.
Changes:
-Now you can select the language you want to translate the things.
-Almost no performance hit.
-Now it will create a variable in player prefs with the name of the language you are using.
Added logo and changed some things:
-Now the previews will stay original(like user previewed) when returning from play mode.
-Now the settings have a new field for change the player pref of the language.
Ikari Localization had some serious problem parsing quotes, since the parser engine it’s done by me and i don’t want to use .DLL i needed to redo it completely, but it’s nice because now it can handle nested quotes, and it saves the values in dictionaries which is more fast when you try to get a translated word. I spent my holidays redoing this because i think it really needed it.
I still need to do a little more but the update will be ready soon!
New and improved csv parser that handle quotes, and commas and newspaces properly.
As you can see here it works really good:
I will push the update to the Asset Store tomorrow and i will do a video example of how to use this soon.
If everyone is wondering about buy it or not, do it, you will have support for it and for 5 $ it’s a good option to set up your translations with the new interface of Unity : ), also if you are using other kind of interface or program it’s really easy to expand and you can also use the Get functions.