[Released] Easy Localization

Asset Store Link

What is this?

This is fast and easy to use localization plugin. Witch can be used on any platfrom. It’s user frendly for programmers to use inside project and for people who will work with localization files.

  • Works right after the import
  • Easy to organize language files
  • Language switch in one code line
  • No additional game objects on your scene
  • No System.Xml import only small powerful text parser inside
  • Comments support inside languge files

How to Use

Setting language

By default curent language is System default. But you can change it in one line of code
Example: Setting French Language

Localization.setLanguageCode("fr");

Getting localized string

string greeting = Localization.getLocalizedString("hello");

Getting localized string from specified file.
By default getLocalizedString function will look for token in languages default file. Default file name can be changed in package settings. But you can add as many files as you wish

Let’s Get localized string from “Dialogs” localizaion file

string greeting = Localization.getLocalizedString("hello", "Dialogs");

Localization file example

//--------------------------------------
// Game Diaglos File
//--------------------------------------

hello 	= "Hello" // some coment
buy		= "Goodbye"

// other localization tokens

SETTINGS

You can modifay this setting at runtime or before game start.

LocalizationSettings.GENERAL_PATH = "Localization/";
default loaction of localization files, full path (Asset/Resources/Localization)

LocalizationSettings.DEFAULT_LANG_FILE = "Default";
default name of localization file.

LocalizationSettings.DEFAULT_LANGUAGE = "en";
Default language which will be used if system or specified (by setLanguageCode function) language is no available.

Full Use Example can be found in package example scene
1236755--52522--$02383da6-0ef2-487e-8cf9-49f19d0efdee_scaled.jpg

Hope you enjoy the plugin :slight_smile:

Hi Stanislav,I want to purchase your product …but I wondering if Easy Localization can be integrated with NGUI UILocalize … what I mean is when I choose in my NGUI Option Menu a language, the specific language will be set for Easy Localization , I want to use your product for translating strings in Android Native Plugin for FB,GooglePlay shares texts …can this be done ?

Cheers,

Watching.
I may need this in the future.