Hello JSW W.,
Basically, NLocalizationManager is a singleton class that collects numbers of NDictionary objects and applies concrete one on certain string properties.
Let say that you have a button which Text property you want to translate on 2 languages.
First you need to create 2 NDictionary objects for each language:
NDictionary nDictionary1 = new NDictionary("nDictionary1");
NDictionary nDictionary2 = new NDictionary("nDictionary2");
Then add record to each one for the button text. First parameter in Add method is the value of key, and the second parameter is the translated value:
nDictionary1.Add("Button 1", "Button on 1st language");
nDictionary1.Add("Button 1", "Button on 2nd language");
Add these dictionaries in the localization manager as follows:
NLocalizationManager.Instance.AddDictionary(nDictionary1);
NLocalizationManager.Instance.AddDictionary(nDictionary2);
Lastly you need to apply the desired dictionary to translate the texts:
Button1.Text = NLocalizationManager.Instance.Translate("Button 1", "nDictionary1");
You can use NLocalizationManager to translate any string property.
To use it you only need to have reference to Nevron.System assembly.
Best Regards,
Nevron Support Team