Search Unity

Ikari Localization - UGUI

Discussion in 'Works In Progress - Archive' started by Kirbyrawr, Nov 20, 2014.

  1. Kirbyrawr

    Kirbyrawr

    Joined:
    Jul 23, 2012
    Posts:
    945
    UnityForum.png 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.

    Thanks in advanced.
    Kirbyrawr.
     
    Last edited: Nov 25, 2014
  2. joni-giuro

    joni-giuro

    Joined:
    Nov 21, 2013
    Posts:
    435
    As a swiss citizen (we have 4 different national languages) this is relevant to my interests.
     
  3. Kirbyrawr

    Kirbyrawr

    Joined:
    Jul 23, 2012
    Posts:
    945
    That's nice to hear, i didn't know that Swiss people have 4 languages, wow!
     
  4. Kirbyrawr

    Kirbyrawr

    Joined:
    Jul 23, 2012
    Posts:
    945
    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.
     
  5. Kirbyrawr

    Kirbyrawr

    Joined:
    Jul 23, 2012
    Posts:
    945
    Localization functions with static CSV:
     
  6. Zeblote

    Zeblote

    Joined:
    Feb 8, 2013
    Posts:
    1,102
    "plugin" as in a native dll that only works in unity pro or as a script?
     
  7. Kirbyrawr

    Kirbyrawr

    Joined:
    Jul 23, 2012
    Posts:
    945
    It's a script, it's open, no dll's.
    Also i don't have Unity Pro so it works perfectly on Unity Indie.
     
  8. Zeblote

    Zeblote

    Joined:
    Feb 8, 2013
    Posts:
    1,102
    Then it's not a plugin, you should edit the title as it's misleading.
     
    Kirbyrawr likes this.
  9. Kirbyrawr

    Kirbyrawr

    Joined:
    Jul 23, 2012
    Posts:
    945
    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 : )
     
  10. Kirbyrawr

    Kirbyrawr

    Joined:
    Jul 23, 2012
    Posts:
    945
    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.
     
  11. Kirbyrawr

    Kirbyrawr

    Joined:
    Jul 23, 2012
    Posts:
    945
    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.

    Localization Added:
     
  12. Kirbyrawr

    Kirbyrawr

    Joined:
    Jul 23, 2012
    Posts:
    945
    Set Language with button:


    I still need to polish some things of the asset but it's almost ready, the final price will be 5 € so don't miss this handy and cheap tool ^^!
     
  13. Kirbyrawr

    Kirbyrawr

    Joined:
    Jul 23, 2012
    Posts:
    945
    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.
     
  14. virror

    virror

    Joined:
    Feb 3, 2012
    Posts:
    2,963
    Looking great : )
     
  15. Kirbyrawr

    Kirbyrawr

    Joined:
    Jul 23, 2012
    Posts:
    945
    Thanks Virror always a pleasure to see a comment of you : )
     
  16. Kirbyrawr

    Kirbyrawr

    Joined:
    Jul 23, 2012
    Posts:
    945
    This asset was upload for review to asset store at the price of 5$ i hope you guys use it a lot : )


    It comes with documentation and clean code:
     
  17. Kirbyrawr

    Kirbyrawr

    Joined:
    Jul 23, 2012
    Posts:
    945
  18. Kirbyrawr

    Kirbyrawr

    Joined:
    Jul 23, 2012
    Posts:
    945
    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!

    Cheers Kirbyrawr.
     
  19. Kirbyrawr

    Kirbyrawr

    Joined:
    Jul 23, 2012
    Posts:
    945
    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.
     
    Last edited: Jan 3, 2015
  20. Kirbyrawr

    Kirbyrawr

    Joined:
    Jul 23, 2012
    Posts:
    945
    Bum!

    The new update will come in some days : )